Name
SendMessage
Synopsis
Sends a message to the specified target window:
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hwnd As Long, ByVal wMsg As Long, _ ByVal wParam As Long, lParam As Any) As Long
Parameters
-
hwnd
The handle of the target window, or
HWND_BROADCAST
if the message is to be sent to all top-level windows in the system-
wMsg
The message to send to the target window
-
wParam
The first parameter of the message
-
lParam
The second parameter of the message
Return Value
The return value depends on the message sent.
Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.