PostThreadMessage |
VB声明 |
|
Declare Function PostThreadMessage Lib "user32" Alias "PostThreadMessageA" (ByVal idThread As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long |
|
说明 |
|
将一条消息投递给应用程序。这条消息由应用程序的内部GetMessage循环获得,但不会传给一个特定的窗口 |
|
返回值 |
|
Long,如消息投递成功,则返回TRUE(非零)。会设置GetLastError |
|
参数表 |
|
参数 |
类型及说明 |
idThread |
Long,用于接收消息的那个线程的标识符 |
msg |
Long,消息标识符 |
wParam |
Long,具体由消息决定 |
ByVal |
Long,具体由消息决定 |
Top |