WM_PAINT = 0xfis a specific parameter for a particular method. these "codes" are typically required for interlop material; using unmanaged core libraries like user32 and kernel32.
You can find methods and their parameters both on the site http://pinvoke.net .
, WM_PAINT User32.GetMessage
WindowsMessage; .