|
|||
|
hello,SWFKIT! i'm sorry for bothering again.i have a few problems,sincerely hope
you answer this.as follows 1.Why can not the code below normal execution Application.sendMessage(Window.find("CabinetWClass ","test").handle, 0x0010,0,0);//WM_CLOSE 2.in the example bellow,how to determine The third parameter Application.sendMessage(getMainWnd().handle, 0x0112, 0x800c,0);//WM_SYSCOMMAND 3 why is similar to the following code Is wrong Application.sendMessage(Window.find("CabinetWClass ","test").handle, WM_SYSCOMMAND,SC_CLOSE,0) 4the Application.sendMessage mothed and the dllimport "user32.dll" * * SendMessage(****) as * mothed ,which is more powerful can You answer more detailed ? thank you advance! |
|
|||
|
It's the same as the function in user32.dll, i.e. it's a wrapper of the function in user32.dll.
To close a window, instead of sending a message, you can use the following code Code:
Window.find("CabinetWClass","test").close();
|
|
|||
|
but this is also a problem don't understand .
3 why is similar to the following code Is wrong Code:
Application.sendMessage(Window.find("CabinetWClass","test").handle, WM_SYSCOMMAND,SC_CLOSE,0)
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|