关于WM_ACTIVATE & WM_ACTIVATEAPP的区别
看了MSDN还是没搞清楚:(
WM_ACTIVATEAPP说"when a window belonging to a different application",一个窗口可以属于不同的应用程序吗?我怎么不知道。然后用一个"than"把我搞糊涂了,他要和什么比较呀。
还有就是他们两个消息有什么区别呀,不都是向deactivated 和 activated windows发送消息吗?
The WM_ACTIVATEAPP message is sent when a window belonging to a different
application than the active window is about to be activated. The message is
sent to the application whose window is being activated and to the
application whose window is being deactivated.
The WM_ACTIVATE message is sent to both the window being activated and the
window being deactivated. If the windows use the same input queue, the
message is sent synchronously, first to the window procedure of the
top-level window being deactivated, then to the window procedure of the
top-level window being activated. If the windows use different input queues,
the message is sent asynchronously, so the window is activated immediately.