What do these WndProc codes mean?

假如想象 提交于 2019-12-08 18:42:31

0x0118: WM_SYSTIMER (undocumented) used for caret blinks

The other three should be application defined messages (anything in the range 0xC000 to 0xFFFF) so you won't find those defined anywhere.

An easy way would be to just capture the mouse. When you have the mouse captured you get one click event outside your window, then capturing is turned off.

A harder way would be to set a low-level mouse windows hook. To do a global hook, you'll have to put your hook code in an unmanaged DLL.

A really easy way would be to just close your form when it's deactivated.

EDIT:

Oops. I just realized I didn't answer your direct question about the message IDs. Message 0x118 is not defined in winuser.h, so I assume it's an undocumented message ID. Message IDs in the range 0xC000 to 0xFFFF are application-defined messages. These IDs are returned by RegisterWindowMessage.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!