I see here and there pro users answer lots of noobs like me questions with things like WM_PAINT = 0xf
What should I search for to get complete list of this codes? are they all the same for all verions of windows? can they also used for other platforms?
The operating system communicates with your application window by passing messages to it. A message is simply a numeric code that designates a particular event. For example, if the user presses the left mouse button, the window receives a message that has the following message code.
The message loop is an obligatory section of code in every program that uses a graphical user interface under Microsoft Windows. Windows programs that have a GUI are event-driven. Windows maintains an individual message queue for each thread that has created a window. Usually only the first thread creates windows.
Windows defines a constant, WM_USER, to represent the value at which you can start defining your own messages. Windows reserves all messages from 0 to WM_USER -1 for its own use. However, you can define any messages you like. between the values of WM_USER and WM_USER+0x7FFF.
Is this table of any help?
I'm not sure whether all Windows versions send all these message, but I'm pretty sure the codes aren't different between versions.
WM_PAINT = 0xf
is a specific parameter for a certain method. those "codes" are usually needed with interlop stuff; using unmanaged core libraries such as user32 and kernel32.
You can find methods and their parameters like that on the site http://pinvoke.net.
For example, your example WM_PAINT
is from User32.GetMessage
If you want a full list of specific WindowsMessage parameters; they can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With