7

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?

Dumbo
  • 13,555
  • 54
  • 184
  • 288

4 Answers4

13

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.

Zruty
  • 8,377
  • 1
  • 25
  • 31
11

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.

Ron Sijm
  • 8,490
  • 2
  • 31
  • 48
7

You can find these in WinUser.h.

They cannot change between Windows versions (changing them would break binary compatibility with all Windows programs.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

Sometimes we also need a message by its code, decimal or hexadecimal. I find the following table useful:

https://wiki.winehq.org/List_Of_Windows_Messages

TecMan
  • 2,743
  • 2
  • 30
  • 64