SendMessage
The SendMessage function sends the specified message to a window or windows.
SendMessage函数发送指定的消息到一个或多个窗口。
It calls the window procedure for the specified window
它为指定的窗口调用窗口程序
and does not return
它不会立即返回
until the window procedure has processed the message.
直到窗口程序已经处理完消息。
WM_SETTEXT
An application sends a WM_SETTEXT message to set the text of a window.
应用程序发送WM_SETTEXT消息设置窗口文字
To send this message, call the SendMessage function with the following parameters.
发送这个消息,需调用SendMessage这个函数并使用下面的参数
SendMessage(
(HWND) hWnd, // handle to destination window
WM_SETTEXT, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // window-text string (LPCTSTR)
);