SendMessage
Return Values
The return value specifies the result of the message processing and depends on the message sent.
這個返回值就是由相應的響應消息函數的返回值。
例如:
有自定義消息:WM_USER
其響應函數:
LRESULT Cexample::OnUser(WPARAM wParam, LPARAM lParam)
{
//….
return 0;
}
則用SendMessage(hWnd, WM_USER, wParam, lParam);消息,其返回值應該為 0.
http://blog.csdn.net/kl222/article/details/947508