您的位置:首页 > 其它

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

2016-06-29 05:20 281 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: