分类:
2006-06-14 16:14:33
SendMessageCallback |
VB声明 | |
Declare Function SendMessageCallback Lib "user32" Alias "SendMessageCallbackA" (ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal lpResultCallBack As Long, ByVal dwData As Long) As Long | |
说明 | |
将一条消息发给窗口。该函数最大的特定是可以立即返回。目标窗口函数执行完毕后,会用回调函数的形式将结果返回 | |
返回值 | |
Long,TRUE表示成功,FALSE表示失败。会设置 | |
参数表 | |
参数 | 类型及说明 |
hwnd | Long,要接收消息的那个窗口的句柄 |
msg | Long,消息的标识符 |
wParam | Long,取决于消息 |
lParam | Long,取决于消息 |
lpResultCallBack | Long,指定函数地址。在vb5中可用AddressOf操作符获得 |
dwData | Long,用户自定义值 |
注解 | |
回调函数声明如下: |