3,882
社区成员
发帖
与我相关
我的任务
分享
A window receives this message through its WindowProc function.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644950(v=vs.85).aspx
The SendMessage function calls the window procedure for the specified window and
does not return until the window procedure has processed the message.
要学会看 MSDN 。A window receives this message through its WindowProc function.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644950(v=vs.85).aspx
The SendMessage function calls the window procedure for the specified window and
does not return until the window procedure has processed the message.
要学会看 MSDN 。[/quote]
问题是,WM_NCHITTEST消息是有返回值的,比如我要拖动一个无标题栏的窗口,程序中截获WM_NCHITTEST消息,设置消息的返回值为HTCAPTION,以欺骗系统达到拖动窗口的目的,如果是队列消息,系统如何得到WM_NCHITTEST消息的返回值呢?[/quote]
如果是你自己发的,那么用 Send 就可以了。
如果是系统的,那么就不需要你关心了。如果需要用到,系统肯定是可以得到的。A window receives this message through its WindowProc function.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644950(v=vs.85).aspx
The SendMessage function calls the window procedure for the specified window and
does not return until the window procedure has processed the message.
要学会看 MSDN 。[/quote]
问题是,WM_NCHITTEST消息是有返回值的,比如我要拖动一个无标题栏的窗口,程序中截获WM_NCHITTEST消息,设置消息的返回值为HTCAPTION,以欺骗系统达到拖动窗口的目的,如果是队列消息,系统如何得到WM_NCHITTEST消息的返回值呢?