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

 

posted @ 2016-06-29 05:20  findumars  Views(7699)  Comments(0Edit  收藏  举报