Advertisement
Kitomas

printMessage and its macros

Feb 10th, 2024
1,088
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 49.91 KB | None | 0 0
  1. //these are for enabling and disabling what messages are printed
  2.  //simply comment these out to disable them
  3.  
  4. #define KIT_PM_WM_UNKNOWN                        //0x????
  5. #define KIT_PM_WM_NULL                           //0x0000
  6. #define KIT_PM_WM_CREATE                         //0x0001
  7. #define KIT_PM_WM_DESTROY                        //0x0002
  8. #define KIT_PM_WM_MOVE                           //0x0003
  9. #define KIT_PM_WM_SIZE                           //0x0005
  10. #define KIT_PM_WM_ACTIVATE                       //0x0006
  11. #define KIT_PM_WM_SETFOCUS                       //0x0007
  12. #define KIT_PM_WM_KILLFOCUS                      //0x0008
  13. #define KIT_PM_WM_ENABLE                         //0x000A
  14. #define KIT_PM_WM_SETREDRAW                      //0x000B
  15. #define KIT_PM_WM_SETTEXT                        //0x000C
  16. #define KIT_PM_WM_GETTEXT                        //0x000D
  17. #define KIT_PM_WM_GETTEXTLENGTH                  //0x000E
  18. #define KIT_PM_WM_PAINT                          //0x000F
  19. #define KIT_PM_WM_CLOSE                          //0x0010
  20. #define KIT_PM_WM_QUERYENDSESSION                //0x0011
  21. #define KIT_PM_WM_QUIT                           //0x0012
  22. #define KIT_PM_WM_QUERYOPEN                      //0x0013
  23. #define KIT_PM_WM_ERASEBKGND                     //0x0014
  24. #define KIT_PM_WM_SYSCOLORCHANGE                 //0x0015
  25. #define KIT_PM_WM_ENDSESSION                     //0x0016
  26. #define KIT_PM_WM_SHOWWINDOW                     //0x0018
  27. #define KIT_PM_WM_SETTINGCHANGE                  //0x001A
  28. #define KIT_PM_WM_DEVMODECHANGE                  //0x001B
  29. #define KIT_PM_WM_ACTIVATEAPP                    //0x001C
  30. #define KIT_PM_WM_FONTCHANGE                     //0x001D
  31. #define KIT_PM_WM_TIMECHANGE                     //0x001E
  32. #define KIT_PM_WM_CANCELMODE                     //0x001F
  33. #define KIT_PM_WM_SETCURSOR                      //0x0020
  34. #define KIT_PM_WM_MOUSEACTIVATE                  //0x0021
  35. #define KIT_PM_WM_CHILDACTIVATE                  //0x0022
  36. #define KIT_PM_WM_QUEUESYNC                      //0x0023
  37. #define KIT_PM_WM_GETMINMAXINFO                  //0x0024
  38. #define KIT_PM_WM_PAINTICON                      //0x0026
  39. #define KIT_PM_WM_ICONERASEBKGND                 //0x0027
  40. #define KIT_PM_WM_NEXTDLGCTL                     //0x0028
  41. #define KIT_PM_WM_SPOOLERSTATUS                  //0x002A
  42. #define KIT_PM_WM_DRAWITEM                       //0x002B
  43. #define KIT_PM_WM_MEASUREITEM                    //0x002C
  44. #define KIT_PM_WM_DELETEITEM                     //0x002D
  45. #define KIT_PM_WM_VKEYTOITEM                     //0x002E
  46. #define KIT_PM_WM_CHARTOITEM                     //0x002F
  47. #define KIT_PM_WM_SETFONT                        //0x0030
  48. #define KIT_PM_WM_GETFONT                        //0x0031
  49. #define KIT_PM_WM_SETHOTKEY                      //0x0032
  50. #define KIT_PM_WM_GETHOTKEY                      //0x0033
  51. #define KIT_PM_WM_QUERYDRAGICON                  //0x0037
  52. #define KIT_PM_WM_COMPAREITEM                    //0x0039
  53. #define KIT_PM_WM_GETOBJECT                      //0x003D
  54. #define KIT_PM_WM_COMPACTING                     //0x0041
  55. #define KIT_PM_WM_COMMNOTIFY                     //0x0044
  56. #define KIT_PM_WM_WINDOWPOSCHANGING              //0x0046
  57. #define KIT_PM_WM_WINDOWPOSCHANGED               //0x0047
  58. #define KIT_PM_WM_POWER                          //0x0048
  59. #define KIT_PM_WM_COPYDATA                       //0x004A
  60. #define KIT_PM_WM_CANCELJOURNAL                  //0x004B
  61. #define KIT_PM_WM_NOTIFY                         //0x004E
  62. #define KIT_PM_WM_INPUTLANGCHANGEREQUEST         //0x0050
  63. #define KIT_PM_WM_INPUTLANGCHANGE                //0x0051
  64. #define KIT_PM_WM_TCARD                          //0x0052
  65. #define KIT_PM_WM_HELP                           //0x0053
  66. #define KIT_PM_WM_USERCHANGED                    //0x0054
  67. #define KIT_PM_WM_NOTIFYFORMAT                   //0x0055
  68. #define KIT_PM_WM_CONTEXTMENU                    //0x007B
  69. #define KIT_PM_WM_STYLECHANGING                  //0x007C
  70. #define KIT_PM_WM_STYLECHANGED                   //0x007D
  71. #define KIT_PM_WM_DISPLAYCHANGE                  //0x007E
  72. #define KIT_PM_WM_GETICON                        //0x007F
  73. #define KIT_PM_WM_SETICON                        //0x0080
  74. #define KIT_PM_WM_NCCREATE                       //0x0081
  75. #define KIT_PM_WM_NCDESTROY                      //0x0082
  76. #define KIT_PM_WM_NCCALCSIZE                     //0x0083
  77. #define KIT_PM_WM_NCHITTEST                      //0x0084
  78. #define KIT_PM_WM_NCPAINT                        //0x0085
  79. #define KIT_PM_WM_NCACTIVATE                     //0x0086
  80. #define KIT_PM_WM_GETDLGCODE                     //0x0087
  81. #define KIT_PM_WM_SYNCPAINT                      //0x0088
  82. #define KIT_PM_WM_NCMOUSEMOVE                    //0x00A0
  83. #define KIT_PM_WM_NCLBUTTONDOWN                  //0x00A1
  84. #define KIT_PM_WM_NCLBUTTONUP                    //0x00A2
  85. #define KIT_PM_WM_NCLBUTTONDBLCLK                //0x00A3
  86. #define KIT_PM_WM_NCRBUTTONDOWN                  //0x00A4
  87. #define KIT_PM_WM_NCRBUTTONUP                    //0x00A5
  88. #define KIT_PM_WM_NCRBUTTONDBLCLK                //0x00A6
  89. #define KIT_PM_WM_NCMBUTTONDOWN                  //0x00A7
  90. #define KIT_PM_WM_NCMBUTTONUP                    //0x00A8
  91. #define KIT_PM_WM_NCMBUTTONDBLCLK                //0x00A9
  92. #define KIT_PM_WM_NCXBUTTONDOWN                  //0x00AB
  93. #define KIT_PM_WM_NCXBUTTONUP                    //0x00AC
  94. #define KIT_PM_WM_NCXBUTTONDBLCLK                //0x00AD
  95. #define KIT_PM_WM_INPUT_DEVICE_CHANGE            //0x00FE
  96. #define KIT_PM_WM_INPUT                          //0x00FF
  97. #define KIT_PM_WM_KEYDOWN                        //0x0100
  98. #define KIT_PM_WM_KEYUP                          //0x0101
  99. #define KIT_PM_WM_CHAR                           //0x0102
  100. #define KIT_PM_WM_DEADCHAR                       //0x0103
  101. #define KIT_PM_WM_SYSKEYDOWN                     //0x0104
  102. #define KIT_PM_WM_SYSKEYUP                       //0x0105
  103. #define KIT_PM_WM_SYSCHAR                        //0x0106
  104. #define KIT_PM_WM_SYSDEADCHAR                    //0x0107
  105. #define KIT_PM_WM_UNICHAR                        //0x0109
  106. #define KIT_PM_WM_IME_STARTCOMPOSITION           //0x010D
  107. #define KIT_PM_WM_IME_ENDCOMPOSITION             //0x010E
  108. #define KIT_PM_WM_IME_COMPOSITION                //0x010F
  109. #define KIT_PM_WM_INITDIALOG                     //0x0110
  110. #define KIT_PM_WM_COMMAND                        //0x0111
  111. #define KIT_PM_WM_SYSCOMMAND                     //0x0112
  112. #define KIT_PM_WM_TIMER                          //0x0113
  113. #define KIT_PM_WM_HSCROLL                        //0x0114
  114. #define KIT_PM_WM_VSCROLL                        //0x0115
  115. #define KIT_PM_WM_INITMENU                       //0x0116
  116. #define KIT_PM_WM_INITMENUPOPUP                  //0x0117
  117. #define KIT_PM_WM_GESTURE                        //0x0119
  118. #define KIT_PM_WM_GESTURENOTIFY                  //0x011A
  119. #define KIT_PM_WM_MENUSELECT                     //0x011F
  120. #define KIT_PM_WM_MENUCHAR                       //0x0120
  121. #define KIT_PM_WM_ENTERIDLE                      //0x0121
  122. #define KIT_PM_WM_MENURBUTTONUP                  //0x0122
  123. #define KIT_PM_WM_MENUDRAG                       //0x0123
  124. #define KIT_PM_WM_MENUGETOBJECT                  //0x0124
  125. #define KIT_PM_WM_UNINITMENUPOPUP                //0x0125
  126. #define KIT_PM_WM_MENUCOMMAND                    //0x0126
  127. #define KIT_PM_WM_CHANGEUISTATE                  //0x0127
  128. #define KIT_PM_WM_UPDATEUISTATE                  //0x0128
  129. #define KIT_PM_WM_QUERYUISTATE                   //0x0129
  130. #define KIT_PM_WM_CTLCOLORMSGBOX                 //0x0132
  131. #define KIT_PM_WM_CTLCOLOREDIT                   //0x0133
  132. #define KIT_PM_WM_CTLCOLORLISTBOX                //0x0134
  133. #define KIT_PM_WM_CTLCOLORBTN                    //0x0135
  134. #define KIT_PM_WM_CTLCOLORDLG                    //0x0136
  135. #define KIT_PM_WM_CTLCOLORSCROLLBAR              //0x0137
  136. #define KIT_PM_WM_CTLCOLORSTATIC                 //0x0138
  137. #define KIT_PM_MN_GETHMENU                       //0x01E1
  138. #define KIT_PM_WM_MOUSEMOVE                      //0x0200
  139. #define KIT_PM_WM_LBUTTONDOWN                    //0x0201
  140. #define KIT_PM_WM_LBUTTONUP                      //0x0202
  141. #define KIT_PM_WM_LBUTTONDBLCLK                  //0x0203
  142. #define KIT_PM_WM_RBUTTONDOWN                    //0x0204
  143. #define KIT_PM_WM_RBUTTONUP                      //0x0205
  144. #define KIT_PM_WM_RBUTTONDBLCLK                  //0x0206
  145. #define KIT_PM_WM_MBUTTONDOWN                    //0x0207
  146. #define KIT_PM_WM_MBUTTONUP                      //0x0208
  147. #define KIT_PM_WM_MBUTTONDBLCLK                  //0x0209
  148. #define KIT_PM_WM_MOUSEWHEEL                     //0x020A
  149. #define KIT_PM_WM_XBUTTONDOWN                    //0x020B
  150. #define KIT_PM_WM_XBUTTONUP                      //0x020C
  151. #define KIT_PM_WM_XBUTTONDBLCLK                  //0x020D
  152. #define KIT_PM_WM_PARENTNOTIFY                   //0x0210
  153. #define KIT_PM_WM_ENTERMENULOOP                  //0x0211
  154. #define KIT_PM_WM_EXITMENULOOP                   //0x0212
  155. #define KIT_PM_WM_NEXTMENU                       //0x0213
  156. #define KIT_PM_WM_SIZING                         //0x0214
  157. #define KIT_PM_WM_CAPTURECHANGED                 //0x0215
  158. #define KIT_PM_WM_MOVING                         //0x0216
  159. #define KIT_PM_WM_POWERBROADCAST                 //0x0218
  160. #define KIT_PM_WM_DEVICECHANGE                   //0x0219
  161. #define KIT_PM_WM_MDICREATE                      //0x0220
  162. #define KIT_PM_WM_MDIDESTROY                     //0x0221
  163. #define KIT_PM_WM_MDIACTIVATE                    //0x0222
  164. #define KIT_PM_WM_MDIRESTORE                     //0x0223
  165. #define KIT_PM_WM_MDINEXT                        //0x0224
  166. #define KIT_PM_WM_MDIMAXIMIZE                    //0x0225
  167. #define KIT_PM_WM_MDITILE                        //0x0226
  168. #define KIT_PM_WM_MDICASCADE                     //0x0227
  169. #define KIT_PM_WM_MDIICONARRANGE                 //0x0228
  170. #define KIT_PM_WM_MDIGETACTIVE                   //0x0229
  171. #define KIT_PM_WM_MDISETMENU                     //0x0230
  172. #define KIT_PM_WM_ENTERSIZEMOVE                  //0x0231
  173. #define KIT_PM_WM_EXITSIZEMOVE                   //0x0232
  174. #define KIT_PM_WM_DROPFILES                      //0x0233
  175. #define KIT_PM_WM_MDIREFRESHMENU                 //0x0234
  176. #define KIT_PM_WM_POINTERDEVICECHANGE            //0x0238
  177. #define KIT_PM_WM_POINTERDEVICEINRANGE           //0x0239
  178. #define KIT_PM_WM_POINTERDEVICEOUTOFRANGE        //0x023A
  179. #define KIT_PM_WM_TOUCH                          //0x0240
  180. #define KIT_PM_WM_NCPOINTERUPDATE                //0x0241
  181. #define KIT_PM_WM_NCPOINTERDOWN                  //0x0242
  182. #define KIT_PM_WM_NCPOINTERUP                    //0x0243
  183. #define KIT_PM_WM_POINTERUPDATE                  //0x0245
  184. #define KIT_PM_WM_POINTERDOWN                    //0x0246
  185. #define KIT_PM_WM_POINTERUP                      //0x0247
  186. #define KIT_PM_WM_POINTERENTER                   //0x0249
  187. #define KIT_PM_WM_POINTERLEAVE                   //0x024A
  188. #define KIT_PM_WM_POINTERACTIVATE                //0x024B
  189. #define KIT_PM_WM_POINTERCAPTURECHANGED          //0x024C
  190. #define KIT_PM_WM_TOUCHHITTESTING                //0x024D
  191. #define KIT_PM_WM_POINTERWHEEL                   //0x024E
  192. #define KIT_PM_WM_POINTERHWHEEL                  //0x024F
  193. #define KIT_PM_DM_POINTERHITTEST                 //0x0250
  194. #define KIT_PM_WM_POINTERROUTEDTO                //0x0251
  195. #define KIT_PM_WM_POINTERROUTEDAWAY              //0x0252
  196. #define KIT_PM_WM_POINTERROUTEDRELEASED          //0x0253
  197. #define KIT_PM_WM_IME_SETCONTEXT                 //0x0281
  198. #define KIT_PM_WM_IME_NOTIFY                     //0x0282
  199. #define KIT_PM_WM_IME_CONTROL                    //0x0283
  200. #define KIT_PM_WM_IME_COMPOSITIONFULL            //0x0284
  201. #define KIT_PM_WM_IME_SELECT                     //0x0285
  202. #define KIT_PM_WM_IME_CHAR                       //0x0286
  203. #define KIT_PM_WM_IME_REQUEST                    //0x0288
  204. #define KIT_PM_WM_IME_KEYDOWN                    //0x0290
  205. #define KIT_PM_WM_IME_KEYUP                      //0x0291
  206. #define KIT_PM_WM_MOUSEHOVER                     //0x02A1
  207. #define KIT_PM_WM_MOUSELEAVE                     //0x02A3
  208. #define KIT_PM_WM_NCMOUSEHOVER                   //0x02A0
  209. #define KIT_PM_WM_NCMOUSELEAVE                   //0x02A2
  210. #define KIT_PM_WM_WTSSESSION_CHANGE              //0x02B1
  211. #define KIT_PM_WM_DPICHANGED                     //0x02E0
  212. #define KIT_PM_WM_DPICHANGED_BEFOREPARENT        //0x02E2
  213. #define KIT_PM_WM_DPICHANGED_AFTERPARENT         //0x02E3
  214. #define KIT_PM_WM_GETDPISCALEDSIZE               //0x02E4
  215. #define KIT_PM_WM_CUT                            //0x0300
  216. #define KIT_PM_WM_COPY                           //0x0301
  217. #define KIT_PM_WM_PASTE                          //0x0302
  218. #define KIT_PM_WM_CLEAR                          //0x0303
  219. #define KIT_PM_WM_UNDO                           //0x0304
  220. #define KIT_PM_WM_RENDERFORMAT                   //0x0305
  221. #define KIT_PM_WM_RENDERALLFORMATS               //0x0306
  222. #define KIT_PM_WM_DESTROYCLIPBOARD               //0x0307
  223. #define KIT_PM_WM_DRAWCLIPBOARD                  //0x0308
  224. #define KIT_PM_WM_PAINTCLIPBOARD                 //0x0309
  225. #define KIT_PM_WM_VSCROLLCLIPBOARD               //0x030A
  226. #define KIT_PM_WM_SIZECLIPBOARD                  //0x030B
  227. #define KIT_PM_WM_ASKCBFORMATNAME                //0x030C
  228. #define KIT_PM_WM_CHANGECBCHAIN                  //0x030D
  229. #define KIT_PM_WM_HSCROLLCLIPBOARD               //0x030E
  230. #define KIT_PM_WM_QUERYNEWPALETTE                //0x030F
  231. #define KIT_PM_WM_PALETTEISCHANGING              //0x0310
  232. #define KIT_PM_WM_PALETTECHANGED                 //0x0311
  233. #define KIT_PM_WM_HOTKEY                         //0x0312
  234. #define KIT_PM_WM_PRINT                          //0x0317
  235. #define KIT_PM_WM_PRINTCLIENT                    //0x0318
  236. #define KIT_PM_WM_APPCOMMAND                     //0x0319
  237. #define KIT_PM_WM_THEMECHANGED                   //0x031A
  238. #define KIT_PM_WM_CLIPBOARDUPDATE                //0x031D
  239. #define KIT_PM_WM_DWMCOMPOSITIONCHANGED          //0x031E
  240. #define KIT_PM_WM_DWMNCRENDERINGCHANGED          //0x031F
  241. #define KIT_PM_WM_DWMCOLORIZATIONCOLORCHANGED    //0x0320
  242. #define KIT_PM_WM_DWMWINDOWMAXIMIZEDCHANGE       //0x0321
  243. #define KIT_PM_WM_DWMSENDICONICTHUMBNAIL         //0x0323
  244. #define KIT_PM_WM_DWMSENDICONICLIVEPREVIEWBITMAP //0x0326
  245. #define KIT_PM_WM_GETTITLEBARINFOEX              //0x033F
  246.  
  247.  
  248.  
  249.  
  250. static void printMessage(HWND hwnd, UINT message,
  251.                          WPARAM wParam, LPARAM lParam)
  252. {
  253. #if defined(_DEBUG) //this function will do nothing otherwise
  254.   char* messageName = nullptr;
  255.  
  256.  
  257.   switch(message){
  258. #  ifdef KIT_PM_WM_NULL
  259.   case WM_NULL                          : messageName = "WM_NULL";              break; //0x0000
  260. #  endif
  261.  
  262. #  ifdef KIT_PM_WM_CREATE
  263.   case WM_CREATE                        : messageName = "WM_CREATE";            break; //0x0001
  264. #  endif
  265.  
  266. #  ifdef KIT_PM_WM_DESTROY
  267.   case WM_DESTROY                       : messageName = "WM_DESTROY";           break; //0x0002
  268. #  endif
  269.  
  270. #  ifdef KIT_PM_WM_MOVE
  271.   case WM_MOVE                          : messageName = "WM_MOVE";              break; //0x0003
  272. #  endif
  273.  
  274. #  ifdef KIT_PM_WM_SIZE
  275.   case WM_SIZE                          : messageName = "WM_SIZE";              break; //0x0005
  276. #  endif
  277.  
  278. #  ifdef KIT_PM_WM_ACTIVATE
  279.   case WM_ACTIVATE                      : messageName = "WM_ACTIVATE";          break; //0x0006
  280. #  endif
  281.  
  282. #  ifdef KIT_PM_WM_SETFOCUS
  283.   case WM_SETFOCUS                      : messageName = "WM_SETFOCUS";          break; //0x0007
  284. #  endif
  285.  
  286. #  ifdef KIT_PM_WM_KILLFOCUS
  287.   case WM_KILLFOCUS                     : messageName = "WM_KILLFOCUS";         break; //0x0008
  288. #  endif
  289.  
  290. #  ifdef KIT_PM_WM_ENABLE
  291.   case WM_ENABLE                        : messageName = "WM_ENABLE";            break; //0x000A
  292. #  endif
  293.  
  294. #  ifdef KIT_PM_WM_SETREDRAW
  295.   case WM_SETREDRAW                     : messageName = "WM_SETREDRAW";         break; //0x000B
  296. #  endif
  297.  
  298. #  ifdef KIT_PM_WM_SETTEXT
  299.   case WM_SETTEXT                       : messageName = "WM_SETTEXT";           break; //0x000C
  300. #  endif
  301.  
  302. #  ifdef KIT_PM_WM_GETTEXT
  303.   case WM_GETTEXT                       : messageName = "WM_GETTEXT";           break; //0x000D
  304. #  endif
  305.  
  306. #  ifdef KIT_PM_WM_GETTEXTLENGTH
  307.   case WM_GETTEXTLENGTH                 : messageName = "WM_GETTEXTLENGTH";     break; //0x000E
  308. #  endif
  309.  
  310. #  ifdef KIT_PM_WM_PAINT
  311.   case WM_PAINT                         : messageName = "WM_PAINT";             break; //0x000F
  312. #  endif
  313.  
  314. #  ifdef KIT_PM_WM_CLOSE
  315.   case WM_CLOSE                         : messageName = "WM_CLOSE";             break; //0x0010
  316. #  endif
  317.  
  318. #  ifdef KIT_PM_WM_QUERYENDSESSION
  319.   case WM_QUERYENDSESSION               : messageName = "WM_QUERYENDSESSION";   break; //0x0011
  320. #  endif
  321.  
  322. #  ifdef KIT_PM_WM_QUIT
  323.   case WM_QUIT                          : messageName = "WM_QUIT";              break; //0x0012
  324. #  endif
  325.  
  326. #  ifdef KIT_PM_WM_QUERYOPEN
  327.   case WM_QUERYOPEN                     : messageName = "WM_QUERYOPEN";         break; //0x0013
  328. #  endif
  329.  
  330. #  ifdef KIT_PM_WM_ERASEBKGND
  331.   case WM_ERASEBKGND                    : messageName = "WM_ERASEBKGND";        break; //0x0014
  332. #  endif
  333.  
  334. #  ifdef KIT_PM_WM_SYSCOLORCHANGE
  335.   case WM_SYSCOLORCHANGE                : messageName = "WM_SYSCOLORCHANGE";    break; //0x0015
  336. #  endif
  337.  
  338. #  ifdef KIT_PM_WM_ENDSESSION
  339.   case WM_ENDSESSION                    : messageName = "WM_ENDSESSION";        break; //0x0016
  340. #  endif
  341.  
  342. #  ifdef KIT_PM_WM_SHOWWINDOW
  343.   case WM_SHOWWINDOW                    : messageName = "WM_SHOWWINDOW";        break; //0x0018
  344. #  endif
  345.  
  346. #  ifdef KIT_PM_WM_SETTINGCHANGE
  347.   case WM_SETTINGCHANGE                 : messageName = "WM_SETTINGCHANGE";     break; //0x001A
  348. #  endif
  349.  
  350. #  ifdef KIT_PM_WM_DEVMODECHANGE
  351.   case WM_DEVMODECHANGE                 : messageName = "WM_DEVMODECHANGE";     break; //0x001B
  352. #  endif
  353.  
  354. #  ifdef KIT_PM_WM_ACTIVATEAPP
  355.   case WM_ACTIVATEAPP                   : messageName = "WM_ACTIVATEAPP";       break; //0x001C
  356. #  endif
  357.  
  358. #  ifdef KIT_PM_WM_FONTCHANGE
  359.   case WM_FONTCHANGE                    : messageName = "WM_FONTCHANGE";        break; //0x001D
  360. #  endif
  361.  
  362. #  ifdef KIT_PM_WM_TIMECHANGE
  363.   case WM_TIMECHANGE                    : messageName = "WM_TIMECHANGE";        break; //0x001E
  364. #  endif
  365.  
  366. #  ifdef KIT_PM_WM_CANCELMODE
  367.   case WM_CANCELMODE                    : messageName = "WM_CANCELMODE";        break; //0x001F
  368. #  endif
  369.  
  370. #  ifdef KIT_PM_WM_SETCURSOR
  371.   case WM_SETCURSOR                     : messageName = "WM_SETCURSOR";         break; //0x0020
  372. #  endif
  373.  
  374. #  ifdef KIT_PM_WM_MOUSEACTIVATE
  375.   case WM_MOUSEACTIVATE                 : messageName = "WM_MOUSEACTIVATE";     break; //0x0021
  376. #  endif
  377.  
  378. #  ifdef KIT_PM_WM_CHILDACTIVATE
  379.   case WM_CHILDACTIVATE                 : messageName = "WM_CHILDACTIVATE";     break; //0x0022
  380. #  endif
  381.  
  382. #  ifdef KIT_PM_WM_QUEUESYNC
  383.   case WM_QUEUESYNC                     : messageName = "WM_QUEUESYNC";         break; //0x0023
  384. #  endif
  385.  
  386. #  ifdef KIT_PM_WM_GETMINMAXINFO
  387.   case WM_GETMINMAXINFO                 : messageName = "WM_GETMINMAXINFO";     break; //0x0024
  388. #  endif
  389.  
  390. #  ifdef KIT_PM_WM_PAINTICON
  391.   case WM_PAINTICON                     : messageName = "WM_PAINTICON";         break; //0x0026
  392. #  endif
  393.  
  394. #  ifdef KIT_PM_WM_ICONERASEBKGND
  395.   case WM_ICONERASEBKGND                : messageName = "WM_ICONERASEBKGND";    break; //0x0027
  396. #  endif
  397.  
  398. #  ifdef KIT_PM_WM_NEXTDLGCTL
  399.   case WM_NEXTDLGCTL                    : messageName = "WM_NEXTDLGCTL";        break; //0x0028
  400. #  endif
  401.  
  402. #  ifdef KIT_PM_WM_SPOOLERSTATUS
  403.   case WM_SPOOLERSTATUS                 : messageName = "WM_SPOOLERSTATUS";     break; //0x002A
  404. #  endif
  405.  
  406. #  ifdef KIT_PM_WM_DRAWITEM
  407.   case WM_DRAWITEM                      : messageName = "WM_DRAWITEM";          break; //0x002B
  408. #  endif
  409.  
  410. #  ifdef KIT_PM_WM_MEASUREITEM
  411.   case WM_MEASUREITEM                   : messageName = "WM_MEASUREITEM";       break; //0x002C
  412. #  endif
  413.  
  414. #  ifdef KIT_PM_WM_DELETEITEM
  415.   case WM_DELETEITEM                    : messageName = "WM_DELETEITEM";        break; //0x002D
  416. #  endif
  417.  
  418. #  ifdef KIT_PM_WM_VKEYTOITEM
  419.   case WM_VKEYTOITEM                    : messageName = "WM_VKEYTOITEM";        break; //0x002E
  420. #  endif
  421.  
  422. #  ifdef KIT_PM_WM_CHARTOITEM
  423.   case WM_CHARTOITEM                    : messageName = "WM_CHARTOITEM";        break; //0x002F
  424. #  endif
  425.  
  426. #  ifdef KIT_PM_WM_SETFONT
  427.   case WM_SETFONT                       : messageName = "WM_SETFONT";           break; //0x0030
  428. #  endif
  429.  
  430. #  ifdef KIT_PM_WM_GETFONT
  431.   case WM_GETFONT                       : messageName = "WM_GETFONT";           break; //0x0031
  432. #  endif
  433.  
  434. #  ifdef KIT_PM_WM_SETHOTKEY
  435.   case WM_SETHOTKEY                     : messageName = "WM_SETHOTKEY";         break; //0x0032
  436. #  endif
  437.  
  438. #  ifdef KIT_PM_WM_GETHOTKEY
  439.   case WM_GETHOTKEY                     : messageName = "WM_GETHOTKEY";         break; //0x0033
  440. #  endif
  441.  
  442. #  ifdef KIT_PM_WM_QUERYDRAGICON
  443.   case WM_QUERYDRAGICON                 : messageName = "WM_QUERYDRAGICON";     break; //0x0037
  444. #  endif
  445.  
  446. #  ifdef KIT_PM_WM_COMPAREITEM
  447.   case WM_COMPAREITEM                   : messageName = "WM_COMPAREITEM";       break; //0x0039
  448. #  endif
  449.  
  450.  
  451. #if(WINVER >= 0x0500)
  452. #ifndef _WIN32_WCE
  453. #  ifdef KIT_PM_WM_GETOBJECT
  454.   case WM_GETOBJECT                     : messageName = "WM_GETOBJECT";         break; //0x003D
  455. #  endif
  456. #endif
  457. #endif /* WINVER >= 0x0500 */
  458.  
  459.  
  460. #  ifdef KIT_PM_WM_COMPACTING
  461.   case WM_COMPACTING                    : messageName = "WM_COMPACTING";        break; //0x0041
  462. #  endif
  463.  
  464. #  ifdef KIT_PM_WM_COMMNOTIFY
  465.   case WM_COMMNOTIFY                    : messageName = "WM_COMMNOTIFY";        break; //0x0044
  466. #  endif
  467.  
  468. #  ifdef KIT_PM_WM_WINDOWPOSCHANGING
  469.   case WM_WINDOWPOSCHANGING             : messageName = "WM_WINDOWPOSCHANGING"; break; //0x0046
  470. #  endif
  471.  
  472. #  ifdef KIT_PM_WM_WINDOWPOSCHANGED
  473.   case WM_WINDOWPOSCHANGED              : messageName = "WM_WINDOWPOSCHANGED";  break; //0x0047
  474. #  endif
  475.  
  476. #  ifdef KIT_PM_WM_POWER
  477.   case WM_POWER                         : messageName = "WM_POWER";             break; //0x0048
  478. #  endif
  479.  
  480. #  ifdef KIT_PM_WM_COPYDATA
  481.   case WM_COPYDATA                      : messageName = "WM_COPYDATA";          break; //0x004A
  482. #  endif
  483.  
  484. #  ifdef KIT_PM_WM_CANCELJOURNAL
  485.   case WM_CANCELJOURNAL                 : messageName = "WM_CANCELJOURNAL";     break; //0x004B
  486. #  endif
  487.  
  488.  
  489. #if(WINVER >= 0x0400)
  490. #  ifdef KIT_PM_WM_NOTIFY
  491.   case WM_NOTIFY                        : messageName = "WM_NOTIFY";            break; //0x004E
  492. #  endif
  493.  
  494. #  ifdef KIT_PM_WM_INPUTLANGCHANGEREQUEST
  495.   case WM_INPUTLANGCHANGEREQUEST        : messageName = "WM_INPUTLANGCHANGEREQUEST"; break; //0x0050
  496. #  endif
  497.  
  498. #  ifdef KIT_PM_WM_INPUTLANGCHANGE
  499.   case WM_INPUTLANGCHANGE               : messageName = "WM_INPUTLANGCHANGE";   break; //0x0051
  500. #  endif
  501.  
  502. #  ifdef KIT_PM_WM_TCARD
  503.   case WM_TCARD                         : messageName = "WM_TCARD";             break; //0x0052
  504. #  endif
  505.  
  506. #  ifdef KIT_PM_WM_HELP
  507.   case WM_HELP                          : messageName = "WM_HELP";              break; //0x0053
  508. #  endif
  509.  
  510. #  ifdef KIT_PM_WM_USERCHANGED
  511.   case WM_USERCHANGED                   : messageName = "WM_USERCHANGED";       break; //0x0054
  512. #  endif
  513.  
  514. #  ifdef KIT_PM_WM_NOTIFYFORMAT
  515.   case WM_NOTIFYFORMAT                  : messageName = "WM_NOTIFYFORMAT";      break; //0x0055
  516. #  endif
  517.  
  518. #  ifdef KIT_PM_WM_CONTEXTMENU
  519.   case WM_CONTEXTMENU                   : messageName = "WM_CONTEXTMENU";       break; //0x007B
  520. #  endif
  521.  
  522. #  ifdef KIT_PM_WM_STYLECHANGING
  523.   case WM_STYLECHANGING                 : messageName = "WM_STYLECHANGING";     break; //0x007C
  524. #  endif
  525.  
  526. #  ifdef KIT_PM_WM_STYLECHANGED
  527.   case WM_STYLECHANGED                  : messageName = "WM_STYLECHANGED";      break; //0x007D
  528. #  endif
  529.  
  530. #  ifdef KIT_PM_WM_DISPLAYCHANGE
  531.   case WM_DISPLAYCHANGE                 : messageName = "WM_DISPLAYCHANGE";     break; //0x007E
  532. #  endif
  533.  
  534. #  ifdef KIT_PM_WM_GETICON
  535.   case WM_GETICON                       : messageName = "WM_GETICON";           break; //0x007F
  536. #  endif
  537.  
  538. #  ifdef KIT_PM_WM_SETICON
  539.   case WM_SETICON                       : messageName = "WM_SETICON";           break; //0x0080
  540. #  endif
  541. #endif /* WINVER >= 0x0400 */
  542.  
  543.  
  544. #  ifdef KIT_PM_WM_NCCREATE
  545.   case WM_NCCREATE                      : messageName = "WM_NCCREATE";          break; //0x0081
  546. #  endif
  547.  
  548. #  ifdef KIT_PM_WM_NCDESTROY
  549.   case WM_NCDESTROY                     : messageName = "WM_NCDESTROY";         break; //0x0082
  550. #  endif
  551.  
  552. #  ifdef KIT_PM_WM_NCCALCSIZE
  553.   case WM_NCCALCSIZE                    : messageName = "WM_NCCALCSIZE";        break; //0x0083
  554. #  endif
  555.  
  556. #  ifdef KIT_PM_WM_NCHITTEST
  557.   case WM_NCHITTEST                     : messageName = "WM_NCHITTEST";         break; //0x0084
  558. #  endif
  559.  
  560. #  ifdef KIT_PM_WM_NCPAINT
  561.   case WM_NCPAINT                       : messageName = "WM_NCPAINT";           break; //0x0085
  562. #  endif
  563.  
  564. #  ifdef KIT_PM_WM_NCACTIVATE
  565.   case WM_NCACTIVATE                    : messageName = "WM_NCACTIVATE";        break; //0x0086
  566. #  endif
  567.  
  568. #  ifdef KIT_PM_WM_GETDLGCODE
  569.   case WM_GETDLGCODE                    : messageName = "WM_GETDLGCODE";        break; //0x0087
  570. #  endif
  571.  
  572.  
  573. #ifndef _WIN32_WCE
  574. #  ifdef KIT_PM_WM_SYNCPAINT
  575.   case WM_SYNCPAINT                     : messageName = "WM_SYNCPAINT";         break; //0x0088
  576. #  endif
  577. #endif
  578.  
  579.  
  580. #  ifdef KIT_PM_WM_NCMOUSEMOVE
  581.   case WM_NCMOUSEMOVE                   : messageName = "WM_NCMOUSEMOVE";       break; //0x00A0
  582. #  endif
  583.  
  584. #  ifdef KIT_PM_WM_NCLBUTTONDOWN
  585.   case WM_NCLBUTTONDOWN                 : messageName = "WM_NCLBUTTONDOWN";     break; //0x00A1
  586. #  endif
  587.  
  588. #  ifdef KIT_PM_WM_NCLBUTTONUP
  589.   case WM_NCLBUTTONUP                   : messageName = "WM_NCLBUTTONUP";       break; //0x00A2
  590. #  endif
  591.  
  592. #  ifdef KIT_PM_WM_NCLBUTTONDBLCLK
  593.   case WM_NCLBUTTONDBLCLK               : messageName = "WM_NCLBUTTONDBLCLK";   break; //0x00A3
  594. #  endif
  595.  
  596. #  ifdef KIT_PM_WM_NCRBUTTONDOWN
  597.   case WM_NCRBUTTONDOWN                 : messageName = "WM_NCRBUTTONDOWN";     break; //0x00A4
  598. #  endif
  599.  
  600. #  ifdef KIT_PM_WM_NCRBUTTONUP
  601.   case WM_NCRBUTTONUP                   : messageName = "WM_NCRBUTTONUP";       break; //0x00A5
  602. #  endif
  603.  
  604. #  ifdef KIT_PM_WM_NCRBUTTONDBLCLK
  605.   case WM_NCRBUTTONDBLCLK               : messageName = "WM_NCRBUTTONDBLCLK";   break; //0x00A6
  606. #  endif
  607.  
  608. #  ifdef KIT_PM_WM_NCMBUTTONDOWN
  609.   case WM_NCMBUTTONDOWN                 : messageName = "WM_NCMBUTTONDOWN";     break; //0x00A7
  610. #  endif
  611.  
  612. #  ifdef KIT_PM_WM_NCMBUTTONUP
  613.   case WM_NCMBUTTONUP                   : messageName = "WM_NCMBUTTONUP";       break; //0x00A8
  614. #  endif
  615.  
  616. #  ifdef KIT_PM_WM_NCMBUTTONDBLCLK
  617.   case WM_NCMBUTTONDBLCLK               : messageName = "WM_NCMBUTTONDBLCLK";   break; //0x00A9
  618. #  endif
  619.  
  620.  
  621. #if(_WIN32_WINNT >= 0x0500)
  622. #  ifdef KIT_PM_WM_NCXBUTTONDOWN
  623.   case WM_NCXBUTTONDOWN                 : messageName = "WM_NCXBUTTONDOWN";     break; //0x00AB
  624. #  endif
  625.  
  626. #  ifdef KIT_PM_WM_NCXBUTTONUP
  627.   case WM_NCXBUTTONUP                   : messageName = "WM_NCXBUTTONUP";       break; //0x00AC
  628. #  endif
  629.  
  630. #  ifdef KIT_PM_WM_NCXBUTTONDBLCLK
  631.   case WM_NCXBUTTONDBLCLK               : messageName = "WM_NCXBUTTONDBLCLK";   break; //0x00AD
  632. #  endif
  633. #endif /* _WIN32_WINNT >= 0x0500 */
  634.  
  635.  
  636. #if(_WIN32_WINNT >= 0x0501)
  637. #  ifdef KIT_PM_WM_INPUT_DEVICE_CHANGE
  638.   case WM_INPUT_DEVICE_CHANGE           : messageName = "WM_INPUT_DEVICE_CHANGE"; break; //0x00FE
  639. #  endif
  640.  
  641. #  ifdef KIT_PM_WM_INPUT
  642.   case WM_INPUT                         : messageName = "WM_INPUT";             break; //0x00FF
  643. #  endif
  644. #endif /* _WIN32_WINNT >= 0x0501 */
  645.  
  646.  
  647. #  ifdef KIT_PM_WM_KEYDOWN
  648.   case WM_KEYDOWN                       : messageName = "WM_KEYDOWN";           break; //0x0100
  649. #  endif
  650.  
  651. #  ifdef KIT_PM_WM_KEYUP
  652.   case WM_KEYUP                         : messageName = "WM_KEYUP";             break; //0x0101
  653. #  endif
  654.  
  655. #  ifdef KIT_PM_WM_CHAR
  656.   case WM_CHAR                          : messageName = "WM_CHAR";              break; //0x0102
  657. #  endif
  658.  
  659. #  ifdef KIT_PM_WM_DEADCHAR
  660.   case WM_DEADCHAR                      : messageName = "WM_DEADCHAR";          break; //0x0103
  661. #  endif
  662.  
  663. #  ifdef KIT_PM_WM_SYSKEYDOWN
  664.   case WM_SYSKEYDOWN                    : messageName = "WM_SYSKEYDOWN";        break; //0x0104
  665. #  endif
  666.  
  667. #  ifdef KIT_PM_WM_SYSKEYUP
  668.   case WM_SYSKEYUP                      : messageName = "WM_SYSKEYUP";          break; //0x0105
  669. #  endif
  670.  
  671. #  ifdef KIT_PM_WM_SYSCHAR
  672.   case WM_SYSCHAR                       : messageName = "WM_SYSCHAR";           break; //0x0106
  673. #  endif
  674.  
  675. #  ifdef KIT_PM_WM_SYSDEADCHAR
  676.   case WM_SYSDEADCHAR                   : messageName = "WM_SYSDEADCHAR";       break; //0x0107
  677. #  endif
  678.  
  679.  
  680. #if(_WIN32_WINNT >= 0x0501)
  681. #  ifdef KIT_PM_WM_UNICHAR
  682.   case WM_UNICHAR                       : messageName = "WM_UNICHAR";           break; //0x0109
  683. #  endif
  684. #endif /* _WIN32_WINNT >= 0x0501 */
  685.  
  686.  
  687. #if(WINVER >= 0x0400)
  688. #  ifdef KIT_PM_WM_IME_STARTCOMPOSITION
  689.   case WM_IME_STARTCOMPOSITION          : messageName = "WM_IME_STARTCOMPOSITION"; break; //0x010D
  690. #  endif
  691.  
  692. #  ifdef KIT_PM_WM_IME_ENDCOMPOSITION
  693.   case WM_IME_ENDCOMPOSITION            : messageName = "WM_IME_ENDCOMPOSITION";   break; //0x010E
  694. #  endif
  695.  
  696. #  ifdef KIT_PM_WM_IME_COMPOSITION
  697.   case WM_IME_COMPOSITION               : messageName = "WM_IME_COMPOSITION";      break; //0x010F
  698. #  endif
  699. #endif /* WINVER >= 0x0400 */
  700.  
  701.  
  702. #  ifdef KIT_PM_WM_INITDIALOG
  703.   case WM_INITDIALOG                    : messageName = "WM_INITDIALOG";        break; //0x0110
  704. #  endif
  705.  
  706. #  ifdef KIT_PM_WM_COMMAND
  707.   case WM_COMMAND                       : messageName = "WM_COMMAND";           break; //0x0111
  708. #  endif
  709.  
  710. #  ifdef KIT_PM_WM_SYSCOMMAND
  711.   case WM_SYSCOMMAND                    : messageName = "WM_SYSCOMMAND";        break; //0x0112
  712. #  endif
  713.  
  714. #  ifdef KIT_PM_WM_TIMER
  715.   case WM_TIMER                         : messageName = "WM_TIMER";             break; //0x0113
  716. #  endif
  717.  
  718. #  ifdef KIT_PM_WM_HSCROLL
  719.   case WM_HSCROLL                       : messageName = "WM_HSCROLL";           break; //0x0114
  720. #  endif
  721.  
  722. #  ifdef KIT_PM_WM_VSCROLL
  723.   case WM_VSCROLL                       : messageName = "WM_VSCROLL";           break; //0x0115
  724. #  endif
  725.  
  726. #  ifdef KIT_PM_WM_INITMENU
  727.   case WM_INITMENU                      : messageName = "WM_INITMENU";          break; //0x0116
  728. #  endif
  729.  
  730. #  ifdef KIT_PM_WM_INITMENUPOPUP
  731.   case WM_INITMENUPOPUP                 : messageName = "WM_INITMENUPOPUP";     break; //0x0117
  732. #  endif
  733.  
  734.  
  735. #if(WINVER >= 0x0601)
  736. #  ifdef KIT_PM_WM_GESTURE
  737.   case WM_GESTURE                       : messageName = "WM_GESTURE";           break; //0x0119
  738. #  endif
  739.  
  740. #  ifdef KIT_PM_WM_GESTURENOTIFY
  741.   case WM_GESTURENOTIFY                 : messageName = "WM_GESTURENOTIFY";     break; //0x011A
  742. #  endif
  743. #endif /* WINVER >= 0x0601 */
  744.  
  745.  
  746. #  ifdef KIT_PM_WM_MENUSELECT
  747.   case WM_MENUSELECT                    : messageName = "WM_MENUSELECT";        break; //0x011F
  748. #  endif
  749.  
  750. #  ifdef KIT_PM_WM_MENUCHAR
  751.   case WM_MENUCHAR                      : messageName = "WM_MENUCHAR";          break; //0x0120
  752. #  endif
  753.  
  754. #  ifdef KIT_PM_WM_ENTERIDLE
  755.   case WM_ENTERIDLE                     : messageName = "WM_ENTERIDLE";         break; //0x0121
  756. #  endif
  757.  
  758.  
  759. /* WHY IS THIS SET UP THIS WAY! */
  760. #if(WINVER >= 0x0500)
  761. #ifndef _WIN32_WCE
  762. #  ifdef KIT_PM_WM_MENURBUTTONUP
  763.   case WM_MENURBUTTONUP                 : messageName = "WM_MENURBUTTONUP";     break; //0x0122
  764. #  endif
  765.  
  766. #  ifdef KIT_PM_WM_MENUDRAG
  767.   case WM_MENUDRAG                      : messageName = "WM_MENUDRAG";          break; //0x0123
  768. #  endif
  769.  
  770. #  ifdef KIT_PM_WM_MENUGETOBJECT
  771.   case WM_MENUGETOBJECT                 : messageName = "WM_MENUGETOBJECT";     break; //0x0124
  772. #  endif
  773.  
  774. #  ifdef KIT_PM_WM_UNINITMENUPOPUP
  775.   case WM_UNINITMENUPOPUP               : messageName = "WM_UNINITMENUPOPUP";   break; //0x0125
  776. #  endif
  777.  
  778. #  ifdef KIT_PM_WM_MENUCOMMAND
  779.   case WM_MENUCOMMAND                   : messageName = "WM_MENUCOMMAND";       break; //0x0126
  780. #  endif
  781. #ifndef _WIN32_WCE
  782. #if(_WIN32_WINNT >= 0x0500)
  783. #  ifdef KIT_PM_WM_CHANGEUISTATE
  784.   case WM_CHANGEUISTATE                 : messageName = "WM_CHANGEUISTATE";     break; //0x0127
  785. #  endif
  786.  
  787. #  ifdef KIT_PM_WM_UPDATEUISTATE
  788.   case WM_UPDATEUISTATE                 : messageName = "WM_UPDATEUISTATE";     break; //0x0128
  789. #  endif
  790.  
  791. #  ifdef KIT_PM_WM_QUERYUISTATE
  792.   case WM_QUERYUISTATE                  : messageName = "WM_QUERYUISTATE";      break; //0x0129
  793. #  endif
  794. #endif /* _WIN32_WINNT >= 0x0500 */
  795. #endif
  796.  
  797. #endif
  798. #endif /* WINVER >= 0x0500 */
  799. /* WHY IS THIS SET UP THIS WAY! */
  800.  
  801.  
  802.  
  803. #  ifdef KIT_PM_WM_CTLCOLORMSGBOX
  804.   case WM_CTLCOLORMSGBOX                : messageName = "WM_CTLCOLORMSGBOX";    break; //0x0132
  805. #  endif
  806.  
  807. #  ifdef KIT_PM_WM_CTLCOLOREDIT
  808.   case WM_CTLCOLOREDIT                  : messageName = "WM_CTLCOLOREDIT";      break; //0x0133
  809. #  endif
  810.  
  811. #  ifdef KIT_PM_WM_CTLCOLORLISTBOX
  812.   case WM_CTLCOLORLISTBOX               : messageName = "WM_CTLCOLORLISTBOX";   break; //0x0134
  813. #  endif
  814.  
  815. #  ifdef KIT_PM_WM_CTLCOLORBTN
  816.   case WM_CTLCOLORBTN                   : messageName = "WM_CTLCOLORBTN";       break; //0x0135
  817. #  endif
  818.  
  819. #  ifdef KIT_PM_WM_CTLCOLORDLG
  820.   case WM_CTLCOLORDLG                   : messageName = "WM_CTLCOLORDLG";       break; //0x0136
  821. #  endif
  822.  
  823. #  ifdef KIT_PM_WM_CTLCOLORSCROLLBAR
  824.   case WM_CTLCOLORSCROLLBAR             : messageName = "WM_CTLCOLORSCROLLBAR"; break; //0x0137
  825. #  endif
  826.  
  827. #  ifdef KIT_PM_WM_CTLCOLORSTATIC
  828.   case WM_CTLCOLORSTATIC                : messageName = "WM_CTLCOLORSTATIC";    break; //0x0138
  829. #  endif
  830.  
  831. #  ifdef KIT_PM_MN_GETHMENU
  832.   case MN_GETHMENU                      : messageName = "MN_GETHMENU";          break; //0x01E1
  833. #  endif
  834.  
  835. #  ifdef KIT_PM_WM_MOUSEMOVE
  836.   case WM_MOUSEMOVE                     : messageName = "WM_MOUSEMOVE";         break; //0x0200
  837. #  endif
  838.  
  839. #  ifdef KIT_PM_WM_LBUTTONDOWN
  840.   case WM_LBUTTONDOWN                   : messageName = "WM_LBUTTONDOWN";       break; //0x0201
  841. #  endif
  842.  
  843. #  ifdef KIT_PM_WM_LBUTTONUP
  844.   case WM_LBUTTONUP                     : messageName = "WM_LBUTTONUP";         break; //0x0202
  845. #  endif
  846.  
  847. #  ifdef KIT_PM_WM_LBUTTONDBLCLK
  848.   case WM_LBUTTONDBLCLK                 : messageName = "WM_LBUTTONDBLCLK";     break; //0x0203
  849. #  endif
  850.  
  851. #  ifdef KIT_PM_WM_RBUTTONDOWN
  852.   case WM_RBUTTONDOWN                   : messageName = "WM_RBUTTONDOWN";       break; //0x0204
  853. #  endif
  854.  
  855. #  ifdef KIT_PM_WM_RBUTTONUP
  856.   case WM_RBUTTONUP                     : messageName = "WM_RBUTTONUP";         break; //0x0205
  857. #  endif
  858.  
  859. #  ifdef KIT_PM_WM_RBUTTONDBLCLK
  860.   case WM_RBUTTONDBLCLK                 : messageName = "WM_RBUTTONDBLCLK";     break; //0x0206
  861. #  endif
  862.  
  863. #  ifdef KIT_PM_WM_MBUTTONDOWN
  864.   case WM_MBUTTONDOWN                   : messageName = "WM_MBUTTONDOWN";       break; //0x0207
  865. #  endif
  866.  
  867. #  ifdef KIT_PM_WM_MBUTTONUP
  868.   case WM_MBUTTONUP                     : messageName = "WM_MBUTTONUP";         break; //0x0208
  869. #  endif
  870.  
  871. #  ifdef KIT_PM_WM_MBUTTONDBLCLK
  872.   case WM_MBUTTONDBLCLK                 : messageName = "WM_MBUTTONDBLCLK";     break; //0x0209
  873. #  endif
  874.  
  875.  
  876. #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
  877. #  ifdef KIT_PM_WM_MOUSEWHEEL
  878.   case WM_MOUSEWHEEL                    : messageName = "WM_MOUSEWHEEL";        break; //0x020A
  879. #  endif
  880. #endif
  881.  
  882.  
  883. #if (_WIN32_WINNT >= 0x0500)
  884. #  ifdef KIT_PM_WM_XBUTTONDOWN
  885.   case WM_XBUTTONDOWN                   : messageName = "WM_XBUTTONDOWN";       break; //0x020B
  886. #  endif
  887.  
  888. #  ifdef KIT_PM_WM_XBUTTONUP
  889.   case WM_XBUTTONUP                     : messageName = "WM_XBUTTONUP";         break; //0x020C
  890. #  endif
  891.  
  892. #  ifdef KIT_PM_WM_XBUTTONDBLCLK
  893.   case WM_XBUTTONDBLCLK                 : messageName = "WM_XBUTTONDBLCLK";     break; //0x020D
  894. #  endif
  895. #endif
  896.  
  897.  
  898. #  ifdef KIT_PM_WM_PARENTNOTIFY
  899.   case WM_PARENTNOTIFY                  : messageName = "WM_PARENTNOTIFY";      break; //0x0210
  900. #  endif
  901.  
  902. #  ifdef KIT_PM_WM_ENTERMENULOOP
  903.   case WM_ENTERMENULOOP                 : messageName = "WM_ENTERMENULOOP";     break; //0x0211
  904. #  endif
  905.  
  906. #  ifdef KIT_PM_WM_EXITMENULOOP
  907.   case WM_EXITMENULOOP                  : messageName = "WM_EXITMENULOOP";      break; //0x0212
  908. #  endif
  909.  
  910.  
  911. #if(WINVER >= 0x0400)
  912. #  ifdef KIT_PM_WM_NEXTMENU
  913.   case WM_NEXTMENU                      : messageName = "WM_NEXTMENU";          break; //0x0213
  914. #  endif
  915.  
  916. #  ifdef KIT_PM_WM_SIZING
  917.   case WM_SIZING                        : messageName = "WM_SIZING";            break; //0x0214
  918. #  endif
  919.  
  920. #  ifdef KIT_PM_WM_CAPTURECHANGED
  921.   case WM_CAPTURECHANGED                : messageName = "WM_CAPTURECHANGED";    break; //0x0215
  922. #  endif
  923.  
  924. #  ifdef KIT_PM_WM_MOVING
  925.   case WM_MOVING                        : messageName = "WM_MOVING";            break; //0x0216
  926. #  endif
  927.  
  928. #  ifdef KIT_PM_WM_POWERBROADCAST
  929.   case WM_POWERBROADCAST                : messageName = "WM_POWERBROADCAST";    break; //0x0218
  930. #  endif
  931.  
  932. #  ifdef KIT_PM_WM_DEVICECHANGE
  933.   case WM_DEVICECHANGE                  : messageName = "WM_DEVICECHANGE";      break; //0x0219
  934. #  endif
  935. #endif /* WINVER >= 0x0400 */
  936.  
  937.  
  938. #  ifdef KIT_PM_WM_MDICREATE
  939.   case WM_MDICREATE                     : messageName = "WM_MDICREATE";         break; //0x0220
  940. #  endif
  941.  
  942. #  ifdef KIT_PM_WM_MDIDESTROY
  943.   case WM_MDIDESTROY                    : messageName = "WM_MDIDESTROY";        break; //0x0221
  944. #  endif
  945.  
  946. #  ifdef KIT_PM_WM_MDIACTIVATE
  947.   case WM_MDIACTIVATE                   : messageName = "WM_MDIACTIVATE";       break; //0x0222
  948. #  endif
  949.  
  950. #  ifdef KIT_PM_WM_MDIRESTORE
  951.   case WM_MDIRESTORE                    : messageName = "WM_MDIRESTORE";        break; //0x0223
  952. #  endif
  953.  
  954. #  ifdef KIT_PM_WM_MDINEXT
  955.   case WM_MDINEXT                       : messageName = "WM_MDINEXT";           break; //0x0224
  956. #  endif
  957.  
  958. #  ifdef KIT_PM_WM_MDIMAXIMIZE
  959.   case WM_MDIMAXIMIZE                   : messageName = "WM_MDIMAXIMIZE";       break; //0x0225
  960. #  endif
  961.  
  962. #  ifdef KIT_PM_WM_MDITILE
  963.   case WM_MDITILE                       : messageName = "WM_MDITILE";           break; //0x0226
  964. #  endif
  965.  
  966. #  ifdef KIT_PM_WM_MDICASCADE
  967.   case WM_MDICASCADE                    : messageName = "WM_MDICASCADE";        break; //0x0227
  968. #  endif
  969.  
  970. #  ifdef KIT_PM_WM_MDIICONARRANGE
  971.   case WM_MDIICONARRANGE                : messageName = "WM_MDIICONARRANGE";    break; //0x0228
  972. #  endif
  973.  
  974. #  ifdef KIT_PM_WM_MDIGETACTIVE
  975.   case WM_MDIGETACTIVE                  : messageName = "WM_MDIGETACTIVE";      break; //0x0229
  976. #  endif
  977.  
  978. #  ifdef KIT_PM_WM_MDISETMENU
  979.   case WM_MDISETMENU                    : messageName = "WM_MDISETMENU";        break; //0x0230
  980. #  endif
  981.  
  982. #  ifdef KIT_PM_WM_ENTERSIZEMOVE
  983.   case WM_ENTERSIZEMOVE                 : messageName = "WM_ENTERSIZEMOVE";     break; //0x0231
  984. #  endif
  985.  
  986. #  ifdef KIT_PM_WM_EXITSIZEMOVE
  987.   case WM_EXITSIZEMOVE                  : messageName = "WM_EXITSIZEMOVE";      break; //0x0232
  988. #  endif
  989.  
  990. #  ifdef KIT_PM_WM_DROPFILES
  991.   case WM_DROPFILES                     : messageName = "WM_DROPFILES";         break; //0x0233
  992. #  endif
  993.  
  994. #  ifdef KIT_PM_WM_MDIREFRESHMENU
  995.   case WM_MDIREFRESHMENU                : messageName = "WM_MDIREFRESHMENU";    break; //0x0234
  996. #  endif
  997.  
  998.  
  999. #if(WINVER >= 0x0602)
  1000. #  ifdef KIT_PM_WM_POINTERDEVICECHANGE
  1001.   case WM_POINTERDEVICECHANGE           : messageName = "WM_POINTERDEVICECHANGE";     break; //0x0238
  1002. #  endif
  1003.  
  1004. #  ifdef KIT_PM_WM_POINTERDEVICEINRANGE
  1005.   case WM_POINTERDEVICEINRANGE          : messageName = "WM_POINTERDEVICEINRANGE";    break; //0x0239
  1006. #  endif
  1007.  
  1008. #  ifdef KIT_PM_WM_POINTERDEVICEOUTOFRANGE
  1009.   case WM_POINTERDEVICEOUTOFRANGE       : messageName = "WM_POINTERDEVICEOUTOFRANGE"; break; //0x023A
  1010. #  endif
  1011. #endif /* WINVER >= 0x0602 */
  1012.  
  1013.  
  1014. #if(WINVER >= 0x0601)
  1015. #  ifdef KIT_PM_WM_TOUCH
  1016.   case WM_TOUCH                         : messageName = "WM_TOUCH";             break; //0x0240
  1017. #  endif
  1018. #endif /* WINVER >= 0x0601 */
  1019.  
  1020.  
  1021. #if(WINVER >= 0x0602)
  1022. #  ifdef KIT_PM_WM_NCPOINTERUPDATE
  1023.   case WM_NCPOINTERUPDATE               : messageName = "WM_NCPOINTERUPDATE";   break; //0x0241
  1024. #  endif
  1025.  
  1026. #  ifdef KIT_PM_WM_NCPOINTERDOWN
  1027.   case WM_NCPOINTERDOWN                 : messageName = "WM_NCPOINTERDOWN";     break; //0x0242
  1028. #  endif
  1029.  
  1030. #  ifdef KIT_PM_WM_NCPOINTERUP
  1031.   case WM_NCPOINTERUP                   : messageName = "WM_NCPOINTERUP";       break; //0x0243
  1032. #  endif
  1033.  
  1034. #  ifdef KIT_PM_WM_POINTERUPDATE
  1035.   case WM_POINTERUPDATE                 : messageName = "WM_POINTERUPDATE";     break; //0x0245
  1036. #  endif
  1037.  
  1038. #  ifdef KIT_PM_WM_POINTERDOWN
  1039.   case WM_POINTERDOWN                   : messageName = "WM_POINTERDOWN";       break; //0x0246
  1040. #  endif
  1041.  
  1042. #  ifdef KIT_PM_WM_POINTERUP
  1043.   case WM_POINTERUP                     : messageName = "WM_POINTERUP";         break; //0x0247
  1044. #  endif
  1045.  
  1046. #  ifdef KIT_PM_WM_POINTERENTER
  1047.   case WM_POINTERENTER                  : messageName = "WM_POINTERENTER";      break; //0x0249
  1048. #  endif
  1049.  
  1050. #  ifdef KIT_PM_WM_POINTERLEAVE
  1051.   case WM_POINTERLEAVE                  : messageName = "WM_POINTERLEAVE";      break; //0x024A
  1052. #  endif
  1053.  
  1054. #  ifdef KIT_PM_WM_POINTERACTIVATE
  1055.   case WM_POINTERACTIVATE               : messageName = "WM_POINTERACTIVATE";   break; //0x024B
  1056. #  endif
  1057.  
  1058. #  ifdef KIT_PM_WM_POINTERCAPTURECHANGED
  1059.   case WM_POINTERCAPTURECHANGED         : messageName = "WM_POINTERCAPTURECHANGED"; break; //0x024C
  1060. #  endif
  1061.  
  1062. #  ifdef KIT_PM_WM_TOUCHHITTESTING
  1063.   case WM_TOUCHHITTESTING               : messageName = "WM_TOUCHHITTESTING";   break; //0x024D
  1064. #  endif
  1065.  
  1066. #  ifdef KIT_PM_WM_POINTERWHEEL
  1067.   case WM_POINTERWHEEL                  : messageName = "WM_POINTERWHEEL";      break; //0x024E
  1068. #  endif
  1069.  
  1070. #  ifdef KIT_PM_WM_POINTERHWHEEL
  1071.   case WM_POINTERHWHEEL                 : messageName = "WM_POINTERHWHEEL";     break; //0x024F
  1072. #  endif
  1073.  
  1074. #  ifdef KIT_PM_DM_POINTERHITTEST
  1075.   case DM_POINTERHITTEST                : messageName = "DM_POINTERHITTEST";    break; //0x0250
  1076. #  endif
  1077.  
  1078. #  ifdef KIT_PM_WM_POINTERROUTEDTO
  1079.   case WM_POINTERROUTEDTO               : messageName = "WM_POINTERROUTEDTO";   break; //0x0251
  1080. #  endif
  1081.  
  1082. #  ifdef KIT_PM_WM_POINTERROUTEDAWAY
  1083.   case WM_POINTERROUTEDAWAY             : messageName = "WM_POINTERROUTEDAWAY"; break; //0x0252
  1084. #  endif
  1085.  
  1086. #  ifdef KIT_PM_WM_POINTERROUTEDRELEASED2
  1087.   case WM_POINTERROUTEDRELEASED         : messageName = "WM_POINTERROUTEDRELEASED"; break; //0x0253
  1088. #  endif
  1089. #endif /* WINVER >= 0x0602 */
  1090.  
  1091.  
  1092. #if(WINVER >= 0x0400)
  1093. #  ifdef KIT_PM_WM_IME_SETCONTEXT
  1094.   case WM_IME_SETCONTEXT                : messageName = "WM_IME_SETCONTEXT";    break; //0x0281
  1095. #  endif
  1096.  
  1097. #  ifdef KIT_PM_WM_IME_NOTIFY
  1098.   case WM_IME_NOTIFY                    : messageName = "WM_IME_NOTIFY";        break; //0x0282
  1099. #  endif
  1100.  
  1101. #  ifdef KIT_PM_WM_IME_CONTROL
  1102.   case WM_IME_CONTROL                   : messageName = "WM_IME_CONTROL";       break; //0x0283
  1103. #  endif
  1104.  
  1105. #  ifdef KIT_PM_WM_IME_COMPOSITIONFULL
  1106.   case WM_IME_COMPOSITIONFULL           : messageName = "WM_IME_COMPOSITIONFULL"; break; //0x0284
  1107. #  endif
  1108.  
  1109. #  ifdef KIT_PM_WM_IME_SELECT
  1110.   case WM_IME_SELECT                    : messageName = "WM_IME_SELECT";        break; //0x0285
  1111. #  endif
  1112.  
  1113. #  ifdef KIT_PM_WM_IME_CHAR
  1114.   case WM_IME_CHAR                      : messageName = "WM_IME_CHAR";          break; //0x0286
  1115. #  endif
  1116. #endif /* WINVER >= 0x0400 */
  1117.  
  1118.  
  1119. #if(WINVER >= 0x0500)
  1120. #  ifdef KIT_PM_WM_IME_REQUEST
  1121.   case WM_IME_REQUEST                   : messageName = "WM_IME_REQUEST";       break; //0x0288
  1122. #  endif
  1123. #endif /* WINVER >= 0x0500 */
  1124.  
  1125.  
  1126. #if(WINVER >= 0x0400)
  1127. #  ifdef KIT_PM_WM_IME_KEYDOWN
  1128.   case WM_IME_KEYDOWN                   : messageName = "WM_IME_KEYDOWN";       break; //0x0290
  1129. #  endif
  1130.  
  1131. #  ifdef KIT_PM_WM_IME_KEYUP
  1132.   case WM_IME_KEYUP                     : messageName = "WM_IME_KEYUP";         break; //0x0291
  1133. #  endif
  1134. #endif /* WINVER >= 0x0400 */
  1135.  
  1136.  
  1137. #if((_WIN32_WINNT >= 0x0400) || (WINVER >= 0x0500))
  1138. #  ifdef KIT_PM_WM_MOUSEHOVER
  1139.   case WM_MOUSEHOVER                    : messageName = "WM_MOUSEHOVER";        break; //0x02A1
  1140. #  endif
  1141.  
  1142. #  ifdef KIT_PM_WM_MOUSELEAVE
  1143.   case WM_MOUSELEAVE                    : messageName = "WM_MOUSELEAVE";        break; //0x02A3
  1144. #  endif
  1145. #endif
  1146.  
  1147.  
  1148. #if(WINVER >= 0x0500)
  1149. #  ifdef KIT_PM_WM_NCMOUSEHOVER
  1150.   case WM_NCMOUSEHOVER                  : messageName = "WM_NCMOUSEHOVER";      break; //0x02A0
  1151. #  endif
  1152.  
  1153. #  ifdef KIT_PM_WM_NCMOUSELEAVE
  1154.   case WM_NCMOUSELEAVE                  : messageName = "WM_NCMOUSELEAVE";      break; //0x02A2
  1155. #  endif
  1156. #endif /* WINVER >= 0x0500 */
  1157.  
  1158.  
  1159. #if(_WIN32_WINNT >= 0x0501)
  1160. #  ifdef KIT_PM_WM_WTSSESSION_CHANGE
  1161.   case WM_WTSSESSION_CHANGE             : messageName = "WM_WTSSESSION_CHANGE"; break; //0x02B1
  1162. #  endif
  1163. #endif /* _WIN32_WINNT >= 0x0501 */
  1164.  
  1165.  
  1166. #if(WINVER >= 0x0601)
  1167. #  ifdef KIT_PM_WM_DPICHANGED
  1168.   case WM_DPICHANGED                    : messageName = "WM_DPICHANGED";        break; //0x02E0
  1169. #  endif
  1170. #endif /* WINVER >= 0x0601 */
  1171.  
  1172.  
  1173. #if(WINVER >= 0x0605)
  1174. #  ifdef KIT_PM_WM_DPICHANGED_BEFOREPARENT
  1175.   case WM_DPICHANGED_BEFOREPARENT       : messageName = "WM_DPICHANGED_BEFOREPARENT"; break; //0x02E2
  1176. #  endif
  1177.  
  1178. #  ifdef KIT_PM_WM_DPICHANGED_AFTERPARENT
  1179.   case WM_DPICHANGED_AFTERPARENT        : messageName = "WM_DPICHANGED_AFTERPARENT";  break; //0x02E3
  1180. #  endif
  1181.  
  1182. #  ifdef KIT_PM_WM_GETDPISCALEDSIZE
  1183.   case WM_GETDPISCALEDSIZE              : messageName = "WM_GETDPISCALEDSIZE";  break; //0x02E4
  1184. #  endif
  1185. #endif /* WINVER >= 0x0605 */
  1186.  
  1187.  
  1188. #  ifdef KIT_PM_WM_CUT
  1189.   case WM_CUT                           : messageName = "WM_CUT";               break; //0x0300
  1190. #  endif
  1191.  
  1192. #  ifdef KIT_PM_WM_COPY
  1193.   case WM_COPY                          : messageName = "WM_COPY";              break; //0x0301
  1194. #  endif
  1195.  
  1196. #  ifdef KIT_PM_WM_PASTE
  1197.   case WM_PASTE                         : messageName = "WM_PASTE";             break; //0x0302
  1198. #  endif
  1199.  
  1200. #  ifdef KIT_PM_WM_CLEAR
  1201.   case WM_CLEAR                         : messageName = "WM_CLEAR";             break; //0x0303
  1202. #  endif
  1203.  
  1204. #  ifdef KIT_PM_WM_UNDO
  1205.   case WM_UNDO                          : messageName = "WM_UNDO";              break; //0x0304
  1206. #  endif
  1207.  
  1208. #  ifdef KIT_PM_WM_RENDERFORMAT
  1209.   case WM_RENDERFORMAT                  : messageName = "WM_RENDERFORMAT";      break; //0x0305
  1210. #  endif
  1211.  
  1212. #  ifdef KIT_PM_WM_RENDERALLFORMATS
  1213.   case WM_RENDERALLFORMATS              : messageName = "WM_RENDERALLFORMATS";  break; //0x0306
  1214. #  endif
  1215.  
  1216. #  ifdef KIT_PM_WM_DESTROYCLIPBOARD
  1217.   case WM_DESTROYCLIPBOARD              : messageName = "WM_DESTROYCLIPBOARD";  break; //0x0307
  1218. #  endif
  1219.  
  1220. #  ifdef KIT_PM_WM_DRAWCLIPBOARD
  1221.   case WM_DRAWCLIPBOARD                 : messageName = "WM_DRAWCLIPBOARD";     break; //0x0308
  1222. #  endif
  1223.  
  1224. #  ifdef KIT_PM_WM_PAINTCLIPBOARD
  1225.   case WM_PAINTCLIPBOARD                : messageName = "WM_PAINTCLIPBOARD";    break; //0x0309
  1226. #  endif
  1227.  
  1228. #  ifdef KIT_PM_WM_VSCROLLCLIPBOARD
  1229.   case WM_VSCROLLCLIPBOARD              : messageName = "WM_VSCROLLCLIPBOARD";  break; //0x030A
  1230. #  endif
  1231.  
  1232. #  ifdef KIT_PM_WM_SIZECLIPBOARD
  1233.   case WM_SIZECLIPBOARD                 : messageName = "WM_SIZECLIPBOARD";     break; //0x030B
  1234. #  endif
  1235.  
  1236. #  ifdef KIT_PM_WM_ASKCBFORMATNAME
  1237.   case WM_ASKCBFORMATNAME               : messageName = "WM_ASKCBFORMATNAME";   break; //0x030C
  1238. #  endif
  1239.  
  1240. #  ifdef KIT_PM_WM_CHANGECBCHAIN
  1241.   case WM_CHANGECBCHAIN                 : messageName = "WM_CHANGECBCHAIN";     break; //0x030D
  1242. #  endif
  1243.  
  1244. #  ifdef KIT_PM_WM_HSCROLLCLIPBOARD
  1245.   case WM_HSCROLLCLIPBOARD              : messageName = "WM_HSCROLLCLIPBOARD";  break; //0x030E
  1246. #  endif
  1247.  
  1248. #  ifdef KIT_PM_WM_QUERYNEWPALETTE
  1249.   case WM_QUERYNEWPALETTE               : messageName = "WM_QUERYNEWPALETTE";   break; //0x030F
  1250. #  endif
  1251.  
  1252. #  ifdef KIT_PM_WM_PALETTEISCHANGING
  1253.   case WM_PALETTEISCHANGING             : messageName = "WM_PALETTEISCHANGING"; break; //0x0310
  1254. #  endif
  1255.  
  1256. #  ifdef KIT_PM_WM_PALETTECHANGED
  1257.   case WM_PALETTECHANGED                : messageName = "WM_PALETTECHANGED";    break; //0x0311
  1258. #  endif
  1259.  
  1260. #  ifdef KIT_PM_WM_HOTKEY
  1261.   case WM_HOTKEY                        : messageName = "WM_HOTKEY";            break; //0x0312
  1262. #  endif
  1263.  
  1264.  
  1265. #if(WINVER >= 0x0400)
  1266. #  ifdef KIT_PM_WM_PRINT
  1267.   case WM_PRINT                         : messageName = "WM_PRINT";       break; //0x0317
  1268. #  endif
  1269.  
  1270. #  ifdef KIT_PM_WM_PRINTCLIENT
  1271.   case WM_PRINTCLIENT                   : messageName = "WM_PRINTCLIENT"; break; //0x0318
  1272. #  endif
  1273. #endif /* WINVER >= 0x0400 */
  1274.  
  1275.  
  1276. #if(_WIN32_WINNT >= 0x0500)
  1277. #  ifdef KIT_PM_WM_APPCOMMAND
  1278.   case WM_APPCOMMAND                    : messageName = "WM_APPCOMMAND"; break; //0x0319
  1279. #  endif
  1280. #endif /* _WIN32_WINNT >= 0x0500 */
  1281.  
  1282.  
  1283. #if(_WIN32_WINNT >= 0x0501)
  1284. #  ifdef KIT_PM_WM_THEMECHANGED
  1285.   case WM_THEMECHANGED                  : messageName = "WM_THEMECHANGED"; break; //0x031A
  1286. #  endif
  1287. #endif /* _WIN32_WINNT >= 0x0501 */
  1288.  
  1289.  
  1290. #if(_WIN32_WINNT >= 0x0501)
  1291. #  ifdef KIT_PM_WM_CLIPBOARDUPDATE
  1292.   case WM_CLIPBOARDUPDATE               : messageName = "WM_CLIPBOARDUPDATE"; break; //0x031D
  1293. #  endif
  1294. #endif /* _WIN32_WINNT >= 0x0501 */
  1295.  
  1296.  
  1297. #if(_WIN32_WINNT >= 0x0600)
  1298. #  ifdef KIT_PM_WM_DWMCOMPOSITIONCHANGED
  1299.   case WM_DWMCOMPOSITIONCHANGED         : messageName = "WM_DWMCOMPOSITIONCHANGED";       break; //0x031E
  1300. #  endif
  1301.  
  1302. #  ifdef KIT_PM_WM_DWMNCRENDERINGCHANGED
  1303.   case WM_DWMNCRENDERINGCHANGED         : messageName = "WM_DWMNCRENDERINGCHANGED";       break; //0x031F
  1304. #  endif
  1305.  
  1306. #  ifdef KIT_PM_WM_DWMCOLORIZATIONCOLORCHANGED
  1307.   case WM_DWMCOLORIZATIONCOLORCHANGED   : messageName = "WM_DWMCOLORIZATIONCOLORCHANGED"; break; //0x0320
  1308. #  endif
  1309.  
  1310. #  ifdef KIT_PM_WM_DWMWINDOWMAXIMIZEDCHANGE
  1311.   case WM_DWMWINDOWMAXIMIZEDCHANGE      : messageName = "WM_DWMWINDOWMAXIMIZEDCHANGE";    break; //0x0321
  1312. #  endif
  1313. #endif /* _WIN32_WINNT >= 0x0600 */
  1314.  
  1315.  
  1316. #if(_WIN32_WINNT >= 0x0601)
  1317. #  ifdef KIT_PM_WM_DWMSENDICONICTHUMBNAIL
  1318.   case WM_DWMSENDICONICTHUMBNAIL        : messageName = "WM_DWMSENDICONICTHUMBNAIL";         break; //0x0323
  1319. #  endif
  1320.  
  1321. #  ifdef KIT_PM_WM_DWMSENDICONICLIVEPREVIEWBITMAP
  1322.   case WM_DWMSENDICONICLIVEPREVIEWBITMAP: messageName = "WM_DWMSENDICONICLIVEPREVIEWBITMAP"; break; //0x0326
  1323. #  endif
  1324. #endif /* _WIN32_WINNT >= 0x0601 */
  1325.  
  1326.  
  1327. #if(WINVER >= 0x0600)
  1328. #  ifdef KIT_PM_WM_GETTITLEBARINFOEX
  1329.   case WM_GETTITLEBARINFOEX             : messageName = "WM_GETTITLEBARINFOEX"; break; //0x033F
  1330. #  endif
  1331. #endif /* WINVER >= 0x0600 */
  1332.  
  1333.  
  1334.   default:;
  1335. #  ifdef KIT_PM_WM_UNKNOWN
  1336.   messageName = "(unknown)";
  1337. #  endif
  1338.   }
  1339.  
  1340.  
  1341.  
  1342.   if(messageName != nullptr){
  1343.     printf("hwnd=%p, wParam=0x%08X, lParam=%p, msg={ 0x%04X \"%s\" }\n",
  1344.            hwnd, (u32)wParam, (void*)lParam, message, messageName);
  1345.   }
  1346. #endif /* _DEBUG */
  1347. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement