What do these WndProc codes mean?

I am trying to make a window that closes when I click on it , and at the moment I'm doing this by processing the WndProc function.

None of the messages I get so far seem useful, but there are some that I don’t understand at all. What do the codes 0x0118, 0xC123, 0xC128 and 0xC12E mean?

+1
source share
2 answers

0x0118: WM_SYSTIMER (undocumented) used to flash carriage

The other three should be application-specific messages (all in the range 0xC000 to 0xFFFF), so you won't find them anywhere.

+4
source

An easy way would be to just grab the mouse. When you have a captured mouse, you get one event per click outside of your window, and then it is removed.

A more sophisticated way would be to hook a low-level window hook. To make a global hook, you have to put your hook code in an unmanaged DLL.

A very simple way is to simply close the form when it is deactivated.

EDIT

Unfortunately. I just realized that I did not answer your direct question about message identifiers. Message 0x118 is not defined in winuser.h, so I assume this is an undocumented message identifier. Message identifiers ranging from 0xC000 to 0xFFFF are messages defined by the application. These identifiers are returned by RegisterWindowMessage .

+1
source

All Articles