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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM