SendMessage的返回值,就是由相应的响应消息函数的返回值(解释的简洁明了)

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

原文地址:https://www.cnblogs.com/findumars/p/5625552.html