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