ReactOS  0.4.15-dev-1207-g698a8e6
msgdump.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS header files
3  * LICENSE: CC-BY-4.0 (https://spdx.org/licenses/CC-BY-4.0.html)
4  * PURPOSE: Win32API message dumping
5  * COPYRIGHT: Copyright 2018-2019 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
6  */
7 #ifndef _INC_MSGDUMP
8 #define _INC_MSGDUMP 17 /* Version 17 */
9 
10 /*
11  * NOTE: MD_msgdump function in this file provides Win32API message dump feature.
12  * NOTE: This header file takes time to compile.
13  * You might indirectly use MD_msgdump function.
14  */
15 #pragma once
16 
17 #ifndef _INC_WINXX
18  #include "winxx.h" /* An unofficial extension of <windowsx.h>. */
19 #endif
20 #ifndef _INC_SHELLAPI
21  #include <shellapi.h>
22 #endif
23 #include <strsafe.h>
24 
25 #ifndef MSGDUMP_TPRINTF
26  #error Please define MSGDUMP_TPRINTF macro before #include "msgdump.h".
27 #endif
28 
29 #ifndef MSGDUMP_API
30  #define MSGDUMP_API WINAPI
31 #endif
32 
33 #ifndef MSGDUMP_PREFIX
34  #define MSGDUMP_PREFIX TEXT("")
35 #endif
36 
37 /* MD_msgdump function */
38 static __inline LRESULT MSGDUMP_API
40 
41 /* MD_msgresult function */
42 static __inline LRESULT MSGDUMP_API
44 
45 /*---- The below codes are boring details of MD_msgdump and MD_msgresult implementation. ----*/
46 
47 #define MSGDUMP_MAX_RECT_TEXT 64
48 
49 static __inline const TCHAR * MSGDUMP_API
50 MD_rect_text(TCHAR *buf, size_t bufsize, const RECT *prc)
51 {
52  if (prc == NULL)
53  {
54  StringCbCopy(buf, bufsize, TEXT("(null)"));
55  }
56  else
57  {
58  StringCbPrintf(buf, bufsize, TEXT("(%ld, %ld, %ld, %ld)"),
59  prc->left, prc->top, prc->right, prc->bottom);
60  }
61  return buf;
62 }
63 
64 static __inline LRESULT MSGDUMP_API
66 {
67  TCHAR szName[64];
68  if (0xC000 <= uMsg && uMsg <= 0xFFFF &&
70  {
71  /* RegisterWindowMessage'd message */
72  MSGDUMP_TPRINTF(TEXT("%s'%s'(%u)(hwnd:%p, wParam:%p, lParam:%p)\n"),
73  MSGDUMP_PREFIX, szName, uMsg, (void *)hwnd, (void *)wParam,
74  (void *)lParam);
75  return 0;
76  }
77 
78  MSGDUMP_TPRINTF(TEXT("%sWM_%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
79  MSGDUMP_PREFIX, uMsg, (void *)hwnd, (void *)wParam, (void *)lParam);
80  return 0;
81 }
82 
83 static __inline LRESULT MSGDUMP_API
85 {
86  MSGDUMP_TPRINTF(TEXT("%sWM_USER+%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
87  MSGDUMP_PREFIX, uMsg - WM_USER, (void *)hwnd, (void *)wParam, (void *)lParam);
88  return 0;
89 }
90 
91 static __inline LRESULT MSGDUMP_API
93 {
94  MSGDUMP_TPRINTF(TEXT("%sWM_APP+%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
95  MSGDUMP_PREFIX, uMsg - WM_APP, (void *)hwnd, (void *)wParam, (void *)lParam);
96  return 0;
97 }
98 
99 static __inline LRESULT MSGDUMP_API
101 {
102  MSGDUMP_TPRINTF(TEXT("%sWM_NULL(hwnd:%p)\n"),
103  MSGDUMP_PREFIX, (void *)hwnd);
104  return 0;
105 }
106 
107 static __inline BOOL MSGDUMP_API
109 {
110  MSGDUMP_TPRINTF(TEXT("%sWM_CREATE(hwnd:%p, lpCreateStruct:%p)\n"),
111  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
112  return TRUE;
113 }
114 
115 static __inline void MSGDUMP_API
117 {
118  MSGDUMP_TPRINTF(TEXT("%sWM_DESTROY(hwnd:%p)\n"),
119  MSGDUMP_PREFIX, (void *)hwnd);
120 }
121 
122 static __inline void MSGDUMP_API
123 MD_OnMove(HWND hwnd, int x, int y)
124 {
125  MSGDUMP_TPRINTF(TEXT("%sWM_MOVE(hwnd:%p, x:%d, y:%d)\n"),
126  MSGDUMP_PREFIX, (void *)hwnd, x, y);
127 }
128 
129 static __inline void MSGDUMP_API
131 {
132  MSGDUMP_TPRINTF(TEXT("%sWM_SIZE(hwnd:%p, state:%u, cx:%d, cy:%d)\n"),
133  MSGDUMP_PREFIX, (void *)hwnd, state, cx, cy);
134 }
135 
136 static __inline void MSGDUMP_API
137 MD_OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized)
138 {
139  MSGDUMP_TPRINTF(TEXT("%sWM_ACTIVATE(hwnd:%p, state:%u, hwndActDeact:%p, fMinimized:%d)\n"),
140  MSGDUMP_PREFIX, (void *)hwnd, state, (void *)hwndActDeact, fMinimized);
141 }
142 
143 static __inline void MSGDUMP_API
144 MD_OnSetFocus(HWND hwnd, HWND hwndOldFocus)
145 {
146  MSGDUMP_TPRINTF(TEXT("%sWM_SETFOCUS(hwnd:%p, hwndOldFocus:%p)\n"),
147  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndOldFocus);
148 }
149 
150 static __inline void MSGDUMP_API
151 MD_OnKillFocus(HWND hwnd, HWND hwndNewFocus)
152 {
153  MSGDUMP_TPRINTF(TEXT("%sWM_KILLFOCUS(hwnd:%p, hwndNewFocus:%p)\n"),
154  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewFocus);
155 }
156 
157 static __inline void MSGDUMP_API
159 {
160  MSGDUMP_TPRINTF(TEXT("%sWM_ENABLE(hwnd:%p, fEnable:%d)\n"),
161  MSGDUMP_PREFIX, (void *)hwnd, fEnable);
162 }
163 
164 static __inline void MSGDUMP_API
166 {
167  MSGDUMP_TPRINTF(TEXT("%sWM_SETREDRAW(hwnd:%p, fRedraw:%d)\n"),
168  MSGDUMP_PREFIX, (void *)hwnd, fRedraw);
169 }
170 
171 static __inline void MSGDUMP_API
173 {
174  if (IsWindowUnicode(hwnd))
175  MSGDUMP_TPRINTF(TEXT("%sWM_SETTEXT(hwnd:%p, lpszText:%ls)\n"),
176  MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszText);
177  else
178  MSGDUMP_TPRINTF(TEXT("%sWM_SETTEXT(hwnd:%p, lpszText:%hs)\n"),
179  MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszText);
180 }
181 
182 static __inline INT MSGDUMP_API
183 MD_OnGetText(HWND hwnd, int cchTextMax, LPTSTR lpszText)
184 {
185  MSGDUMP_TPRINTF(TEXT("%sWM_GETTEXT(hwnd:%p, cchTextMax:%d, lpszText:%p)\n"),
186  MSGDUMP_PREFIX, (void *)hwnd, cchTextMax, (void *)lpszText);
187  return 0;
188 }
189 
190 static __inline INT MSGDUMP_API
192 {
193  MSGDUMP_TPRINTF(TEXT("%sWM_GETTEXTLENGTH(hwnd:%p)\n"),
194  MSGDUMP_PREFIX, (void *)hwnd);
195  return 0;
196 }
197 
198 static __inline void MSGDUMP_API
200 {
201  MSGDUMP_TPRINTF(TEXT("%sWM_PAINT(hwnd:%p)\n"),
202  MSGDUMP_PREFIX, (void *)hwnd);
203 }
204 
205 static __inline void MSGDUMP_API
207 {
208  MSGDUMP_TPRINTF(TEXT("%sWM_CLOSE(hwnd:%p)\n"),
209  MSGDUMP_PREFIX, (void *)hwnd);
210 }
211 
212 static __inline BOOL MSGDUMP_API
214 {
215  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYENDSESSION(hwnd:%p)\n"),
216  MSGDUMP_PREFIX, (void *)hwnd);
217  return FALSE;
218 }
219 
220 static __inline BOOL MSGDUMP_API
222 {
223  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYOPEN(hwnd:%p)\n"),
224  MSGDUMP_PREFIX, (void *)hwnd);
225  return FALSE;
226 }
227 
228 static __inline void MSGDUMP_API
230 {
231  MSGDUMP_TPRINTF(TEXT("%sWM_ENDSESSION(hwnd:%p, fEnding:%d)\n"),
232  MSGDUMP_PREFIX, (void *)hwnd, fEnding);
233 }
234 
235 static __inline void MSGDUMP_API
236 MD_OnQuit(HWND hwnd, int exitCode)
237 {
238  MSGDUMP_TPRINTF(TEXT("%sWM_QUIT(hwnd:%p, exitCode:%d)\n"),
239  MSGDUMP_PREFIX, (void *)hwnd, exitCode);
240 }
241 
242 static __inline BOOL MSGDUMP_API
244 {
245  MSGDUMP_TPRINTF(TEXT("%sWM_ERASEBKGND(hwnd:%p, hdc:%p)\n"),
246  MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc);
247  return FALSE;
248 }
249 
250 static __inline void MSGDUMP_API
252 {
253  MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOLORCHANGE(hwnd:%p)\n"),
254  MSGDUMP_PREFIX, (void *)hwnd);
255 }
256 
257 static __inline void MSGDUMP_API
259 {
260  MSGDUMP_TPRINTF(TEXT("%sWM_SHOWWINDOW(hwnd:%p, fShow:%d, status:%u)\n"),
261  MSGDUMP_PREFIX, (void *)hwnd, fShow, status);
262 }
263 
264 static __inline LRESULT MSGDUMP_API
266 {
267  MSGDUMP_TPRINTF(TEXT("%sWM_SETTINGCHANGE(hwnd:%p, wFlag:%p, pszSection:%s)\n"),
268  MSGDUMP_PREFIX, (void *)hwnd, (void *)wFlag, pszSection);
269  return 0;
270 }
271 
272 static __inline void MSGDUMP_API
274 {
275  if (IsWindowUnicode(hwnd))
276  MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%ls)\n"),
277  MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszDeviceName);
278  else
279  MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%hs)\n"),
280  MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszDeviceName);
281 }
282 
283 static __inline void MSGDUMP_API
285 {
286  MSGDUMP_TPRINTF(TEXT("%sWM_ACTIVATEAPP(hwnd:%p, fActivate:%d, dwThreadId:0x%08lX)\n"),
287  MSGDUMP_PREFIX, (void *)hwnd, fActivate, dwThreadId);
288 }
289 
290 static __inline void MSGDUMP_API
292 {
293  MSGDUMP_TPRINTF(TEXT("%sWM_FONTCHANGE(hwnd:%p)\n"),
294  MSGDUMP_PREFIX, (void *)hwnd);
295 }
296 
297 static __inline void MSGDUMP_API
299 {
300  MSGDUMP_TPRINTF(TEXT("%sWM_TIMECHANGE(hwnd:%p)\n"),
301  MSGDUMP_PREFIX, (void *)hwnd);
302 }
303 
304 static __inline void MSGDUMP_API
306 {
307  MSGDUMP_TPRINTF(TEXT("%sWM_CANCELMODE(hwnd:%p)\n"),
308  MSGDUMP_PREFIX, (void *)hwnd);
309 }
310 
311 static __inline BOOL MSGDUMP_API
312 MD_OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg)
313 {
314  MSGDUMP_TPRINTF(TEXT("%sWM_SETCURSOR(hwnd:%p, hwndCursor:%p, codeHitTest:%u, msg:%u)\n"),
315  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCursor, codeHitTest, msg);
316  return FALSE;
317 }
318 
319 static __inline int MSGDUMP_API
320 MD_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg)
321 {
322  MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEACTIVATE(hwnd:%p, hwndTopLevel:%p, codeHitTest:%u, msg:%u)\n"),
323  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTopLevel, codeHitTest, msg);
324  return 0;
325 }
326 
327 static __inline void MSGDUMP_API
329 {
330  MSGDUMP_TPRINTF(TEXT("%sWM_CHILDACTIVATE(hwnd:%p)\n"),
331  MSGDUMP_PREFIX, (void *)hwnd);
332 }
333 
334 static __inline void MSGDUMP_API
336 {
337  MSGDUMP_TPRINTF(TEXT("%sWM_QUEUESYNC(hwnd:%p)\n"),
338  MSGDUMP_PREFIX, (void *)hwnd);
339 }
340 
341 static __inline void MSGDUMP_API
343 {
344  MSGDUMP_TPRINTF(TEXT("%sWM_GETMINMAXINFO(hwnd:%p, lpMinMaxInfo:%p)\n"),
345  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMinMaxInfo);
346 }
347 
348 static __inline BOOL MSGDUMP_API
350 {
351  MSGDUMP_TPRINTF(TEXT("%sWM_ICONERASEBKGND(hwnd:%p, hdc:%p)\n"),
352  MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc);
353  return FALSE;
354 }
355 
356 static __inline HWND MSGDUMP_API
357 MD_OnNextDlgCtl(HWND hwnd, HWND hwndSetFocus, BOOL fNext)
358 {
359  MSGDUMP_TPRINTF(TEXT("%sWM_NEXTDLGCTL(hwnd:%p, hwndSetFocus:%p, fNext:%d)\n"),
360  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndSetFocus, fNext);
361  return NULL;
362 }
363 
364 static __inline void MSGDUMP_API
366 {
367  MSGDUMP_TPRINTF(TEXT("%sWM_SPOOLERSTATUS(hwnd:%p, status:%u, cJobInQueue:%d)\n"),
368  MSGDUMP_PREFIX, (void *)hwnd, status, cJobInQueue);
369 }
370 
371 static __inline void MSGDUMP_API
372 MD_OnDrawItem(HWND hwnd, const DRAWITEMSTRUCT * lpDrawItem)
373 {
374  MSGDUMP_TPRINTF(TEXT("%sWM_DRAWITEM(hwnd:%p, lpDrawItem:%p)\n"),
375  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDrawItem);
376 }
377 
378 static __inline void MSGDUMP_API
380 {
381  MSGDUMP_TPRINTF(TEXT("%sWM_MEASUREITEM(hwnd:%p, lpMeasureItem:%p)\n"),
382  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMeasureItem);
383 }
384 
385 static __inline void MSGDUMP_API
387 {
388  MSGDUMP_TPRINTF(TEXT("%sWM_DELETEITEM(hwnd:%p, lpDeleteItem:%p)\n"),
389  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDeleteItem);
390 }
391 
392 static __inline int MSGDUMP_API
393 MD_OnVkeyToItem(HWND hwnd, UINT vk, HWND hwndListbox, int iCaret)
394 {
395  MSGDUMP_TPRINTF(TEXT("%sWM_VKEYTOITEM(hwnd:%p, vk:%u, hwndListbox:%p, iCaret:%d)\n"),
396  MSGDUMP_PREFIX, (void *)hwnd, vk, (void *)hwndListbox, iCaret);
397  return 0;
398 }
399 
400 static __inline int MSGDUMP_API
401 MD_OnCharToItem(HWND hwnd, UINT ch, HWND hwndListbox, int iCaret)
402 {
403  MSGDUMP_TPRINTF(TEXT("%sWM_CHARTOITEM(hwnd:%p, ch:%u, hwndListbox:%p, iCaret:%d)\n"),
404  MSGDUMP_PREFIX, (void *)hwnd, ch, (void *)hwndListbox, iCaret);
405  return 0;
406 }
407 
408 static __inline void MSGDUMP_API
410 {
411  MSGDUMP_TPRINTF(TEXT("%sWM_SETFONT(hwnd:%p, hfont:%p, fRedraw:%d)\n"),
412  MSGDUMP_PREFIX, (void *)hwnd, (void *)hfont, fRedraw);
413 }
414 
415 static __inline HFONT MSGDUMP_API
417 {
418  MSGDUMP_TPRINTF(TEXT("%sWM_GETFONT(hwnd:%p)\n"),
419  MSGDUMP_PREFIX, (void *)hwnd);
420  return NULL;
421 }
422 
423 static __inline HICON MSGDUMP_API
425 {
426  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDRAGICON(hwnd:%p)\n"),
427  MSGDUMP_PREFIX, (void *)hwnd);
428  return NULL;
429 }
430 
431 static __inline int MSGDUMP_API
433 {
434  MSGDUMP_TPRINTF(TEXT("%sWM_COMPAREITEM(hwnd:%p, lpCompareItem:%p)\n"),
435  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCompareItem);
436  return 0;
437 }
438 
439 static __inline void MSGDUMP_API
441 {
442  MSGDUMP_TPRINTF(TEXT("%sWM_COMPACTING(hwnd:%p, compactRatio:%u)\n"),
443  MSGDUMP_PREFIX, (void *)hwnd, compactRatio);
444 }
445 
446 static __inline void MSGDUMP_API
448 {
449  MSGDUMP_TPRINTF(TEXT("%sWM_COMMNOTIFY(hwnd:%p, cid:%d, flags:%u)\n"),
450  MSGDUMP_PREFIX, (void *)hwnd, cid, flags);
451 }
452 
453 static __inline BOOL MSGDUMP_API
455 {
456  MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGING(hwnd:%p, lpwpos:%p)\n"),
457  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
458  return FALSE;
459 }
460 
461 static __inline void MSGDUMP_API
463 {
464  MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGED(hwnd:%p, lpwpos:%p)\n"),
465  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
466 }
467 
468 static __inline void MSGDUMP_API
470 {
471  MSGDUMP_TPRINTF(TEXT("%sWM_POWER(hwnd:%p, code:%d)\n"),
472  MSGDUMP_PREFIX, (void *)hwnd, code);
473 }
474 
475 static __inline BOOL MSGDUMP_API
477 {
478  MSGDUMP_TPRINTF(TEXT("%sWM_COPYDATA(hwnd:%p, hwndFrom:%p, pcds:%p)\n"),
479  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFrom, (void *)pcds);
480  return FALSE;
481 }
482 
483 static __inline LPCTSTR MSGDUMP_API
485 {
486  TCHAR szClass[24], sz[2];
487  static TCHAR s_szText[64];
488 
489  switch (code)
490  {
491  case NM_OUTOFMEMORY: return TEXT("NM_OUTOFMEMORY");
492  case NM_CLICK: return TEXT("NM_CLICK");
493  case NM_DBLCLK: return TEXT("NM_DBLCLK");
494  case NM_RETURN: return TEXT("NM_RETURN");
495  case NM_RCLICK: return TEXT("NM_RCLICK");
496  case NM_RDBLCLK: return TEXT("NM_RDBLCLK");
497  case NM_SETFOCUS: return TEXT("NM_SETFOCUS");
498  case NM_KILLFOCUS: return TEXT("NM_KILLFOCUS");
499 #if (_WIN32_IE >= 0x0300)
500  case NM_CUSTOMDRAW: return TEXT("NM_CUSTOMDRAW");
501  case NM_HOVER: return TEXT("NM_HOVER");
502 #endif
503 #if (_WIN32_IE >= 0x0400)
504  case NM_NCHITTEST: return TEXT("NM_NCHITTEST");
505  case NM_KEYDOWN: return TEXT("NM_KEYDOWN");
506  case NM_RELEASEDCAPTURE: return TEXT("NM_RELEASEDCAPTURE");
507  case NM_SETCURSOR: return TEXT("NM_SETCURSOR");
508  case NM_CHAR: return TEXT("NM_CHAR");
509 #endif
510 #if (_WIN32_IE >= 0x0401)
511  case NM_TOOLTIPSCREATED: return TEXT("NM_TOOLTIPSCREATED");
512 #endif
513 #if (_WIN32_IE >= 0x0500)
514  case NM_LDOWN: return TEXT("NM_LDOWN");
515  case NM_RDOWN: return TEXT("NM_RDOWN");
516 #endif
517  }
518 
519  szClass[0] = 0;
520  GetClassName(hwndFrom, szClass, ARRAYSIZE(szClass));
521  sz[0] = szClass[0];
522  sz[1] = 0;
523  CharUpper(sz);
524 
525  if (sz[0] == TEXT('R') && lstrcmpi(szClass, RICHEDIT_CLASS) == 0)
526  {
527  switch (code)
528  {
529  case EN_MSGFILTER: return TEXT("EN_MSGFILTER");
530  case EN_REQUESTRESIZE: return TEXT("EN_REQUESTRESIZE");
531  case EN_SELCHANGE: return TEXT("EN_SELCHANGE");
532  case EN_DROPFILES: return TEXT("EN_DROPFILES");
533  case EN_PROTECTED: return TEXT("EN_PROTECTED");
534  case EN_CORRECTTEXT: return TEXT("EN_CORRECTTEXT");
535  case EN_STOPNOUNDO: return TEXT("EN_STOPNOUNDO");
536  case EN_IMECHANGE: return TEXT("EN_IMECHANGE");
537  case EN_SAVECLIPBOARD: return TEXT("EN_SAVECLIPBOARD");
538  case EN_OLEOPFAILED: return TEXT("EN_OLEOPFAILED");
539  case EN_OBJECTPOSITIONS: return TEXT("EN_OBJECTPOSITIONS");
540  case EN_LINK: return TEXT("EN_LINK");
541  case EN_DRAGDROPDONE: return TEXT("EN_DRAGDROPDONE");
542  case EN_PARAGRAPHEXPANDED: return TEXT("EN_PARAGRAPHEXPANDED");
543  case EN_PAGECHANGE: return TEXT("EN_PAGECHANGE");
544  case EN_LOWFIRTF: return TEXT("EN_LOWFIRTF");
545  case EN_ALIGNLTR: return TEXT("EN_ALIGNLTR");
546  case EN_ALIGNRTL: return TEXT("EN_ALIGNRTL");
547 #if _RICHEDIT_VER >= 0x0800
548  case EN_CLIPFORMAT: return TEXT("EN_CLIPFORMAT");
549  case EN_STARTCOMPOSITION: return TEXT("EN_STARTCOMPOSITION");
550  case EN_ENDCOMPOSITION: return TEXT("EN_ENDCOMPOSITION");
551 #endif
552  }
553  }
554  else if (sz[0] == TEXT('S') && lstrcmpi(szClass, WC_LISTVIEW) == 0)
555  {
556  switch (code)
557  {
558  case LVN_ITEMCHANGING: return TEXT("LVN_ITEMCHANGING");
559  case LVN_ITEMCHANGED: return TEXT("LVN_ITEMCHANGED");
560  case LVN_INSERTITEM: return TEXT("LVN_INSERTITEM");
561  case LVN_DELETEITEM: return TEXT("LVN_DELETEITEM");
562  case LVN_DELETEALLITEMS: return TEXT("LVN_DELETEALLITEMS");
563  case LVN_BEGINLABELEDITA: return TEXT("LVN_BEGINLABELEDITA");
564  case LVN_BEGINLABELEDITW: return TEXT("LVN_BEGINLABELEDITW");
565  case LVN_ENDLABELEDITA: return TEXT("LVN_ENDLABELEDITA");
566  case LVN_ENDLABELEDITW: return TEXT("LVN_ENDLABELEDITW");
567  case LVN_COLUMNCLICK: return TEXT("LVN_COLUMNCLICK");
568  case LVN_BEGINDRAG: return TEXT("LVN_BEGINDRAG");
569  case LVN_BEGINRDRAG: return TEXT("LVN_BEGINRDRAG");
570  case LVN_ODCACHEHINT: return TEXT("LVN_ODCACHEHINT");
571  case LVN_ODFINDITEMA: return TEXT("LVN_ODFINDITEMA");
572  case LVN_ODFINDITEMW: return TEXT("LVN_ODFINDITEMW");
573  case LVN_ITEMACTIVATE: return TEXT("LVN_ITEMACTIVATE");
574  case LVN_ODSTATECHANGED: return TEXT("LVN_ODSTATECHANGED");
575  case LVN_HOTTRACK: return TEXT("LVN_HOTTRACK");
576  case LVN_GETDISPINFOA: return TEXT("LVN_GETDISPINFOA");
577  case LVN_GETDISPINFOW: return TEXT("LVN_GETDISPINFOW");
578  case LVN_SETDISPINFOA: return TEXT("LVN_SETDISPINFOA");
579  case LVN_SETDISPINFOW: return TEXT("LVN_SETDISPINFOW");
580  case LVN_KEYDOWN: return TEXT("LVN_KEYDOWN");
581  case LVN_MARQUEEBEGIN: return TEXT("LVN_MARQUEEBEGIN");
582  case LVN_GETINFOTIPA: return TEXT("LVN_GETINFOTIPA");
583  case LVN_GETINFOTIPW: return TEXT("LVN_GETINFOTIPW");
584  case LVN_INCREMENTALSEARCHA: return TEXT("LVN_INCREMENTALSEARCHA");
585  case LVN_INCREMENTALSEARCHW: return TEXT("LVN_INCREMENTALSEARCHW");
586 #if NTDDI_VERSION >= 0x06000000
587  case LVN_COLUMNDROPDOWN: return TEXT("LVN_COLUMNDROPDOWN");
588  case LVN_COLUMNOVERFLOWCLICK: return TEXT("LVN_COLUMNOVERFLOWCLICK");
589 #endif
590  case LVN_BEGINSCROLL: return TEXT("LVN_BEGINSCROLL");
591  case LVN_ENDSCROLL: return TEXT("LVN_ENDSCROLL");
592 #if NTDDI_VERSION >= 0x06000000
593  case LVN_LINKCLICK: return TEXT("LVN_LINKCLICK");
594  case LVN_GETEMPTYMARKUP: return TEXT("LVN_GETEMPTYMARKUP");
595 #endif
596  }
597  }
598  else if (sz[0] == TEXT('S') && lstrcmpi(szClass, WC_TREEVIEW) == 0)
599  {
600  switch (code)
601  {
602  case TVN_SELCHANGINGA: return TEXT("TVN_SELCHANGINGA");
603  case TVN_SELCHANGINGW: return TEXT("TVN_SELCHANGINGW");
604  case TVN_SELCHANGEDA: return TEXT("TVN_SELCHANGEDA");
605  case TVN_SELCHANGEDW: return TEXT("TVN_SELCHANGEDW");
606  case TVN_GETDISPINFOA: return TEXT("TVN_GETDISPINFOA");
607  case TVN_GETDISPINFOW: return TEXT("TVN_GETDISPINFOW");
608  case TVN_SETDISPINFOA: return TEXT("TVN_SETDISPINFOA");
609  case TVN_SETDISPINFOW: return TEXT("TVN_SETDISPINFOW");
610  case TVN_ITEMEXPANDINGA: return TEXT("TVN_ITEMEXPANDINGA");
611  case TVN_ITEMEXPANDINGW: return TEXT("TVN_ITEMEXPANDINGW");
612  case TVN_ITEMEXPANDEDA: return TEXT("TVN_ITEMEXPANDEDA");
613  case TVN_ITEMEXPANDEDW: return TEXT("TVN_ITEMEXPANDEDW");
614  case TVN_BEGINDRAGA: return TEXT("TVN_BEGINDRAGA");
615  case TVN_BEGINDRAGW: return TEXT("TVN_BEGINDRAGW");
616  case TVN_BEGINRDRAGA: return TEXT("TVN_BEGINRDRAGA");
617  case TVN_BEGINRDRAGW: return TEXT("TVN_BEGINRDRAGW");
618  case TVN_DELETEITEMA: return TEXT("TVN_DELETEITEMA");
619  case TVN_DELETEITEMW: return TEXT("TVN_DELETEITEMW");
620  case TVN_BEGINLABELEDITA: return TEXT("TVN_BEGINLABELEDITA");
621  case TVN_BEGINLABELEDITW: return TEXT("TVN_BEGINLABELEDITW");
622  case TVN_ENDLABELEDITA: return TEXT("TVN_ENDLABELEDITA");
623  case TVN_ENDLABELEDITW: return TEXT("TVN_ENDLABELEDITW");
624  case TVN_KEYDOWN: return TEXT("TVN_KEYDOWN");
625  case TVN_GETINFOTIPA: return TEXT("TVN_GETINFOTIPA");
626  case TVN_GETINFOTIPW: return TEXT("TVN_GETINFOTIPW");
627  case TVN_SINGLEEXPAND: return TEXT("TVN_SINGLEEXPAND");
628 #ifdef TVN_ITEMCHANGINGA
629  case TVN_ITEMCHANGINGA: return TEXT("TVN_ITEMCHANGINGA");
630  case TVN_ITEMCHANGINGW: return TEXT("TVN_ITEMCHANGINGW");
631  case TVN_ITEMCHANGEDA: return TEXT("TVN_ITEMCHANGEDA");
632  case TVN_ITEMCHANGEDW: return TEXT("TVN_ITEMCHANGEDW");
633  case TVN_ASYNCDRAW: return TEXT("TVN_ASYNCDRAW");
634 #endif
635  }
636  }
637 
638  StringCbPrintf(s_szText, sizeof(s_szText), TEXT("%u"), code);
639  return s_szText;
640 }
641 
642 static __inline LRESULT MSGDUMP_API
643 MD_OnNotify(HWND hwnd, int idFrom, LPNMHDR pnmhdr)
644 {
645  MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFY(hwnd:%p, idFrom:%d, pnmhdr:%p, hwndFrom:%p, pnmhdr->idFrom:%d, code:%s)\n"),
646  MSGDUMP_PREFIX, (void *)hwnd, idFrom, (void *)pnmhdr,
647  pnmhdr->hwndFrom, pnmhdr->idFrom,
648  MD_GetNotifyCode(pnmhdr->hwndFrom, pnmhdr->code));
649  return 0;
650 }
651 
652 static __inline void MSGDUMP_API
653 MD_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos)
654 {
655  MSGDUMP_TPRINTF(TEXT("%sWM_CONTEXTMENU(hwnd:%p, hwndContext:%p, xPos:%u, yPos:%u)\n"),
656  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndContext, xPos, yPos);
657 }
658 
659 static __inline void MSGDUMP_API
660 MD_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen)
661 {
662  MSGDUMP_TPRINTF(TEXT("%sWM_DISPLAYCHANGE(hwnd:%p, bitsPerPixel:%u, cxScreen:%u, cyScreen:%u)\n"),
663  MSGDUMP_PREFIX, (void *)hwnd, bitsPerPixel, cxScreen, cyScreen);
664 }
665 
666 static __inline BOOL MSGDUMP_API
668 {
669  MSGDUMP_TPRINTF(TEXT("%sWM_NCCREATE(hwnd:%p, lpCreateStruct:%p)\n"),
670  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
671  return FALSE;
672 }
673 
674 static __inline void MSGDUMP_API
676 {
677  MSGDUMP_TPRINTF(TEXT("%sWM_NCDESTROY(hwnd:%p)\n"),
678  MSGDUMP_PREFIX, (void *)hwnd);
679 }
680 
681 static __inline UINT MSGDUMP_API
682 MD_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp)
683 {
684  MSGDUMP_TPRINTF(TEXT("%sWM_NCCALCSIZE(hwnd:%p, fCalcValidRects:%d, lpcsp:%p)\n"),
685  MSGDUMP_PREFIX, (void *)hwnd, fCalcValidRects, (void *)lpcsp);
686  return 0;
687 }
688 
689 static __inline UINT MSGDUMP_API
691 {
692  MSGDUMP_TPRINTF(TEXT("%sWM_NCHITTEST(hwnd:%p, x:%d, y:%d)\n"),
693  MSGDUMP_PREFIX, (void *)hwnd, x, y);
694  return 0;
695 }
696 
697 static __inline void MSGDUMP_API
699 {
700  MSGDUMP_TPRINTF(TEXT("%sWM_NCPAINT(hwnd:%p, hrgn:%p)\n"),
701  MSGDUMP_PREFIX, (void *)hwnd, (void *)hrgn);
702 }
703 
704 static __inline BOOL MSGDUMP_API
705 MD_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized)
706 {
707  MSGDUMP_TPRINTF(TEXT("%sWM_NCACTIVATE(hwnd:%p, fActive:%d, hwndActDeact:%p, fMinimized:%d)\n"),
708  MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActDeact, fMinimized);
709  return FALSE;
710 }
711 
712 static __inline UINT MSGDUMP_API
714 {
715  MSGDUMP_TPRINTF(TEXT("%sWM_GETDLGCODE(hwnd:%p, lpmsg:%p)\n"),
716  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmsg);
717  return 0;
718 }
719 
720 static __inline void MSGDUMP_API
721 MD_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest)
722 {
723  MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEMOVE(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
724  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
725 }
726 
727 static __inline void MSGDUMP_API
728 MD_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
729 {
730  if (fDoubleClick)
731  {
732  MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
733  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
734  }
735  else
736  {
737  MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
738  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
739  }
740 }
741 
742 static __inline void MSGDUMP_API
743 MD_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
744 {
745  MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
746  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
747 }
748 
749 static __inline void MSGDUMP_API
750 MD_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
751 {
752  if (fDoubleClick)
753  {
754  MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
755  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
756  }
757  else
758  {
759  MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
760  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
761  }
762 }
763 
764 static __inline void MSGDUMP_API
765 MD_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
766 {
767  MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
768  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
769 }
770 
771 static __inline void MSGDUMP_API
772 MD_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
773 {
774  if (fDoubleClick)
775  {
776  MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
777  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
778  }
779  else
780  {
781  MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
782  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
783  }
784 }
785 
786 static __inline void MSGDUMP_API
787 MD_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
788 {
789  MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
790  MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
791 }
792 
793 static __inline void MSGDUMP_API
794 MD_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
795 {
796  if (fDown)
797  {
798  MSGDUMP_TPRINTF(TEXT("%sWM_KEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
799  MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
800  }
801  else
802  {
803  MSGDUMP_TPRINTF(TEXT("%sWM_KEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
804  MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
805  }
806 }
807 
808 static __inline void MSGDUMP_API
809 MD_OnChar(HWND hwnd, TCHAR ch, int cRepeat)
810 {
811  MSGDUMP_TPRINTF(TEXT("%sWM_CHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
812  MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
813 }
814 
815 static __inline void MSGDUMP_API
816 MD_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
817 {
818  MSGDUMP_TPRINTF(TEXT("%sWM_DEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
819  MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
820 }
821 
822 static __inline void MSGDUMP_API
823 MD_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
824 {
825  if (fDown)
826  {
827  MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
828  MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
829  }
830  else
831  {
832  MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
833  MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
834  }
835 }
836 
837 static __inline void MSGDUMP_API
838 MD_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat)
839 {
840  MSGDUMP_TPRINTF(TEXT("%sWM_SYSCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
841  MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
842 }
843 
844 static __inline void MSGDUMP_API
845 MD_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
846 {
847  MSGDUMP_TPRINTF(TEXT("%sWM_SYSDEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
848  MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
849 }
850 
851 static __inline BOOL MSGDUMP_API
853 {
854  MSGDUMP_TPRINTF(TEXT("%sWM_INITDIALOG(hwnd:%p, hwndFocus:%p, lParam:%p)\n"),
855  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFocus, (void *)lParam);
856  return FALSE;
857 }
858 
859 static __inline void MSGDUMP_API
860 MD_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
861 {
862  MSGDUMP_TPRINTF(TEXT("%sWM_COMMAND(hwnd:%p, id:%d, hwndCtl:%p, codeNotify:%u)\n"),
863  MSGDUMP_PREFIX, (void *)hwnd, id, (void *)hwndCtl, codeNotify);
864 }
865 
866 static __inline void MSGDUMP_API
868 {
869  MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOMMAND(hwnd:%p, cmd:%u, x:%d, y:%d)\n"),
870  MSGDUMP_PREFIX, (void *)hwnd, cmd, x, y);
871 }
872 
873 static __inline void MSGDUMP_API
875 {
876  MSGDUMP_TPRINTF(TEXT("%sWM_TIMER(hwnd:%p, id:%u)\n"),
877  MSGDUMP_PREFIX, (void *)hwnd, id);
878 }
879 
880 static __inline void MSGDUMP_API
882 {
883  MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
884  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
885 }
886 
887 static __inline void MSGDUMP_API
889 {
890  MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
891  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
892 }
893 
894 static __inline void MSGDUMP_API
896 {
897  MSGDUMP_TPRINTF(TEXT("%sWM_INITMENU(hwnd:%p, hMenu:%p)\n"),
898  MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu);
899 }
900 
901 static __inline void MSGDUMP_API
903 {
904  MSGDUMP_TPRINTF(TEXT("%sWM_INITMENUPOPUP(hwnd:%p, hMenu:%p, item:%u, fSystemMenu:%d)\n"),
905  MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, item, fSystemMenu);
906 }
907 
908 static __inline void MSGDUMP_API
910 {
911  MSGDUMP_TPRINTF(TEXT("%sWM_MENUSELECT(hwnd:%p, hmenu:%p, item:%d, hmenuPopup:%p, flags:%u)\n"),
912  MSGDUMP_PREFIX, (void *)hwnd, (void *)hmenu, item, (void *)hmenuPopup, flags);
913 }
914 
915 static __inline DWORD MSGDUMP_API
917 {
918  MSGDUMP_TPRINTF(TEXT("%sWM_MENUCHAR(hwnd:%p, ch:%u, flags:%u, hmenu:%p)\n"),
919  MSGDUMP_PREFIX, (void *)hwnd, ch, flags, (void *)hmenu);
920  return 0;
921 }
922 
923 static __inline void MSGDUMP_API
925 {
926  MSGDUMP_TPRINTF(TEXT("%sWM_ENTERIDLE(hwnd:%p, source:%u, hwndSource:%p)\n"),
927  MSGDUMP_PREFIX, (void *)hwnd, source, (void *)hwndSource);
928 }
929 
930 static __inline HBRUSH MSGDUMP_API
931 MD_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type)
932 {
933  MSGDUMP_TPRINTF(TEXT("%sWM_CTLCOLOR(hwnd:%p, hdc:%p, hwndChild:%p, type:%d)\n"),
934  MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc, (void *)hwndChild, type);
935  return NULL;
936 }
937 
938 static __inline void MSGDUMP_API
939 MD_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags)
940 {
941  MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEMOVE(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
942  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
943 }
944 
945 static __inline void MSGDUMP_API
946 MD_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
947 {
948  if (fDoubleClick)
949  {
950  MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
951  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
952  }
953  else
954  {
955  MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
956  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
957  }
958 }
959 
960 static __inline void MSGDUMP_API
961 MD_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags)
962 {
963  MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONUP(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
964  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
965 }
966 
967 static __inline void MSGDUMP_API
968 MD_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
969 {
970  if (fDoubleClick)
971  {
972  MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
973  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
974  }
975  else
976  {
977  MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
978  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
979  }
980 }
981 
982 static __inline void MSGDUMP_API
984 {
985  MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
986  MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
987 }
988 
989 static __inline void MSGDUMP_API
990 MD_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
991 {
992  if (fDoubleClick)
993  {
994  MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
995  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
996  }
997  else
998  {
999  MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
1000  MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
1001  }
1002 }
1003 
1004 static __inline void MSGDUMP_API
1006 {
1007  MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
1008  MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
1009 }
1010 
1011 static __inline void MSGDUMP_API
1012 MD_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys)
1013 {
1014  MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEWHEEL(hwnd:%p, xPos:%d, yPos:%d, zDelta:%d, fwKeys:%u)\n"),
1015  MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos, zDelta, fwKeys);
1016 }
1017 
1018 static __inline void MSGDUMP_API
1019 MD_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild)
1020 {
1021  MSGDUMP_TPRINTF(TEXT("%sWM_PARENTNOTIFY(hwnd:%p, msg:%u, hwndChild:%p, idChild:%d)\n"),
1022  MSGDUMP_PREFIX, (void *)hwnd, msg, (void *)hwndChild, idChild);
1023 }
1024 
1025 static __inline BOOL MSGDUMP_API
1026 MD_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData)
1027 {
1028  MSGDUMP_TPRINTF(TEXT("%sWM_DEVICECHANGE(hwnd:%p, uEvent:%u, dwEventData:0x%08lX)\n"),
1029  MSGDUMP_PREFIX, (void *)hwnd, uEvent, dwEventData);
1030  return FALSE;
1031 }
1032 
1033 static __inline HWND MSGDUMP_API
1035 {
1036  MSGDUMP_TPRINTF(TEXT("%sWM_MDICREATE(hwnd:%p, lpmcs:%p)\n"),
1037  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmcs);
1038  return NULL;
1039 }
1040 
1041 static __inline void MSGDUMP_API
1043 {
1044  MSGDUMP_TPRINTF(TEXT("%sWM_MDIDESTROY(hwnd:%p, hwndDestroy:%p)\n"),
1045  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndDestroy);
1046 }
1047 
1048 static __inline void MSGDUMP_API
1049 MD_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate)
1050 {
1051  MSGDUMP_TPRINTF(TEXT("%sWM_MDIACTIVATE(hwnd:%p, fActive:%d, hwndActivate:%p, hwndDeactivate:%p)\n"),
1052  MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActivate, (void *)hwndDeactivate);
1053 }
1054 
1055 static __inline void MSGDUMP_API
1057 {
1058  MSGDUMP_TPRINTF(TEXT("%sWM_MDIRESTORE(hwnd:%p, hwndRestore:%p)\n"),
1059  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRestore);
1060 }
1061 
1062 static __inline HWND MSGDUMP_API
1063 MD_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev)
1064 {
1065  MSGDUMP_TPRINTF(TEXT("%sWM_MDINEXT(hwnd:%p, hwndCur:%p, fPrev:%d)\n"),
1066  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCur, fPrev);
1067  return NULL;
1068 }
1069 
1070 static __inline void MSGDUMP_API
1072 {
1073  MSGDUMP_TPRINTF(TEXT("%sWM_MDIMAXIMIZE(hwnd:%p, hwndMaximize:%p)\n"),
1074  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndMaximize);
1075 }
1076 
1077 static __inline BOOL MSGDUMP_API
1079 {
1080  MSGDUMP_TPRINTF(TEXT("%sWM_MDITILE(hwnd:%p, cmd:%u)\n"),
1081  MSGDUMP_PREFIX, (void *)hwnd, cmd);
1082  return FALSE;
1083 }
1084 
1085 static __inline BOOL MSGDUMP_API
1087 {
1088  MSGDUMP_TPRINTF(TEXT("%sWM_MDICASCADE(hwnd:%p, cmd:%u)\n"),
1089  MSGDUMP_PREFIX, (void *)hwnd, cmd);
1090  return FALSE;
1091 }
1092 
1093 static __inline void MSGDUMP_API
1095 {
1096  MSGDUMP_TPRINTF(TEXT("%sWM_MDIICONARRANGE(hwnd:%p)\n"),
1097  MSGDUMP_PREFIX, (void *)hwnd);
1098 }
1099 
1100 static __inline HWND MSGDUMP_API
1102 {
1103  MSGDUMP_TPRINTF(TEXT("%sWM_MDIGETACTIVE(hwnd:%p)\n"),
1104  MSGDUMP_PREFIX, (void *)hwnd);
1105  return NULL;
1106 }
1107 
1108 #ifdef _UNDOCUSER_H
1109  static __inline LRESULT MSGDUMP_API
1110  MD_OnDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
1111  {
1112  MSGDUMP_TPRINTF(TEXT("%sWM_DROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1113  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1114  return 0;
1115  }
1116 
1117  static __inline LRESULT MSGDUMP_API
1118  MD_OnQueryDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
1119  {
1120  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1121  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1122  return 0;
1123  }
1124 
1125  static __inline LRESULT MSGDUMP_API
1126  MD_OnBeginDrag(HWND hwnd, WPARAM wParam, LPARAM lParam)
1127  {
1128  MSGDUMP_TPRINTF(TEXT("%sWM_BEGINDRAG(hwnd:%p, wParam:%p, lParam:%p)\n"),
1129  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1130  return 0;
1131  }
1132 
1133  static __inline LRESULT MSGDUMP_API
1134  MD_OnDragLoop(HWND hwnd, WPARAM wParam, LPARAM lParam)
1135  {
1136  MSGDUMP_TPRINTF(TEXT("%sWM_DRAGLOOP(hwnd:%p, wParam:%p, lParam:%p)\n"),
1137  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1138  return 0;
1139  }
1140 
1141  static __inline LRESULT MSGDUMP_API
1142  MD_OnDragSelect(HWND hwnd, WPARAM wParam, LPARAM lParam)
1143  {
1144  MSGDUMP_TPRINTF(TEXT("%sWM_DRAGSELECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1145  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1146  return 0;
1147  }
1148 
1149  static __inline LRESULT MSGDUMP_API
1150  MD_OnDragMove(HWND hwnd, WPARAM wParam, LPARAM lParam)
1151  {
1152  MSGDUMP_TPRINTF(TEXT("%sWM_DRAGMOVE(hwnd:%p, wParam:%p, lParam:%p)\n"),
1153  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1154  return 0;
1155  }
1156 #endif
1157 
1158 static __inline HMENU MSGDUMP_API
1159 MD_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow)
1160 {
1161  MSGDUMP_TPRINTF(TEXT("%sWM_MDISETMENU(hwnd:%p, fRefresh:%d, hmenuFrame:%p, hmenuWindow:%p)\n"),
1162  MSGDUMP_PREFIX, (void *)hwnd, fRefresh, (void *)hmenuFrame, (void *)hmenuWindow);
1163  return NULL;
1164 }
1165 
1166 static __inline void MSGDUMP_API
1167 MD_OnDropFiles(HWND hwnd, HDROP hdrop)
1168 {
1169  MSGDUMP_TPRINTF(TEXT("%sWM_DROPFILES(hwnd:%p, hdrop:%p)\n"),
1170  MSGDUMP_PREFIX, (void *)hwnd, (void *)hdrop);
1171 }
1172 
1173 static __inline void MSGDUMP_API
1175 {
1176  MSGDUMP_TPRINTF(TEXT("%sWM_CUT(hwnd:%p)\n"),
1177  MSGDUMP_PREFIX, (void *)hwnd);
1178 }
1179 
1180 static __inline void MSGDUMP_API
1182 {
1183  MSGDUMP_TPRINTF(TEXT("%sWM_COPY(hwnd:%p)\n"),
1184  MSGDUMP_PREFIX, (void *)hwnd);
1185 }
1186 
1187 static __inline void MSGDUMP_API
1189 {
1190  MSGDUMP_TPRINTF(TEXT("%sWM_PASTE(hwnd:%p)\n"),
1191  MSGDUMP_PREFIX, (void *)hwnd);
1192 }
1193 
1194 static __inline void MSGDUMP_API
1196 {
1197  MSGDUMP_TPRINTF(TEXT("%sWM_CLEAR(hwnd:%p)\n"),
1198  MSGDUMP_PREFIX, (void *)hwnd);
1199 }
1200 
1201 static __inline void MSGDUMP_API
1203 {
1204  MSGDUMP_TPRINTF(TEXT("%sWM_UNDO(hwnd:%p)\n"),
1205  MSGDUMP_PREFIX, (void *)hwnd);
1206 }
1207 
1208 static __inline HANDLE MSGDUMP_API
1210 {
1211  MSGDUMP_TPRINTF(TEXT("%sWM_RENDERFORMAT(hwnd:%p, fmt:%u)\n"),
1212  MSGDUMP_PREFIX, (void *)hwnd, fmt);
1213  return NULL;
1214 }
1215 
1216 static __inline void MSGDUMP_API
1218 {
1219  MSGDUMP_TPRINTF(TEXT("%sWM_RENDERALLFORMATS(hwnd:%p)\n"),
1220  MSGDUMP_PREFIX, (void *)hwnd);
1221 }
1222 
1223 static __inline void MSGDUMP_API
1225 {
1226  MSGDUMP_TPRINTF(TEXT("%sWM_DESTROYCLIPBOARD(hwnd:%p)\n"),
1227  MSGDUMP_PREFIX, (void *)hwnd);
1228 }
1229 
1230 static __inline void MSGDUMP_API
1232 {
1233  MSGDUMP_TPRINTF(TEXT("%sWM_DRAWCLIPBOARD(hwnd:%p)\n"),
1234  MSGDUMP_PREFIX, (void *)hwnd);
1235 }
1236 
1237 static __inline void MSGDUMP_API
1238 MD_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct)
1239 {
1240  MSGDUMP_TPRINTF(TEXT("%sWM_PAINTCLIPBOARD(hwnd:%p, hwndCBViewer:%p, lpPaintStruct:%p)\n"),
1241  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, (void *)lpPaintStruct);
1242 }
1243 
1244 static __inline void MSGDUMP_API
1246 {
1247  MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1248  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1249 }
1250 
1251 static __inline void MSGDUMP_API
1253 {
1255  MSGDUMP_TPRINTF(TEXT("%sWM_SIZECLIPBOARD(hwnd:%p, hwndCBViewer:%p, lprc:%s)\n"),
1256  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer,
1257  MD_rect_text(buf, sizeof(buf), lprc));
1258 }
1259 
1260 static __inline void MSGDUMP_API
1262 {
1263  MSGDUMP_TPRINTF(TEXT("%sWM_ASKCBFORMATNAME(hwnd:%p, cchMax:%d, rgchName:%p)\n"),
1264  MSGDUMP_PREFIX, (void *)hwnd, cchMax, (void *)rgchName);
1265 }
1266 
1267 static __inline void MSGDUMP_API
1268 MD_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext)
1269 {
1270  MSGDUMP_TPRINTF(TEXT("%sWM_CHANGECBCHAIN(hwnd:%p, hwndRemove:%p, hwndNext:%p)\n"),
1271  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRemove, (void *)hwndNext);
1272 }
1273 
1274 static __inline void MSGDUMP_API
1276 {
1277  MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1278  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1279 }
1280 
1281 static __inline BOOL MSGDUMP_API
1283 {
1284  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYNEWPALETTE(hwnd:%p)\n"),
1285  MSGDUMP_PREFIX, (void *)hwnd);
1286  return FALSE;
1287 }
1288 
1289 static __inline void MSGDUMP_API
1291 {
1292  MSGDUMP_TPRINTF(TEXT("%sWM_PALETTEISCHANGING(hwnd:%p, hwndPaletteChange:%p)\n"),
1293  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1294 }
1295 
1296 static __inline void MSGDUMP_API
1297 MD_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange)
1298 {
1299  MSGDUMP_TPRINTF(TEXT("%sWM_PALETTECHANGED(hwnd:%p, hwndPaletteChange:%p)\n"),
1300  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1301 }
1302 
1303 static __inline void MSGDUMP_API
1304 MD_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk)
1305 {
1306  MSGDUMP_TPRINTF(TEXT("%sWM_HOTKEY(hwnd:%p, idHotKey:%d, fuModifiers:%u, vk:%u)\n"),
1307  MSGDUMP_PREFIX, (void *)hwnd, idHotKey, fuModifiers, vk);
1308 }
1309 
1310 static __inline INT MSGDUMP_API
1311 MD_OnSetHotKey(HWND hwnd, INT nCode, UINT nOptions)
1312 {
1313  MSGDUMP_TPRINTF(TEXT("%sWM_SETHOTKEY(hwnd:%p, nCode:%d, nOptions:%u)\n"),
1314  MSGDUMP_PREFIX, (void *)hwnd, nCode, nOptions);
1315  return 0;
1316 }
1317 
1318 static __inline INT MSGDUMP_API
1320 {
1321  MSGDUMP_TPRINTF(TEXT("%sWM_GETHOTKEY(hwnd:%p)\n"),
1322  MSGDUMP_PREFIX, (void *)hwnd);
1323  return 0;
1324 }
1325 
1326 static __inline void MSGDUMP_API
1328 {
1329  MSGDUMP_TPRINTF(TEXT("%sWM_PAINTICON(hwnd:%p)\n"),
1330  MSGDUMP_PREFIX, (void *)hwnd);
1331 }
1332 
1333 static __inline LRESULT MSGDUMP_API
1335 {
1336  MSGDUMP_TPRINTF(TEXT("%sWM_GETOBJECT(hwnd:%p, wParam:%p, dwObjId:0x%08lX)\n"),
1337  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, dwObjId);
1338  return 0;
1339 }
1340 
1341 static __inline void MSGDUMP_API
1343 {
1344  MSGDUMP_TPRINTF(TEXT("%sWM_CANCELJOURNAL(hwnd:%p)\n"),
1345  MSGDUMP_PREFIX, (void *)hwnd);
1346 }
1347 
1348 static __inline void MSGDUMP_API
1350 {
1351  MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGEREQUEST(hwnd:%p, bFlag:%d, hKL:%p)\n"),
1352  MSGDUMP_PREFIX, (void *)hwnd, bFlag, (void *)hKL);
1353 }
1354 
1355 static __inline void MSGDUMP_API
1357 {
1358  MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGE(hwnd:%p, dwCharSet:0x%08lX, hKL:%p)\n"),
1359  MSGDUMP_PREFIX, (void *)hwnd, dwCharSet, (void *)hKL);
1360 }
1361 
1362 static __inline void MSGDUMP_API
1363 MD_OnTCard(HWND hwnd, UINT idAction, DWORD dwActionData)
1364 {
1365  MSGDUMP_TPRINTF(TEXT("%sWM_TCARD(hwnd:%p, idAction:%u, dwActionData:0x%08lX)\n"),
1366  MSGDUMP_PREFIX, (void *)hwnd, idAction, dwActionData);
1367 }
1368 
1369 static __inline void MSGDUMP_API
1371 {
1372  MSGDUMP_TPRINTF(TEXT("%sWM_HELP(hwnd:%p, lpHelpInfo:%p)\n"),
1373  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpHelpInfo);
1374 }
1375 
1376 static __inline void MSGDUMP_API
1378 {
1379  MSGDUMP_TPRINTF(TEXT("%sWM_USERCHANGED(hwnd:%p)\n"),
1380  MSGDUMP_PREFIX, (void *)hwnd);
1381 }
1382 
1383 static __inline INT MSGDUMP_API
1384 MD_OnNotifyFormat(HWND hwnd, HWND hwndTarget, INT nCommand)
1385 {
1386  MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFYFORMAT(hwnd:%p, hwndTarget:%p, nCommand:%d)\n"),
1387  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, nCommand);
1388  return 0;
1389 }
1390 
1391 static __inline void MSGDUMP_API
1392 MD_OnStyleChanging(HWND hwnd, UINT nStyleType, LPSTYLESTRUCT lpStyleStruct)
1393 {
1394  MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGING(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1395  MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1396 }
1397 
1398 static __inline void MSGDUMP_API
1399 MD_OnStyleChanged(HWND hwnd, UINT nStyleType, const STYLESTRUCT *lpStyleStruct)
1400 {
1401  MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGED(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1402  MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1403 }
1404 
1405 static __inline HICON MSGDUMP_API
1407 {
1408  MSGDUMP_TPRINTF(TEXT("%sWM_GETICON(hwnd:%p, nType:%u, dpi:%p)\n"),
1409  MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)dpi);
1410  return NULL;
1411 }
1412 
1413 static __inline HICON MSGDUMP_API
1415 {
1416  MSGDUMP_TPRINTF(TEXT("%sWM_SETICON(hwnd:%p, nType:%u, hIcon:%p)\n"),
1417  MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)hIcon);
1418  return NULL;
1419 }
1420 
1421 static __inline void MSGDUMP_API
1423 {
1424  MSGDUMP_TPRINTF(TEXT("%sWM_SYNCPAINT(hwnd:%p)\n"),
1425  MSGDUMP_PREFIX, (void *)hwnd);
1426 }
1427 
1428 static __inline void MSGDUMP_API
1429 MD_OnNCXButtonDown(HWND hwnd, BOOL fDoubleClick, UINT nHitTest, WORD fwButton,
1430  INT xPos, INT yPos)
1431 {
1432  if (fDoubleClick)
1433  {
1434  MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDBLCLK(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1435  MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1436  }
1437  else
1438  {
1439  MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDOWN(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1440  MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1441  }
1442 }
1443 
1444 static __inline void MSGDUMP_API
1445 MD_OnNCXButtonUp(HWND hwnd, UINT nHitTest, WORD fwButton, INT xPos, INT yPos)
1446 {
1447  MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONUP(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1448  MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1449 }
1450 
1451 static __inline void MSGDUMP_API
1453 {
1454  MSGDUMP_TPRINTF(TEXT("%sWM_IME_STARTCOMPOSITION(hwnd:%p)\n"),
1455  MSGDUMP_PREFIX, (void *)hwnd);
1456 }
1457 
1458 static __inline void MSGDUMP_API
1460 {
1461  MSGDUMP_TPRINTF(TEXT("%sWM_IME_ENDCOMPOSITION(hwnd:%p)\n"),
1462  MSGDUMP_PREFIX, (void *)hwnd);
1463 }
1464 
1465 static __inline void MSGDUMP_API
1467 {
1468  MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITION(hwnd:%p, wChar:%u, lAttribute:0x%08lX)\n"),
1469  MSGDUMP_PREFIX, (void *)hwnd, wChar, lAttribute);
1470 }
1471 
1472 static __inline void MSGDUMP_API
1474 {
1475  MSGDUMP_TPRINTF(TEXT("%sWM_MENURBUTTONUP(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1476  MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1477 }
1478 
1479 static __inline UINT MSGDUMP_API
1481 {
1482  MSGDUMP_TPRINTF(TEXT("%sWM_MENUDRAG(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1483  MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1484  return 0;
1485 }
1486 
1487 static __inline UINT MSGDUMP_API
1489 {
1490  MSGDUMP_TPRINTF(TEXT("%sWM_MENUGETOBJECT(hwnd:%p, pmgoi:%p)\n"),
1491  MSGDUMP_PREFIX, (void *)hwnd, (void *)pmgoi);
1492  return 0;
1493 }
1494 
1495 static __inline void MSGDUMP_API
1497 {
1498  MSGDUMP_TPRINTF(TEXT("%sWM_UNINITMENUPOPUP(hwnd:%p, hMenu:%p, nFlags:%u)\n"),
1499  MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, nFlags);
1500 }
1501 
1502 static __inline void MSGDUMP_API
1504 {
1505  MSGDUMP_TPRINTF(TEXT("%sWM_MENUCOMMAND(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1506  MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1507 }
1508 
1509 static __inline void MSGDUMP_API
1510 MD_OnChangeUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1511 {
1512  MSGDUMP_TPRINTF(TEXT("%sWM_CHANGEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1513  MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1514 }
1515 
1516 static __inline void MSGDUMP_API
1517 MD_OnUpdateUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1518 {
1519  MSGDUMP_TPRINTF(TEXT("%sWM_UPDATEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1520  MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1521 }
1522 
1523 static __inline UINT MSGDUMP_API
1525 {
1526  MSGDUMP_TPRINTF(TEXT("%sWM_QUERYUISTATE(hwnd:%p)\n"),
1527  MSGDUMP_PREFIX, (void *)hwnd);
1528  return 0;
1529 }
1530 
1531 static __inline void MSGDUMP_API
1532 MD_OnXButtonDown(HWND hwnd, BOOL fDoubleClick, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1533 {
1534  if (fDoubleClick)
1535  {
1536  MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDBLCLK(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1537  MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1538  }
1539  else
1540  {
1541  MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDOWN(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1542  MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1543  }
1544 }
1545 
1546 static __inline void MSGDUMP_API
1547 MD_OnXButtonUp(HWND hwnd, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1548 {
1549  MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONUP(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1550  MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1551 }
1552 
1553 static __inline void MSGDUMP_API
1554 MD_OnEnterMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1555 {
1556  MSGDUMP_TPRINTF(TEXT("%sWM_ENTERMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1557  MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1558 }
1559 
1560 static __inline void MSGDUMP_API
1561 MD_OnExitMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1562 {
1563  MSGDUMP_TPRINTF(TEXT("%sWM_EXITMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1564  MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1565 }
1566 
1567 static __inline void MSGDUMP_API
1568 MD_OnNextMenu(HWND hwnd, INT nCode, LPMDINEXTMENU lpMDINextMenu)
1569 {
1570  MSGDUMP_TPRINTF(TEXT("%sWM_NEXTMENU(hwnd:%p, nCode:%d, lpMDINextMenu:%p)\n"),
1571  MSGDUMP_PREFIX, (void *)hwnd, nCode, (void *)lpMDINextMenu);
1572 }
1573 
1574 static __inline void MSGDUMP_API
1576 {
1578  MSGDUMP_TPRINTF(TEXT("%sWM_SIZING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1579  MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1580 }
1581 
1582 static __inline void MSGDUMP_API
1584 {
1585  MSGDUMP_TPRINTF(TEXT("%sWM_CAPTURECHANGED(hwnd:%p, hwndNewCapture:%p)\n"),
1586  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewCapture);
1587 }
1588 
1589 static __inline void MSGDUMP_API
1591 {
1593  MSGDUMP_TPRINTF(TEXT("%sWM_MOVING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1594  MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1595 }
1596 
1597 static __inline LRESULT MSGDUMP_API
1598 MD_OnPowerBroadcast(HWND hwnd, UINT nPowerEvent, UINT nEventData)
1599 {
1600  MSGDUMP_TPRINTF(TEXT("%sWM_POWERBROADCAST(hwnd:%p, nPowerEvent:%u, nEventData:%u)\n"),
1601  MSGDUMP_PREFIX, (void *)hwnd, nPowerEvent, nEventData);
1602  return 0;
1603 }
1604 
1605 static __inline void MSGDUMP_API
1607 {
1608  MSGDUMP_TPRINTF(TEXT("%sWM_ENTERSIZEMOVE(hwnd:%p)\n"),
1609  MSGDUMP_PREFIX, (void *)hwnd);
1610 }
1611 
1612 static __inline void MSGDUMP_API
1614 {
1615  MSGDUMP_TPRINTF(TEXT("%sWM_EXITSIZEMOVE(hwnd:%p)\n"),
1616  MSGDUMP_PREFIX, (void *)hwnd);
1617 }
1618 
1619 static __inline HMENU MSGDUMP_API
1621 {
1622  MSGDUMP_TPRINTF(TEXT("%sWM_MDIREFRESHMENU(hwnd:%p)\n"),
1623  MSGDUMP_PREFIX, (void *)hwnd);
1624  return NULL;
1625 }
1626 
1627 static __inline BOOL MSGDUMP_API
1629 {
1630  MSGDUMP_TPRINTF(TEXT("%sWM_IME_SETCONTEXT(hwnd:%p, fActive:%d, dwShow:0x%08lX)\n"),
1631  MSGDUMP_PREFIX, (void *)hwnd, fActive, dwShow);
1632  return FALSE;
1633 }
1634 
1635 static __inline LRESULT MSGDUMP_API
1637 {
1638  MSGDUMP_TPRINTF(TEXT("%sWM_IME_NOTIFY(hwnd:%p, wSubMessage:%p, lParam:%p)\n"),
1639  MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lParam);
1640  return 0;
1641 }
1642 
1643 static __inline LRESULT MSGDUMP_API
1644 MD_OnImeControl(HWND hwnd, WPARAM wSubMessage, LPVOID lpData)
1645 {
1646  MSGDUMP_TPRINTF(TEXT("%sWM_IME_CONTROL(hwnd:%p, wSubMessage:%p, lpData:%p)\n"),
1647  MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lpData);
1648  return 0;
1649 }
1650 
1651 static __inline void MSGDUMP_API
1653 {
1654  MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITIONFULL(hwnd:%p)\n"),
1655  MSGDUMP_PREFIX, (void *)hwnd);
1656 }
1657 
1658 static __inline void MSGDUMP_API
1660 {
1661  MSGDUMP_TPRINTF(TEXT("%sWM_IME_SELECT(hwnd:%p, fSelect:%d, hKL:%p)\n"),
1662  MSGDUMP_PREFIX, (void *)hwnd, fSelect, (void *)hKL);
1663 }
1664 
1665 static __inline void MSGDUMP_API
1666 MD_OnImeChar(HWND hwnd, WORD wCharCode, LONG lKeyData)
1667 {
1668  MSGDUMP_TPRINTF(TEXT("%sWM_IME_CHAR(hwnd:%p, wCharCode:%u, lKeyData:%ld)\n"),
1669  MSGDUMP_PREFIX, (void *)hwnd, wCharCode, lKeyData);
1670 }
1671 
1672 static __inline LRESULT MSGDUMP_API
1674 {
1675  MSGDUMP_TPRINTF(TEXT("%sWM_IME_REQUEST(hwnd:%p, wParam:%p, lParam:%p)\n"),
1676  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1677  return 0;
1678 }
1679 
1680 static __inline void MSGDUMP_API
1681 MD_OnImeKey(HWND hwnd, BOOL fDown, UINT nVirtKey, LONG lKeyData)
1682 {
1683  if (fDown)
1684  {
1685  MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYDOWN(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1686  MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1687  }
1688  else
1689  {
1690  MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYUP(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1691  MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1692  }
1693 }
1694 
1695 static __inline void MSGDUMP_API
1696 MD_OnMouseHover(HWND hwnd, UINT nFlags, INT xPos, INT yPos)
1697 {
1698  MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEHOVER(hwnd:%p, nFlags:%u, xPos:%d, yPos:%d)\n"),
1699  MSGDUMP_PREFIX, (void *)hwnd, nFlags, xPos, yPos);
1700 }
1701 
1702 static __inline void MSGDUMP_API
1704 {
1705  MSGDUMP_TPRINTF(TEXT("%sWM_MOUSELEAVE(hwnd:%p)\n"),
1706  MSGDUMP_PREFIX, (void *)hwnd);
1707 }
1708 
1709 static __inline void MSGDUMP_API
1710 MD_OnNCMouseHover(HWND hwnd, UINT nHitTest, INT xPos, INT yPos)
1711 {
1712  MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEHOVER(hwnd:%p, nHitTest:%u, xPos:%d, yPos:%d)\n"),
1713  MSGDUMP_PREFIX, (void *)hwnd, nHitTest, xPos, yPos);
1714 }
1715 
1716 static __inline void MSGDUMP_API
1718 {
1719  MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSELEAVE(hwnd:%p)\n"),
1720  MSGDUMP_PREFIX, (void *)hwnd);
1721 }
1722 
1723 static __inline void MSGDUMP_API
1725 {
1726  MSGDUMP_TPRINTF(TEXT("%sWM_PRINT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1727  MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1728 }
1729 
1730 static __inline void MSGDUMP_API
1732 {
1733  MSGDUMP_TPRINTF(TEXT("%sWM_PRINTCLIENT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1734  MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1735 }
1736 
1737 static __inline BOOL MSGDUMP_API
1738 MD_OnAppCommand(HWND hwnd, HWND hwndTarget, UINT cmd, UINT nDevice, UINT nKey)
1739 {
1740  MSGDUMP_TPRINTF(TEXT("%sWM_APPCOMMAND(hwnd:%p, hwndTarget:%p, cmd:%u, nDevice:%u, nKey:%u)\n"),
1741  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, cmd, nDevice, nKey);
1742  return FALSE;
1743 }
1744 
1745 static __inline LONG MSGDUMP_API
1747 {
1748  MSGDUMP_TPRINTF(TEXT("%sEM_GETSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
1749  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
1750  return 0;
1751 }
1752 
1753 static __inline void MSGDUMP_API
1755 {
1756  MSGDUMP_TPRINTF(TEXT("%sEM_SETSEL(hwnd:%p, nStart:%d, nEnd:%d)\n"),
1757  MSGDUMP_PREFIX, (void *)hwnd, nStart, nEnd);
1758 }
1759 
1760 static __inline void MSGDUMP_API
1762 {
1763  MSGDUMP_TPRINTF(TEXT("%sEM_GETRECT(hwnd:%p, prc:%p)\n"),
1764  MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
1765 }
1766 
1767 static __inline void MSGDUMP_API
1769 {
1771  MSGDUMP_TPRINTF(TEXT("%sEM_SETRECT(hwnd:%p, prc:%s)\n"),
1772  MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1773 }
1774 
1775 static __inline void MSGDUMP_API
1777 {
1779  MSGDUMP_TPRINTF(TEXT("%sEM_SETRECTNP(hwnd:%p, prc:%s)\n"),
1780  MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1781 }
1782 
1783 static __inline DWORD MSGDUMP_API
1785 {
1786  MSGDUMP_TPRINTF(TEXT("%sEM_SCROLL(hwnd:%p, nScroll:%d)\n"),
1787  MSGDUMP_PREFIX, (void *)hwnd, nScroll);
1788  return 0;
1789 }
1790 
1791 static __inline BOOL MSGDUMP_API
1792 MD_Edit_OnLineScroll(HWND hwnd, INT cxScroll, INT cyScroll)
1793 {
1794  MSGDUMP_TPRINTF(TEXT("%sEM_LINESCROLL(hwnd:%p, cxScroll:%d, cyScroll:%d)\n"),
1795  MSGDUMP_PREFIX, (void *)hwnd, cxScroll, cyScroll);
1796  return FALSE;
1797 }
1798 
1799 static __inline BOOL MSGDUMP_API
1801 {
1802  MSGDUMP_TPRINTF(TEXT("%sEM_SCROLLCARET(hwnd:%p)\n"),
1803  MSGDUMP_PREFIX, (void *)hwnd);
1804  return FALSE;
1805 }
1806 
1807 static __inline BOOL MSGDUMP_API
1809 {
1810  MSGDUMP_TPRINTF(TEXT("%sEM_GETMODIFY(hwnd:%p)\n"),
1811  MSGDUMP_PREFIX, (void *)hwnd);
1812  return FALSE;
1813 }
1814 
1815 static __inline void MSGDUMP_API
1817 {
1818  MSGDUMP_TPRINTF(TEXT("%sEM_SETMODIFY(hwnd:%p, fModified:%d)\n"),
1819  MSGDUMP_PREFIX, (void *)hwnd, fModified);
1820 }
1821 
1822 static __inline INT MSGDUMP_API
1824 {
1825  MSGDUMP_TPRINTF(TEXT("%sEM_GETLINECOUNT(hwnd:%p)\n"),
1826  MSGDUMP_PREFIX, (void *)hwnd);
1827  return 0;
1828 }
1829 
1830 static __inline INT MSGDUMP_API
1832 {
1833  MSGDUMP_TPRINTF(TEXT("%sEM_LINEINDEX(hwnd:%p, line:%d)\n"),
1834  MSGDUMP_PREFIX, (void *)hwnd, line);
1835  return 0;
1836 }
1837 
1838 static __inline void MSGDUMP_API
1840 {
1841  MSGDUMP_TPRINTF(TEXT("%sEM_SETHANDLE(hwnd:%p, hloc:%p)\n"),
1842  MSGDUMP_PREFIX, (void *)hwnd, (void *)hloc);
1843 }
1844 
1845 static __inline HLOCAL MSGDUMP_API
1847 {
1848  MSGDUMP_TPRINTF(TEXT("%sEM_GETHANDLE(hwnd:%p)\n"),
1849  MSGDUMP_PREFIX, (void *)hwnd);
1850  return NULL;
1851 }
1852 
1853 static __inline INT MSGDUMP_API
1855 {
1856  MSGDUMP_TPRINTF(TEXT("%sEM_GETTHUMB(hwnd:%p)\n"),
1857  MSGDUMP_PREFIX, (void *)hwnd);
1858  return 0;
1859 }
1860 
1861 static __inline INT MSGDUMP_API
1863 {
1864  MSGDUMP_TPRINTF(TEXT("%sEM_LINELENGTH(hwnd:%p, ich:%d)\n"),
1865  MSGDUMP_PREFIX, (void *)hwnd, ich);
1866  return 0;
1867 }
1868 
1869 static __inline void MSGDUMP_API
1870 MD_Edit_OnReplaceSel(HWND hwnd, BOOL fCanUndo, LPCTSTR lpszReplace)
1871 {
1872  if (IsWindowUnicode(hwnd))
1873  MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %ls)\n"),
1874  MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCWSTR)lpszReplace);
1875  else
1876  MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %hs)\n"),
1877  MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCSTR)lpszReplace);
1878 }
1879 
1880 static __inline INT MSGDUMP_API
1882 {
1883  if (IsWindowUnicode(hwnd))
1884  MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%ls)\n"),
1885  MSGDUMP_PREFIX, (void *)hwnd, line, (LPCWSTR)lpch);
1886  else
1887  MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%hs)\n"),
1888  MSGDUMP_PREFIX, (void *)hwnd, line, (LPCSTR)lpch);
1889  return 0;
1890 }
1891 
1892 static __inline BOOL MSGDUMP_API
1894 {
1895  MSGDUMP_TPRINTF(TEXT("%sEM_CANUNDO(hwnd:%p)\n"),
1896  MSGDUMP_PREFIX, (void *)hwnd);
1897  return FALSE;
1898 }
1899 
1900 static __inline BOOL MSGDUMP_API
1902 {
1903  MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p)\n"),
1904  MSGDUMP_PREFIX, (void *)hwnd);
1905  return FALSE;
1906 }
1907 
1908 static __inline BOOL MSGDUMP_API
1910 {
1911  MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p, fAddEOL:%d)\n"),
1912  MSGDUMP_PREFIX, (void *)hwnd, fAddEOL);
1913  return FALSE;
1914 }
1915 
1916 static __inline INT MSGDUMP_API
1918 {
1919  MSGDUMP_TPRINTF(TEXT("%sEM_LINEFROMCHAR(hwnd:%p, ich:%d)\n"),
1920  MSGDUMP_PREFIX, (void *)hwnd, ich);
1921  return 0;
1922 }
1923 
1924 static __inline BOOL MSGDUMP_API
1926 {
1927  MSGDUMP_TPRINTF(TEXT("%sEM_SETTABSTOPS(hwnd:%p, cTabs:%d, lpdwTabs:%p)\n"),
1928  MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpdwTabs);
1929  return FALSE;
1930 }
1931 
1932 static __inline void MSGDUMP_API
1934 {
1935  MSGDUMP_TPRINTF(TEXT("%sEM_SETPASSWORDCHAR(hwnd:%p, ch:%u)\n"),
1936  MSGDUMP_PREFIX, (void *)hwnd, ch);
1937 }
1938 
1939 static __inline void MSGDUMP_API
1941 {
1942  MSGDUMP_TPRINTF(TEXT("%sEM_EMPTYUNDOBUFFER(hwnd:%p)\n"),
1943  MSGDUMP_PREFIX, (void *)hwnd);
1944 }
1945 
1946 static __inline INT MSGDUMP_API
1948 {
1949  MSGDUMP_TPRINTF(TEXT("%sEM_GETFIRSTVISIBLELINE(hwnd:%p)\n"),
1950  MSGDUMP_PREFIX, (void *)hwnd);
1951  return 0;
1952 }
1953 
1954 static __inline BOOL MSGDUMP_API
1956 {
1957  MSGDUMP_TPRINTF(TEXT("%sEM_SETREADONLY(hwnd:%p, fReadOnly:%d)\n"),
1958  MSGDUMP_PREFIX, (void *)hwnd, fReadOnly);
1959  return FALSE;
1960 }
1961 
1962 static __inline void MSGDUMP_API
1964 {
1965  MSGDUMP_TPRINTF(TEXT("%sEM_SETWORDBREAKPROC(hwnd:%p, ewbprc:%p)\n"),
1966  MSGDUMP_PREFIX, (void *)hwnd, *(void **)&ewbprc);
1967 }
1968 
1969 static __inline EDITWORDBREAKPROC MSGDUMP_API
1971 {
1972  MSGDUMP_TPRINTF(TEXT("%sEM_GETWORDBREAKPROC(hwnd:%p)\n"),
1973  MSGDUMP_PREFIX, (void *)hwnd);
1974  return NULL;
1975 }
1976 
1977 static __inline UINT MSGDUMP_API
1979 {
1980  MSGDUMP_TPRINTF(TEXT("%sEM_GETPASSWORDCHAR(hwnd:%p)\n"),
1981  MSGDUMP_PREFIX, (void *)hwnd);
1982  return 0;
1983 }
1984 
1985 static __inline void MSGDUMP_API
1986 MD_Edit_OnSetMargins(HWND hwnd, UINT fwMargin, WORD wLeft, WORD wRight)
1987 {
1988  MSGDUMP_TPRINTF(TEXT("%sEM_SETMARGINS(hwnd:%p, fwMargin:%u, wLeft:%d, wRight:%d)\n"),
1989  MSGDUMP_PREFIX, (void *)hwnd, fwMargin, wLeft, wRight);
1990 }
1991 
1992 static __inline DWORD MSGDUMP_API
1994 {
1995  MSGDUMP_TPRINTF(TEXT("%sEM_GETMARGINS(hwnd:%p)\n"),
1996  MSGDUMP_PREFIX, (void *)hwnd);
1997  return 0;
1998 }
1999 
2000 static __inline void MSGDUMP_API
2002 {
2003  MSGDUMP_TPRINTF(TEXT("%sEM_SETLIMITTEXT(hwnd:%p, cbMax:%ld)\n"),
2004  MSGDUMP_PREFIX, (void *)hwnd, cbMax);
2005 }
2006 
2007 static __inline DWORD MSGDUMP_API
2009 {
2010  MSGDUMP_TPRINTF(TEXT("%sEM_GETLIMITTEXT(hwnd:%p)\n"),
2011  MSGDUMP_PREFIX, (void *)hwnd);
2012  return 0;
2013 }
2014 
2015 static __inline void MSGDUMP_API
2017 {
2018  MSGDUMP_TPRINTF(TEXT("%sEM_POSFROMCHAR(hwnd:%p, lpPoint:%p, wCharIndex:%u)\n"),
2019  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpPoint, wCharIndex);
2020 }
2021 
2022 static __inline LONG MSGDUMP_API
2024 {
2025  MSGDUMP_TPRINTF(TEXT("%sEM_CHARFROMPOS(hwnd:%p, x:%d, y:%d)\n"),
2026  MSGDUMP_PREFIX, (void *)hwnd, x, y);
2027  return 0;
2028 }
2029 
2030 static __inline DWORD MSGDUMP_API
2032 {
2033  MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u, dwFlags:0x%08lX)\n"),
2034  MSGDUMP_PREFIX, (void *)hwnd, uType, dwFlags);
2035  return 0;
2036 }
2037 
2038 static __inline DWORD MSGDUMP_API
2040 {
2041  MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u)\n"),
2042  MSGDUMP_PREFIX, (void *)hwnd, uType);
2043  return 0;
2044 }
2045 
2046 static __inline HICON MSGDUMP_API
2048 {
2049  MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p, hIcon:%p)\n"),
2050  MSGDUMP_PREFIX, (void *)hwnd, (void *)hIcon);
2051  return NULL;
2052 }
2053 
2054 static __inline HICON MSGDUMP_API
2056 {
2057 
2058  MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p)\n"),
2059  MSGDUMP_PREFIX, (void *)hwnd);
2060  return NULL;
2061 }
2062 
2063 static __inline HANDLE MSGDUMP_API
2065 {
2066  MSGDUMP_TPRINTF(TEXT("%sSTM_SETIMAGE(hwnd:%p, fImageType:%u, hImage:%p)\n"),
2067  MSGDUMP_PREFIX, (void *)hwnd, fImageType, (void *)hImage);
2068  return NULL;
2069 }
2070 
2071 static __inline HANDLE MSGDUMP_API
2073 {
2074  MSGDUMP_TPRINTF(TEXT("%sSTM_GETIMAGE(hwnd:%p, fImageType:%u)\n"),
2075  MSGDUMP_PREFIX, (void *)hwnd, fImageType);
2076  return NULL;
2077 }
2078 
2079 static __inline INT MSGDUMP_API
2081 {
2082  if (IsWindowUnicode(hwnd))
2083  MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2084  MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2085  else
2086  MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2087  MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2088  return 0;
2089 }
2090 
2091 static __inline INT MSGDUMP_API
2093 {
2094  if (IsWindowUnicode(hwnd))
2095  MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2096  MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2097  else
2098  MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2099  MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2100  return 0;
2101 }
2102 
2103 static __inline INT MSGDUMP_API
2105 {
2106  MSGDUMP_TPRINTF(TEXT("%sLB_DELETESTRING(hwnd:%p, index:%d)\n"),
2107  MSGDUMP_PREFIX, (void *)hwnd, index);
2108  return 0;
2109 }
2110 
2111 static __inline INT MSGDUMP_API
2113 {
2114  MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGEEX(hwnd:%p, wFirst:%u, wLast:%u)\n"),
2115  MSGDUMP_PREFIX, (void *)hwnd, wFirst, wLast);
2116  return 0;
2117 }
2118 
2119 static __inline void MSGDUMP_API
2121 {
2122  MSGDUMP_TPRINTF(TEXT("%sLB_RESETCONTENT(hwnd:%p)\n"),
2123  MSGDUMP_PREFIX, (void *)hwnd);
2124 }
2125 
2126 static __inline INT MSGDUMP_API
2128 {
2129  MSGDUMP_TPRINTF(TEXT("%sLB_SETSEL(hwnd:%p, fSelect:%d, index:%u)\n"),
2130  MSGDUMP_PREFIX, (void *)hwnd, fSelect, index);
2131  return 0;
2132 }
2133 
2134 static __inline INT MSGDUMP_API
2136 {
2137  MSGDUMP_TPRINTF(TEXT("%sLB_SETCURSEL(hwnd:%p, index:%d)\n"),
2138  MSGDUMP_PREFIX, (void *)hwnd, index);
2139  return 0;
2140 }
2141 
2142 static __inline INT MSGDUMP_API
2144 {
2145  MSGDUMP_TPRINTF(TEXT("%sLB_GETSEL(hwnd:%p, index:%d)\n"),
2146  MSGDUMP_PREFIX, (void *)hwnd, index);
2147  return 0;
2148 }
2149 
2150 static __inline INT MSGDUMP_API
2152 {
2153  MSGDUMP_TPRINTF(TEXT("%sLB_GETCURSEL(hwnd:%p)\n"),
2154  MSGDUMP_PREFIX, (void *)hwnd);
2155  return 0;
2156 }
2157 
2158 static __inline INT MSGDUMP_API
2160 {
2161  MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXT(hwnd:%p, lpszBuffer:%p)\n"),
2162  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpszBuffer);
2163  return 0;
2164 }
2165 
2166 static __inline INT MSGDUMP_API
2168 {
2169  MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXTLEN(hwnd:%p, index:%d)\n"),
2170  MSGDUMP_PREFIX, (void *)hwnd, index);
2171  return 0;
2172 }
2173 
2174 static __inline INT MSGDUMP_API
2176 {
2177  MSGDUMP_TPRINTF(TEXT("%sLB_GETCOUNT(hwnd:%p)\n"),
2178  MSGDUMP_PREFIX, (void *)hwnd);
2179  return 0;
2180 }
2181 
2182 static __inline INT MSGDUMP_API
2184 {
2185  if (IsWindowUnicode(hwnd))
2186  MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2187  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2188  else
2189  MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2190  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2191  return 0;
2192 }
2193 
2194 static __inline INT MSGDUMP_API
2195 MD_ListBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2196 {
2197  if (IsWindowUnicode(hwnd))
2198  MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2199  MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2200  else
2201  MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%hs)\n"),
2202  MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2203  return 0;
2204 }
2205 
2206 static __inline INT MSGDUMP_API
2208 {
2209  MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p)\n"),
2210  MSGDUMP_PREFIX, (void *)hwnd);
2211  return 0;
2212 }
2213 
2214 static __inline INT MSGDUMP_API
2216 {
2217  if (IsWindowUnicode(hwnd))
2218  MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2219  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2220  else
2221  MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2222  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2223  return 0;
2224 }
2225 
2226 static __inline INT MSGDUMP_API
2228 {
2229  MSGDUMP_TPRINTF(TEXT("%sLB_GETSELCOUNT(hwnd:%p)\n"),
2230  MSGDUMP_PREFIX, (void *)hwnd);
2231  return 0;
2232 }
2233 
2234 static __inline INT MSGDUMP_API
2236 {
2237  MSGDUMP_TPRINTF(TEXT("%sLB_GETSELITEMS(hwnd:%p, cItems:%u, lpnItems:%p)\n"),
2238  MSGDUMP_PREFIX, (void *)hwnd, cItems, (void *)lpnItems);
2239  return 0;
2240 }
2241 
2242 static __inline BOOL MSGDUMP_API
2244 {
2245  MSGDUMP_TPRINTF(TEXT("%sLB_SETTABSTOPS(hwnd:%p, cTabs:%u, lpnTabs:%p)\n"),
2246  MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpnTabs);
2247  return FALSE;
2248 }
2249 
2250 static __inline INT MSGDUMP_API
2252 {
2253  MSGDUMP_TPRINTF(TEXT("%sLB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2254  MSGDUMP_PREFIX, (void *)hwnd);
2255  return 0;
2256 }
2257 
2258 static __inline void MSGDUMP_API
2260 {
2261  MSGDUMP_TPRINTF(TEXT("%sLB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2262  MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2263 }
2264 
2265 static __inline void MSGDUMP_API
2267 {
2268  MSGDUMP_TPRINTF(TEXT("%sLB_SETCOLUMNWIDTH(hwnd:%p, cxColumn:%d)\n"),
2269  MSGDUMP_PREFIX, (void *)hwnd, cxColumn);
2270 }
2271 
2272 static __inline INT MSGDUMP_API
2274 {
2275  if (IsWindowUnicode(hwnd))
2276  MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2277  MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszFilename);
2278  else
2279  MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2280  MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszFilename);
2281  return 0;
2282 }
2283 
2284 static __inline INT MSGDUMP_API
2286 {
2287  MSGDUMP_TPRINTF(TEXT("%sLB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2288  MSGDUMP_PREFIX, (void *)hwnd, index);
2289  return 0;
2290 }
2291 
2292 static __inline INT MSGDUMP_API
2294 {
2295  MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMRECT(hwnd:%p, index:%d, lprc:%p)\n"),
2296  MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lprc);
2297  return 0;
2298 }
2299 
2300 static __inline INT_PTR MSGDUMP_API
2302 {
2303  MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2304  MSGDUMP_PREFIX, (void *)hwnd, index);
2305  return 0;
2306 }
2307 
2308 static __inline INT_PTR MSGDUMP_API
2310 {
2311  MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2312  MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2313  return 0;
2314 }
2315 
2316 static __inline INT MSGDUMP_API
2318 {
2319  MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGE(hwnd:%p, fSelect:%d, wFirst:%u, wLast:%u)\n"),
2320  MSGDUMP_PREFIX, (void *)hwnd, fSelect, wFirst, wLast);
2321  return 0;
2322 }
2323 
2324 static __inline INT MSGDUMP_API
2326 {
2327  MSGDUMP_TPRINTF(TEXT("%sLB_SETANCHORINDEX(hwnd:%p, index:%d)\n"),
2328  MSGDUMP_PREFIX, (void *)hwnd, index);
2329  return 0;
2330 }
2331 
2332 static __inline INT MSGDUMP_API
2334 {
2335  MSGDUMP_TPRINTF(TEXT("%sLB_GETANCHORINDEX(hwnd:%p)\n"),
2336  MSGDUMP_PREFIX, (void *)hwnd);
2337  return 0;
2338 }
2339 
2340 static __inline INT MSGDUMP_API
2342 {
2343  MSGDUMP_TPRINTF(TEXT("%sLB_SETCARETINDEX(hwnd:%p, index:%d, fScroll:%d)\n"),
2344  MSGDUMP_PREFIX, (void *)hwnd, index, fScroll);
2345  return 0;
2346 }
2347 
2348 static __inline INT MSGDUMP_API
2350 {
2351  MSGDUMP_TPRINTF(TEXT("%sLB_GETCARETINDEX(hwnd:%p)\n"),
2352  MSGDUMP_PREFIX, (void *)hwnd);
2353  return 0;
2354 }
2355 
2356 static __inline INT MSGDUMP_API
2358 {
2359  MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMHEIGHT(hwnd:%p, index:%d, cyItem:%d)\n"),
2360  MSGDUMP_PREFIX, (void *)hwnd, index, cyItem);
2361  return 0;
2362 }
2363 
2364 static __inline INT MSGDUMP_API
2366 {
2367  MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2368  MSGDUMP_PREFIX, (void *)hwnd, index);
2369  return 0;
2370 }
2371 
2372 static __inline INT MSGDUMP_API
2374 {
2375  if (IsWindowUnicode(hwnd))
2376  MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2377  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2378  else
2379  MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2380  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2381  return 0;
2382 }
2383 
2384 static __inline LCID MSGDUMP_API
2386 {
2387  MSGDUMP_TPRINTF(TEXT("%sLB_SETLOCALE(hwnd:%p, wLocaleID:0x%08X)\n"),
2388  MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2389  return 0;
2390 }
2391 
2392 static __inline LCID MSGDUMP_API
2394 {
2395  MSGDUMP_TPRINTF(TEXT("%sLB_GETLOCALE(hwnd:%p)\n"),
2396  MSGDUMP_PREFIX, (void *)hwnd);
2397  return 0;
2398 }
2399 
2400 static __inline INT MSGDUMP_API
2402 {
2403  MSGDUMP_TPRINTF(TEXT("%sLB_SETCOUNT(hwnd:%p, cItems:%d)\n"),
2404  MSGDUMP_PREFIX, (void *)hwnd, cItems);
2405  return 0;
2406 }
2407 
2408 static __inline DWORD MSGDUMP_API
2410 {
2411  MSGDUMP_TPRINTF(TEXT("%sLB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2412  MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2413  return 0;
2414 }
2415 
2416 static __inline DWORD MSGDUMP_API
2418 {
2419  MSGDUMP_TPRINTF(TEXT("%sLB_ITEMFROMPOINT(hwnd:%p, xPos:%d, yPos:%d)\n"),
2420  MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos);
2421  return 0;
2422 }
2423 
2424 static __inline DWORD MSGDUMP_API
2426 {
2427  MSGDUMP_TPRINTF(TEXT("%sCB_GETEDITSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
2428  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
2429  return 0;
2430 }
2431 
2432 static __inline void MSGDUMP_API
2434 {
2435  MSGDUMP_TPRINTF(TEXT("%sCB_LIMITTEXT(hwnd:%p, cchLimit:%u)\n"),
2436  MSGDUMP_PREFIX, (void *)hwnd, cchLimit);
2437 }
2438 
2439 static __inline INT MSGDUMP_API
2441 {
2442  MSGDUMP_TPRINTF(TEXT("%sCB_SETEDITSEL(hwnd:%p, ichStart:%d, ichEnd:%d)\n"),
2443  MSGDUMP_PREFIX, (void *)hwnd, ichStart, ichEnd);
2444  return 0;
2445 }
2446 
2447 static __inline INT MSGDUMP_API
2449 {
2450  if (IsWindowUnicode(hwnd))
2451  MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2452  MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2453  else
2454  MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2455  MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2456  return 0;
2457 }
2458 
2459 static __inline INT MSGDUMP_API
2461 {
2462  MSGDUMP_TPRINTF(TEXT("%sCB_DELETESTRING(hwnd:%p, index:%d)\n"),
2463  MSGDUMP_PREFIX, (void *)hwnd, index);
2464  return 0;
2465 }
2466 
2467 static __inline INT MSGDUMP_API
2468 MD_ComboBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2469 {
2470  if (IsWindowUnicode(hwnd))
2471  MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2472  MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2473  else
2474  MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2475  MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2476  return 0;
2477 }
2478 
2479 static __inline INT MSGDUMP_API
2481 {
2482  MSGDUMP_TPRINTF(TEXT("%sCB_GETCOUNT(hwnd:%p)\n"),
2483  MSGDUMP_PREFIX, (void *)hwnd);
2484  return 0;
2485 }
2486 
2487 static __inline INT MSGDUMP_API
2489 {
2490  MSGDUMP_TPRINTF(TEXT("%sCB_GETCURSEL(hwnd:%p)\n"),
2491  MSGDUMP_PREFIX, (void *)hwnd);
2492  return 0;
2493 }
2494 
2495 static __inline INT MSGDUMP_API
2497 {
2498  MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXT(hwnd:%p, index:%d, lpszBuffer:%p)\n"),
2499  MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lpszBuffer);
2500  return 0;
2501 }
2502 
2503 static __inline INT MSGDUMP_API
2505 {
2506  MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXTLEN(hwnd:%p, index:%d)\n"),
2507  MSGDUMP_PREFIX, (void *)hwnd, index);
2508  return 0;
2509 }
2510 
2511 static __inline INT MSGDUMP_API
2513 {
2514  if (IsWindowUnicode(hwnd))
2515  MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2516  MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2517  else
2518  MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2519  MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2520  return 0;
2521 }
2522 
2523 static __inline void MSGDUMP_API
2525 {
2526  MSGDUMP_TPRINTF(TEXT("%sCB_RESETCONTENT(hwnd:%p)\n"),
2527  MSGDUMP_PREFIX, (void *)hwnd);
2528 }
2529 
2530 static __inline INT MSGDUMP_API
2532 {
2533  if (IsWindowUnicode(hwnd))
2534  MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2535  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2536  else
2537  MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2538  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2539  return 0;
2540 }
2541 
2542 static __inline INT MSGDUMP_API
2544 {
2545  if (IsWindowUnicode(hwnd))
2546  MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%ls)\n"),
2547  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszSelect);
2548  else
2549  MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%hs)\n"),
2550  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszSelect);
2551  return 0;
2552 }
2553 
2554 static __inline INT MSGDUMP_API
2556 {
2557  MSGDUMP_TPRINTF(TEXT("%sCB_SETCURSEL(hwnd:%p, index:%d)\n"),
2558  MSGDUMP_PREFIX, (void *)hwnd, index);
2559  return 0;
2560 }
2561 
2562 static __inline BOOL MSGDUMP_API
2564 {
2565  MSGDUMP_TPRINTF(TEXT("%sCB_SHOWDROPDOWN(hwnd:%p, fShow:%d)\n"),
2566  MSGDUMP_PREFIX, (void *)hwnd, fShow);
2567  return FALSE;
2568 }
2569 
2570 static __inline INT_PTR MSGDUMP_API
2572 {
2573  MSGDUMP_TPRINTF(TEXT("%sCB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2574  MSGDUMP_PREFIX, (void *)hwnd, index);
2575  return 0;
2576 }
2577 
2578 static __inline INT_PTR MSGDUMP_API
2580 {
2581  MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2582  MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2583  return 0;
2584 }
2585 
2586 static __inline void MSGDUMP_API
2588 {
2589  MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDCONTROLRECT(hwnd:%p, lprc:%p)\n"),
2590  MSGDUMP_PREFIX, (void *)hwnd, (void *)lprc);
2591 }
2592 
2593 static __inline INT MSGDUMP_API
2595 {
2596  MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d, height:%d)\n"),
2597  MSGDUMP_PREFIX, (void *)hwnd, index, height);
2598  return 0;
2599 }
2600 
2601 static __inline INT MSGDUMP_API
2603 {
2604  MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2605  MSGDUMP_PREFIX, (void *)hwnd, index);
2606  return 0;
2607 }
2608 
2609 static __inline INT MSGDUMP_API
2611 {
2612  MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p, fExtended:%d)\n"),
2613  MSGDUMP_PREFIX, (void *)hwnd, fExtended);
2614  return 0;
2615 }
2616 
2617 static __inline BOOL MSGDUMP_API
2619 {
2620  MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p)\n"),
2621  MSGDUMP_PREFIX, (void *)hwnd);
2622  return FALSE;
2623 }
2624 
2625 static __inline BOOL MSGDUMP_API
2627 {
2628  MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDSTATE(hwnd:%p)\n"),
2629  MSGDUMP_PREFIX, (void *)hwnd);
2630  return FALSE;
2631 }
2632 
2633 static __inline INT MSGDUMP_API
2635 {
2636  if (IsWindowUnicode(hwnd))
2637  MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2638  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2639  else
2640  MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2641  MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2642  return 0;
2643 }
2644 
2645 static __inline LCID MSGDUMP_API
2647 {
2648  MSGDUMP_TPRINTF(TEXT("%sCB_SETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2649  MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2650  return 0;
2651 }
2652 
2653 static __inline LCID MSGDUMP_API
2655 {
2656  MSGDUMP_TPRINTF(TEXT("%sCB_GETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2657  MSGDUMP_PREFIX, (void *)hwnd);
2658  return 0;
2659 }
2660 
2661 static __inline INT MSGDUMP_API
2663 {
2664  MSGDUMP_TPRINTF(TEXT("%sCB_GETTOPINDEX(hwnd:%p)\n"),
2665  MSGDUMP_PREFIX, (void *)hwnd);
2666  return 0;
2667 }
2668 
2669 static __inline INT MSGDUMP_API
2671 {
2672  MSGDUMP_TPRINTF(TEXT("%sCB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2673  MSGDUMP_PREFIX, (void *)hwnd, index);
2674  return 0;
2675 }
2676 
2677 static __inline INT MSGDUMP_API
2679 {
2680  MSGDUMP_TPRINTF(TEXT("%sCB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2681  MSGDUMP_PREFIX, (void *)hwnd);
2682  return 0;
2683 }
2684 
2685 static __inline void MSGDUMP_API
2687 {
2688  MSGDUMP_TPRINTF(TEXT("%sCB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2689  MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2690 }
2691 
2692 static __inline INT MSGDUMP_API
2694 {
2695  MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDWIDTH(hwnd:%p)\n"),
2696  MSGDUMP_PREFIX, (void *)hwnd);
2697  return 0;
2698 }
2699 
2700 static __inline INT MSGDUMP_API
2702 {
2703  MSGDUMP_TPRINTF(TEXT("%sCB_SETDROPPEDWIDTH(hwnd:%p, wWidth:%d)\n"),
2704  MSGDUMP_PREFIX, (void *)hwnd, wWidth);
2705  return 0;
2706 }
2707 
2708 static __inline INT MSGDUMP_API
2710 {
2711  MSGDUMP_TPRINTF(TEXT("%sCB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2712  MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2713  return 0;
2714 }
2715 
2716 static __inline INT MSGDUMP_API
2718 {
2719  MSGDUMP_TPRINTF(TEXT("%sSBM_SETPOS(hwnd:%p, nPos:%d, fRedraw:%d)\n"),
2720  MSGDUMP_PREFIX, (void *)hwnd, nPos, fRedraw);
2721  return 0;
2722 }
2723 
2724 static __inline INT MSGDUMP_API
2726 {
2727  MSGDUMP_TPRINTF(TEXT("%sSBM_GETPOS(hwnd:%p)\n"),
2728  MSGDUMP_PREFIX, (void *)hwnd);
2729  return 0;
2730 }
2731 
2732 static __inline INT MSGDUMP_API
2734 {
2735  MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGE(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2736  MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2737  return 0;
2738 }
2739 
2740 static __inline INT MSGDUMP_API
2742 {
2743  MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2744  MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2745  return 0;
2746 }
2747 
2748 static __inline void MSGDUMP_API
2750 {
2751  MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, lpnMinPos:%p, lpnMaxPos:%p)\n"),
2752  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpnMinPos, (void *)lpnMaxPos);
2753 }
2754 
2755 static __inline BOOL MSGDUMP_API
2757 {
2758  MSGDUMP_TPRINTF(TEXT("%sSBM_ENABLE_ARROWS(hwnd:%p, fuArrowFlags:%u)\n"),
2759  MSGDUMP_PREFIX, (void *)hwnd, fuArrowFlags);
2760  return FALSE;
2761 }
2762 
2763 static __inline INT MSGDUMP_API
2765 {
2766  MSGDUMP_TPRINTF(TEXT("%sSBM_SETSCROLLINFO(hwnd:%p, fRedraw:%d, lpsi:%p)\n"),
2767  MSGDUMP_PREFIX, (void *)hwnd, fRedraw, (void *)lpsi);
2768  return 0;
2769 }
2770 
2771 static __inline BOOL MSGDUMP_API
2773 {
2774  MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLINFO(hwnd:%p, lpsi:%p)\n"),
2775  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsi);
2776  return FALSE;
2777 }
2778 
2779 static __inline BOOL MSGDUMP_API
2781 {
2782  MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLBARINFO(hwnd:%p, lpsbi:%p)\n"),
2783  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsbi);
2784  return FALSE;
2785 }
2786 
2787 static __inline COLORREF MSGDUMP_API
2789 {
2790  MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKCOLOR(hwnd:%p)\n"),
2791  MSGDUMP_PREFIX, (void *)hwnd);
2792  return 0;
2793 }
2794 
2795 static __inline BOOL MSGDUMP_API
2797 {
2798  MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKCOLOR(hwnd:%p, clrBk:0x%08lX)\n"),
2799  MSGDUMP_PREFIX, (void *)hwnd, clrBk);
2800  return FALSE;
2801 }
2802 
2803 static __inline HIMAGELIST MSGDUMP_API
2805 {
2806  MSGDUMP_TPRINTF(TEXT("%sLVM_GETIMAGELIST(hwnd:%p, iImageList:%d)\n"),
2807  MSGDUMP_PREFIX, (void *)hwnd, iImageList);
2808  return NULL;
2809 }
2810 
2811 static __inline HIMAGELIST MSGDUMP_API
2813 {
2814  MSGDUMP_TPRINTF(TEXT("%sLVM_SETIMAGELIST(hwnd:%p, iImageList:%d, himl:%p)\n"),
2815  MSGDUMP_PREFIX, (void *)hwnd, iImageList, (void *)himl);
2816  return NULL;
2817 }
2818 
2819 static __inline INT MSGDUMP_API
2821 {
2822  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMCOUNT(hwnd:%p)\n"),
2823  MSGDUMP_PREFIX, (void *)hwnd);
2824  return 0;
2825 }
2826 
2827 static __inline BOOL MSGDUMP_API
2829 {
2830  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMA(hwnd:%p, pitem:%p)\n"),
2831  MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2832  return FALSE;
2833 }
2834 
2835 static __inline BOOL MSGDUMP_API
2837 {
2838  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMA(hwnd:%p, pitem:%p)\n"),
2839  MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2840  return FALSE;
2841 }
2842 
2843 static __inline INT MSGDUMP_API
2845 {
2846  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTITEMA(hwnd:%p, pitem:%p)\n"),
2847  MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2848  return 0;
2849 }
2850 
2851 static __inline BOOL MSGDUMP_API
2853 {
2854  MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEITEM(hwnd:%p, i:%d)\n"),
2855  MSGDUMP_PREFIX, (void *)hwnd, i);
2856  return FALSE;
2857 }
2858 
2859 static __inline BOOL MSGDUMP_API
2861 {
2862  MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEALLITEMS(hwnd:%p)\n"),
2863  MSGDUMP_PREFIX, (void *)hwnd);
2864  return FALSE;
2865 }
2866 
2867 static __inline BOOL MSGDUMP_API
2869 {
2870  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCALLBACKMASK(hwnd:%p)\n"),
2871  MSGDUMP_PREFIX, (void *)hwnd);
2872  return FALSE;
2873 }
2874 
2875 static __inline BOOL MSGDUMP_API
2877 {
2878  MSGDUMP_TPRINTF(TEXT("%sLVM_SETCALLBACKMASK(hwnd:%p, mask:%u)\n"),
2879  MSGDUMP_PREFIX, (void *)hwnd, mask);
2880  return FALSE;
2881 }
2882 
2883 static __inline INT MSGDUMP_API
2885 {
2886  MSGDUMP_TPRINTF(TEXT("%sLVM_GETNEXTITEM(hwnd:%p, i:%d, flags:%u)\n"),
2887  MSGDUMP_PREFIX, (void *)hwnd, i, flags);
2888  return 0;
2889 }
2890 
2891 static __inline INT MSGDUMP_API
2893 {
2894  MSGDUMP_TPRINTF(TEXT("%sLVM_FINDITEMA(hwnd:%p, iStart:%d, plvfi:%p)\n"),
2895  MSGDUMP_PREFIX, (void *)hwnd, iStart, (void *)plvfi);
2896  return 0;
2897 }
2898 
2899 static __inline BOOL MSGDUMP_API
2901 {
2902  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMRECT(hwnd:%p, i:%d, prc:%p)\n"),
2903  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)prc);
2904  return FALSE;
2905 }
2906 
2907 static __inline BOOL MSGDUMP_API
2909 {
2910  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMPOSITION(hwnd:%p, i:%d, x:%d, y:%d)\n"),
2911  MSGDUMP_PREFIX, (void *)hwnd, i, x, y);
2912  return FALSE;
2913 }
2914 
2915 static __inline BOOL MSGDUMP_API
2917 {
2918  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMPOSITION(hwnd:%p, i:%d, ppt:%p)\n"),
2919  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)ppt);
2920  return FALSE;
2921 }
2922 
2923 static __inline INT MSGDUMP_API
2925 {
2926  MSGDUMP_TPRINTF(TEXT("%sLVM_GETSTRINGWIDTHA(hwnd:%p, psz:%p)\n"),
2927  MSGDUMP_PREFIX, (void *)hwnd, (void *)psz);
2928  return 0;
2929 }
2930 
2931 static __inline INT MSGDUMP_API
2933 {
2934  MSGDUMP_TPRINTF(TEXT("%sLVM_HITTEST(hwnd:%p, pinfo:%p)\n"),
2935  MSGDUMP_PREFIX, (void *)hwnd, (void *)pinfo);
2936  return 0;
2937 }
2938 
2939 static __inline BOOL MSGDUMP_API
2941 {
2942  MSGDUMP_TPRINTF(TEXT("%sLVM_ENSUREVISIBLE(hwnd:%p, i:%d, fPartialOK:%d)\n"),
2943  MSGDUMP_PREFIX, (void *)hwnd, i, fPartialOK);
2944  return FALSE;
2945 }
2946 
2947 static __inline BOOL MSGDUMP_API
2949 {
2950  MSGDUMP_TPRINTF(TEXT("%sLVM_SCROLL(hwnd:%p, dx:%d, dy:%d)\n"),
2951  MSGDUMP_PREFIX, (void *)hwnd, dx, dy);
2952  return FALSE;
2953 }
2954 
2955 static __inline BOOL MSGDUMP_API
2957 {
2958  MSGDUMP_TPRINTF(TEXT("%sLVM_REDRAWITEMS(hwnd:%p, iFirst:%d, iLast:%d)\n"),
2959  MSGDUMP_PREFIX, (void *)hwnd, iFirst, iLast);
2960  return FALSE;
2961 }
2962 
2963 static __inline BOOL MSGDUMP_API
2965 {
2966  MSGDUMP_TPRINTF(TEXT("%sLVM_ARRANGE(hwnd:%p, code:%u)\n"),
2967  MSGDUMP_PREFIX, (void *)hwnd, code);
2968  return FALSE;
2969 }
2970 
2971 static __inline HWND MSGDUMP_API
2973 {
2974  MSGDUMP_TPRINTF(TEXT("%sLVM_EDITLABELA(hwnd:%p, i:%d)\n"),
2975  MSGDUMP_PREFIX, (void *)hwnd, i);
2976  return NULL;
2977 }
2978 
2979 static __inline HWND MSGDUMP_API
2981 {
2982  MSGDUMP_TPRINTF(TEXT("%sLVM_GETEDITCONTROL(hwnd:%p)\n"),
2983  MSGDUMP_PREFIX, (void *)hwnd);
2984  return NULL;
2985 }
2986 
2987 static __inline BOOL MSGDUMP_API
2989 {
2990  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
2991  MSGDUMP_PREFIX, (void *)hwnd, iCol, (void *)pcol);
2992  return FALSE;
2993 }
2994 
2995 static __inline BOOL MSGDUMP_API
2997 {
2998  MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
2999  MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3000  return FALSE;
3001 }
3002 
3003 static __inline INT MSGDUMP_API
3005 {
3006  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
3007  MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3008  return 0;
3009 }
3010 
3011 static __inline BOOL MSGDUMP_API
3013 {
3014  MSGDUMP_TPRINTF(TEXT("%sLVM_DELETECOLUMN(hwnd:%p, iCol:%d)\n"),
3015  MSGDUMP_PREFIX, (void *)hwnd, iCol);
3016  return FALSE;
3017 }
3018 
3019 static __inline INT MSGDUMP_API
3021 {
3022  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNWIDTH(hwnd:%p, iCol:%d)\n"),
3023  MSGDUMP_PREFIX, (void *)hwnd, iCol);
3024  return 0;
3025 }
3026 
3027 static __inline BOOL MSGDUMP_API
3029 {
3030  MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNWIDTH(hwnd:%p, iCol:%d, cx:%d)\n"),
3031  MSGDUMP_PREFIX, (void *)hwnd, iCol, cx);
3032  return FALSE;
3033 }
3034 
3035 static __inline HWND MSGDUMP_API
3037 {
3038  MSGDUMP_TPRINTF(TEXT("%sLVM_GETHEADER(hwnd:%p)\n"),
3039  MSGDUMP_PREFIX, (void *)hwnd);
3040  return NULL;
3041 }
3042 
3043 static __inline HIMAGELIST MSGDUMP_API
3045 {
3046  MSGDUMP_TPRINTF(TEXT("%sLVM_CREATEDRAGIMAGE(hwnd:%p, i:%d, lpptUpLeft:%p)\n"),
3047  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lpptUpLeft);
3048  return NULL;
3049 }
3050 
3051 static __inline BOOL MSGDUMP_API
3053 {
3054  MSGDUMP_TPRINTF(TEXT("%sLVM_GETVIEWRECT(hwnd:%p, prc:%p)\n"),
3055  MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
3056  return FALSE;
3057 }
3058 
3059 static __inline COLORREF MSGDUMP_API
3061 {
3062  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTEXTCOLOR(hwnd:%p)\n"),
3063  MSGDUMP_PREFIX, (void *)hwnd);
3064  return 0;
3065 }
3066 
3067 static __inline BOOL MSGDUMP_API
3069 {
3070  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTEXTCOLOR(hwnd:%p, clrText:0x%08lX)\n"),
3071  MSGDUMP_PREFIX, (void *)hwnd, clrText);
3072  return FALSE;
3073 }
3074 
3075 static __inline COLORREF MSGDUMP_API
3077 {
3078  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTEXTBKCOLOR(hwnd:%p)\n"),
3079  MSGDUMP_PREFIX, (void *)hwnd);
3080  return 0;
3081 }
3082 
3083 static __inline BOOL MSGDUMP_API
3085 {
3086  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTEXTBKCOLOR(hwnd:%p, clrTextBk:0x%08lX)\n"),
3087  MSGDUMP_PREFIX, (void *)hwnd, clrTextBk);
3088  return FALSE;
3089 }
3090 
3091 static __inline INT MSGDUMP_API
3093 {
3094  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTOPINDEX(hwnd:%p)\n"),
3095  MSGDUMP_PREFIX, (void *)hwnd);
3096  return 0;
3097 }
3098 
3099 static __inline INT MSGDUMP_API
3101 {
3102  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOUNTPERPAGE(hwnd:%p)\n"),
3103  MSGDUMP_PREFIX, (void *)hwnd);
3104  return 0;
3105 }
3106 
3107 static __inline BOOL MSGDUMP_API
3109 {
3110  MSGDUMP_TPRINTF(TEXT("%sLVM_GETORIGIN(hwnd:%p, ppt:%p)\n"),
3111  MSGDUMP_PREFIX, (void *)hwnd, (void *)ppt);
3112  return FALSE;
3113 }
3114 
3115 static __inline BOOL MSGDUMP_API
3117 {
3118  MSGDUMP_TPRINTF(TEXT("%sLVM_UPDATE(hwnd:%p, i:%d)\n"),
3119  MSGDUMP_PREFIX, (void *)hwnd, i);
3120  return FALSE;
3121 }
3122 
3123 static __inline BOOL MSGDUMP_API
3125 {
3126  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMSTATE(hwnd:%p, i:%d, lvi:%p)\n"),
3127  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lvi);
3128  return FALSE;
3129 }
3130 
3131 static __inline UINT MSGDUMP_API
3133 {
3134  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMSTATE(hwnd:%p, i:%d, mask:%u)\n"),
3135  MSGDUMP_PREFIX, (void *)hwnd, i, mask);
3136  return 0;
3137 }
3138 
3139 static __inline INT MSGDUMP_API
3141 {
3142  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMTEXTA(hwnd:%p, i:%d, lvi:%p)\n"),
3143  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lvi);
3144  return 0;
3145 }
3146 
3147 static __inline BOOL MSGDUMP_API
3149 {
3150  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMTEXTA(hwnd:%p, i:%d, lvi:%p)\n"),
3151  MSGDUMP_PREFIX, (void *)hwnd, i, (const void *)lvi);
3152  return FALSE;
3153 }
3154 
3155 static __inline void MSGDUMP_API
3157 {
3158  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMCOUNT(hwnd:%p, cItems:%d)\n"),
3159  MSGDUMP_PREFIX, (void *)hwnd, cItems);
3160 }
3161 
3162 static __inline BOOL MSGDUMP_API
3164 {
3165  MSGDUMP_TPRINTF(TEXT("%sLVM_SORTITEMS(hwnd:%p, lPrm:%p, pfnCompare:%p)\n"),
3166  MSGDUMP_PREFIX, (void *)hwnd, (void *)lPrm, *(void **)&pfnCompare);
3167  return FALSE;
3168 }
3169 
3170 static __inline void MSGDUMP_API
3172 {
3173  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMPOSITION32(hwnd:%p, i:%d, ppt:%p)\n"),
3174  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)ppt);
3175 }
3176 
3177 static __inline UINT MSGDUMP_API
3179 {
3180  MSGDUMP_TPRINTF(TEXT("%sLVM_GETSELECTEDCOUNT(hwnd:%p)\n"),
3181  MSGDUMP_PREFIX, (void *)hwnd);
3182  return 0;
3183 }
3184 
3185 static __inline DWORD MSGDUMP_API
3187 {
3188  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMSPACING(hwnd:%p, fSmall:%d)\n"),
3189  MSGDUMP_PREFIX, (void *)hwnd, fSmall);
3190  return 0;
3191 }
3192 
3193 static __inline BOOL MSGDUMP_API
3195 {
3196  MSGDUMP_TPRINTF(TEXT("%sLVM_GETISEARCHSTRINGA(hwnd:%p, lpsz:%p)\n"),
3197  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsz);
3198  return FALSE;
3199 }
3200 
3201 static __inline DWORD MSGDUMP_API
3203 {
3204  MSGDUMP_TPRINTF(TEXT("%sLVM_SETICONSPACING(hwnd:%p, cx:%d, cy:%d)\n"),
3205  MSGDUMP_PREFIX, (void *)hwnd, cx, cy);
3206  return 0;
3207 }
3208 
3209 static __inline DWORD MSGDUMP_API
3211 {
3212  MSGDUMP_TPRINTF(TEXT("%sLVM_SETEXTENDEDLISTVIEWSTYLE(hwnd:%p, dwMask:0x%08lX, dw:0x%08lX)\n"),
3213  MSGDUMP_PREFIX, (void *)hwnd, dwMask, dw);
3214  return 0;
3215 }
3216 
3217 static __inline DWORD MSGDUMP_API
3219 {
3220  MSGDUMP_TPRINTF(TEXT("%sLVM_GETEXTENDEDLISTVIEWSTYLE(hwnd:%p)\n"),
3221  MSGDUMP_PREFIX, (void *)hwnd);
3222  return 0;
3223 }
3224 
3225 static __inline BOOL MSGDUMP_API
3227 {
3228  MSGDUMP_TPRINTF(TEXT("%sLVM_GETSUBITEMRECT(hwnd:%p, iItem:%d, prc:%p)\n"),
3229  MSGDUMP_PREFIX, (void *)hwnd, iItem, (void *)prc);
3230  return FALSE;
3231 }
3232 
3233 static __inline INT MSGDUMP_API
3235 {
3236  MSGDUMP_TPRINTF(TEXT("%sLVM_SUBITEMHITTEST(hwnd:%p, wParam:%p, plvhti:%p)\n"),
3237  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)plvhti);
3238  return 0;
3239 }
3240 
3241 static __inline BOOL MSGDUMP_API
3243 {
3244  MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNORDERARRAY(hwnd:%p, iCount:%d, pi:%p)\n"),
3245  MSGDUMP_PREFIX, (void *)hwnd, iCount, (void *)pi);
3246  return FALSE;
3247 }
3248 
3249 static __inline BOOL MSGDUMP_API
3251 {
3252  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNORDERARRAY(hwnd:%p, iCount:%d, pi:%p)\n"),
3253  MSGDUMP_PREFIX, (void *)hwnd, iCount, (void *)pi);
3254  return FALSE;
3255 }
3256 
3257 static __inline INT MSGDUMP_API
3259 {
3260  MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOTITEM(hwnd:%p, i:%d)\n"),
3261  MSGDUMP_PREFIX, (void *)hwnd, i);
3262  return 0;
3263 }
3264 
3265 static __inline INT MSGDUMP_API
3267 {
3268  MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOTITEM(hwnd:%p)\n"),
3269  MSGDUMP_PREFIX, (void *)hwnd);
3270  return 0;
3271 }
3272 
3273 static __inline HCURSOR MSGDUMP_API
3275 {
3276  MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOTCURSOR(hwnd:%p, hcur:%p)\n"),
3277  MSGDUMP_PREFIX, (void *)hwnd, (void *)hcur);
3278  return NULL;
3279 }
3280 
3281 static __inline HCURSOR MSGDUMP_API
3283 {
3284  MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOTCURSOR(hwnd:%p)\n"),
3285  MSGDUMP_PREFIX, (void *)hwnd);
3286  return NULL;
3287 }
3288 
3289 static __inline DWORD MSGDUMP_API
3291 {
3292  MSGDUMP_TPRINTF(TEXT("%sLVM_APPROXIMATEVIEWRECT(hwnd:%p, iWidth:%d, iHeight:%d, iCount:%d)\n"),
3293  MSGDUMP_PREFIX, (void *)hwnd, iWidth, iHeight, iCount);
3294  return 0;
3295 }
3296 
3297 static __inline BOOL MSGDUMP_API
3299 {
3300  MSGDUMP_TPRINTF(TEXT("%sLVM_SETWORKAREAS(hwnd:%p, nWorkAreas:%d, prc:%p)\n"),
3301  MSGDUMP_PREFIX, (void *)hwnd, nWorkAreas, (void *)prc);
3302  return FALSE;
3303 }
3304 
3305 static __inline INT MSGDUMP_API
3307 {
3308  MSGDUMP_TPRINTF(TEXT("%sLVM_GETSELECTIONMARK(hwnd:%p)\n"),
3309  MSGDUMP_PREFIX, (void *)hwnd);
3310  return 0;
3311 }
3312 
3313 static __inline INT MSGDUMP_API
3315 {
3316  MSGDUMP_TPRINTF(TEXT("%sLVM_SETSELECTIONMARK(hwnd:%p, i:%d)\n"),
3317  MSGDUMP_PREFIX, (void *)hwnd, i);
3318  return 0;
3319 }
3320 
3321 static __inline BOOL MSGDUMP_API
3323 {
3324  MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKIMAGEA(hwnd:%p, plvbki:%p)\n"),
3325  MSGDUMP_PREFIX, (void *)hwnd, (const void *)plvbki);
3326  return FALSE;
3327 }
3328 
3329 static __inline BOOL MSGDUMP_API
3331 {
3332  MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKIMAGEA(hwnd:%p, plvbki:%p)\n"),
3333  MSGDUMP_PREFIX, (void *)hwnd, (void *)plvbki);
3334  return FALSE;
3335 }
3336 
3337 static __inline BOOL MSGDUMP_API
3339 {
3340  MSGDUMP_TPRINTF(TEXT("%sLVM_GETWORKAREAS(hwnd:%p, nWorkAreas:%d, prc:%p)\n"),
3341  MSGDUMP_PREFIX, (void *)hwnd, nWorkAreas, (void *)prc);
3342  return FALSE;
3343 }
3344 
3345 static __inline DWORD MSGDUMP_API
3347 {
3348  MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOVERTIME(hwnd:%p, dwHoverTimeMs:0x%08lX)\n"),
3349  MSGDUMP_PREFIX, (void *)hwnd, dwHoverTimeMs);
3350  return 0;
3351 }
3352 
3353 static __inline DWORD MSGDUMP_API
3355 {
3356  MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOVERTIME(hwnd:%p)\n"),
3357  MSGDUMP_PREFIX, (void *)hwnd);
3358  return 0;
3359 }
3360 
3361 static __inline BOOL MSGDUMP_API
3363 {
3364  MSGDUMP_TPRINTF(TEXT("%sLVM_GETNUMBEROFWORKAREAS(hwnd:%p, pnWorkAreas:%p)\n"),
3365  MSGDUMP_PREFIX, (void *)hwnd, (void *)pnWorkAreas);
3366  return FALSE;
3367 }
3368 
3369 static __inline HWND MSGDUMP_API
3371 {
3372  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTOOLTIPS(hwnd:%p, hwndNewHwnd:%p)\n"),
3373  MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewHwnd);
3374  return NULL;
3375 }
3376 
3377 static __inline BOOL MSGDUMP_API
3379 {
3380  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMW(hwnd:%p, pitem:%p)\n"),
3381  MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
3382  return FALSE;
3383 }
3384 
3385 static __inline BOOL MSGDUMP_API
3387 {
3388  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMW(hwnd:%p, pitem:%p)\n"),
3389  MSGDUMP_PREFIX, (void *)hwnd, (const void *)pitem);
3390  return FALSE;
3391 }
3392 
3393 static __inline INT MSGDUMP_API
3395 {
3396  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTITEMW(hwnd:%p, pitem:%p)\n"),
3397  MSGDUMP_PREFIX, (void *)hwnd, (const void *)pitem);
3398  return 0;
3399 }
3400 
3401 static __inline HWND MSGDUMP_API
3403 {
3404  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTOOLTIPS(hwnd:%p)\n"),
3405  MSGDUMP_PREFIX, (void *)hwnd);
3406  return NULL;
3407 }
3408 
3409 static __inline BOOL MSGDUMP_API
3411 {
3412  MSGDUMP_TPRINTF(TEXT("%sLVM_SORTITEMSEX(hwnd:%p, pfnCompare:%p, lPrm:%p)\n"),
3413  MSGDUMP_PREFIX, (void *)hwnd, *(void **)&pfnCompare, (void *)lPrm);
3414  return FALSE;
3415 }
3416 
3417 static __inline INT MSGDUMP_API
3419 {
3420  MSGDUMP_TPRINTF(TEXT("%sLVM_FINDITEMW(hwnd:%p, iStart:%d, plvfi:%p)\n"),
3421  MSGDUMP_PREFIX, (void *)hwnd, iStart, (void *)plvfi);
3422  return 0;
3423 }
3424 
3425 static __inline INT MSGDUMP_API
3427 {
3428  MSGDUMP_TPRINTF(TEXT("%sLVM_GETSTRINGWIDTHW(hwnd:%p, psz:%ls)\n"),
3429  MSGDUMP_PREFIX, (void *)hwnd, psz);
3430  return 0;
3431 }
3432 
3433 #if NTDDI_VERSION >= 0x06000000
3434  static __inline UINT MSGDUMP_API
3435  MD_ListView_OnGetGroupState(HWND hwnd, DWORD dwGroupId, DWORD dwMask)
3436  {
3437  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPSTATE(hwnd:%p, dwGroupId:0x%08lX, dwMask:0x%08lX)\n"),
3438  MSGDUMP_PREFIX, (void *)hwnd, dwGroupId, dwMask);
3439  return 0;
3440  }
3441 
3442  static __inline INT MSGDUMP_API
3443  MD_ListView_OnGetFocusedGroup(HWND hwnd)
3444  {
3445  MSGDUMP_TPRINTF(TEXT("%sLVM_GETFOCUSEDGROUP(hwnd:%p)\n"),
3446  MSGDUMP_PREFIX, (void *)hwnd);
3447  return 0;
3448  }
3449 #endif
3450 
3451 static __inline INT MSGDUMP_API
3453 {
3454  MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNW(hwnd:%p, iCol:%d)\n"),
3455  MSGDUMP_PREFIX, (void *)hwnd, iCol);
3456  return 0;
3457 }
3458 
3459 static __inline BOOL MSGDUMP_API
3461 {
3462  MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNW(hwnd:%p, iCol:%d, cx:%d)\n"),
3463  MSGDUMP_PREFIX, (void *)hwnd, iCol, cx);
3464  return 0;
3465 }
3466 
3467 static __inline INT MSGDUMP_API
3469 {
3470  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTCOLUMNW(hwnd:%p, iCol:%d, pcol:%p)\n"),
3471  MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3472  return 0;
3473 }
3474 
3475 #if NTDDI_VERSION >= 0x06000000
3476  static __inline BOOL MSGDUMP_API
3477  MD_ListView_OnGetGroupRect(HWND hwnd, INT iGroupId, RECT *prc)
3478  {
3479  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPRECT(hwnd:%p, iGroupId:%d, prc:%p)\n"),
3480  MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (void *)prc);
3481  return FALSE;
3482  }
3483 #endif
3484 
3485 static __inline INT MSGDUMP_API
3487 {
3488  MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMTEXTW(hwnd:%p, i:%d, pitem:%p)\n"),
3489  MSGDUMP_PREFIX, (void *)hwnd, i, (void *)pitem);
3490  return 0;
3491 }
3492 
3493 static __inline INT MSGDUMP_API
3495 {
3496  MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMTEXTW(hwnd:%p, i:%d, pitem:%p)\n"),
3497  MSGDUMP_PREFIX, (void *)hwnd, i, (const void *)pitem);
3498  return 0;
3499 }
3500 
3501 static __inline BOOL MSGDUMP_API
3503 {
3504  MSGDUMP_TPRINTF(TEXT("%sLVM_GETISEARCHSTRINGW(hwnd:%p, lpsz:%p)\n"),
3505  MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsz);
3506  return FALSE;
3507 }
3508 
3509 static __inline HWND MSGDUMP_API
3511 {
3512  MSGDUMP_TPRINTF(TEXT("%sLVM_EDITLABELW(hwnd:%p, i:%d)\n"),
3513  MSGDUMP_PREFIX, (void *)hwnd, i);
3514  return NULL;
3515 }
3516 
3517 static __inline BOOL MSGDUMP_API
3519 {
3520  MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKIMAGEW(hwnd:%p, plvbki:%p)\n"),
3521  MSGDUMP_PREFIX, (void *)hwnd, (const void *)plvbki);
3522  return FALSE;
3523 }
3524 
3525 static __inline BOOL MSGDUMP_API
3527 {
3528  MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKIMAGEW(hwnd:%p, plvbki:%p)\n"),
3529  MSGDUMP_PREFIX, (void *)hwnd, (void *)plvbki);
3530  return FALSE;
3531 }
3532 
3533 static __inline void MSGDUMP_API
3535 {
3536  MSGDUMP_TPRINTF(TEXT("%sLVM_SETSELECTEDCOLUMN(hwnd:%p, iCol:%d)\n"),
3537  MSGDUMP_PREFIX, (void *)hwnd, iCol);
3538 }
3539 
3540 #ifndef LVM_SETTILEWIDTH
3541  #define LVM_SETTILEWIDTH (LVM_FIRST+141)
3542 #endif
3543 
3544 static __inline LRESULT MSGDUMP_API
3546 {
3547  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEWIDTH(hwnd:%p, wParam:%p, lParam:%p)\n"),
3548  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
3549  return 0;
3550 }
3551 
3552 static __inline DWORD MSGDUMP_API
3554 {
3555  MSGDUMP_TPRINTF(TEXT("%sLVM_SETVIEW(hwnd:%p, iView:0x%08lX)\n"),
3556  MSGDUMP_PREFIX, (void *)hwnd, iView);
3557  return 0;
3558 }
3559 
3560 static __inline DWORD MSGDUMP_API
3562 {
3563  MSGDUMP_TPRINTF(TEXT("%sLVM_GETVIEW(hwnd:%p)\n"),
3564  MSGDUMP_PREFIX, (void *)hwnd);
3565  return 0;
3566 }
3567 
3568 #if NTDDI_VERSION >= 0x06000000
3569  static __inline INT MSGDUMP_API
3570  MD_ListView_OnInsertGroup(HWND hwnd, INT iGroupId, const LVGROUP *pGroup)
3571  {
3572  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTGROUP(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3573  MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (const void *)pGroup);
3574  return 0;
3575  }
3576 
3577  static __inline INT MSGDUMP_API
3578  MD_ListView_OnSetGroupInfo(HWND hwnd, INT iGroupId, const LVGROUP *pGroup)
3579  {
3580  MSGDUMP_TPRINTF(TEXT("%sLVM_SETGROUPINFO(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3581  MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (const void *)pGroup);
3582  return 0;
3583  }
3584 
3585  static __inline INT MSGDUMP_API
3586  MD_ListView_OnGetGroupInfo(HWND hwnd, INT iGroupId, LVGROUP *pGroup)
3587  {
3588  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPINFO(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3589  MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (void *)pGroup);
3590  return 0;
3591  }
3592 
3593  static __inline INT MSGDUMP_API
3594  MD_ListView_OnRemoveGroup(HWND hwnd, INT iGroupId)
3595  {
3596  MSGDUMP_TPRINTF(TEXT("%sLVM_REMOVEGROUP(hwnd:%p, iGroupId:%d)\n"),
3597  MSGDUMP_PREFIX, (void *)hwnd, iGroupId);
3598  return 0;
3599  }
3600 
3601  static __inline LRESULT MSGDUMP_API
3602  MD_ListView_OnMoveGroup(HWND hwnd, WPARAM wParam, LPARAM lParam)
3603  {
3604  MSGDUMP_TPRINTF(TEXT("%sLVM_MOVEGROUP(hwnd:%p, wParam:%p, lParam:%p)\n"),
3605  MSGDUMP_PREFIX, (void *)hwnd, wParam, lParam);
3606  return 0;
3607  }
3608 
3609  static __inline INT MSGDUMP_API
3610  MD_ListView_OnGetGroupCount(HWND hwnd)
3611  {
3612  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPCOUNT(hwnd:%p)\n"),
3613  MSGDUMP_PREFIX, (void *)hwnd);
3614  return 0;
3615  }
3616 
3617  static __inline BOOL MSGDUMP_API
3618  MD_ListView_OnGetGroupInfoByIndex(HWND hwnd, INT iIndex, LVGROUP *pgrp)
3619  {
3620  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPINFOBYINDEX(hwnd:%p, iIndex:%d, pgrp:%p)\n"),
3621  MSGDUMP_PREFIX, (void *)hwnd, iIndex, (void *)pgrp);
3622  return FALSE;
3623  }
3624 
3625  static __inline LRESULT MSGDUMP_API
3626  MD_ListView_OnMoveItemToGroup(HWND hwnd, WPARAM wParam, LPARAM lParam)
3627  {
3628  MSGDUMP_TPRINTF(TEXT("%sLVM_MOVEITEMTOGROUP(hwnd:%p, wParam:%p, lParam:%p)\n"),
3629  MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
3630  return 0;
3631  }
3632 
3633  static __inline void MSGDUMP_API
3634  MD_ListView_OnSetGroupMetrics(HWND hwnd, const LVGROUPMETRICS *pGroupMetrics)
3635  {
3636  MSGDUMP_TPRINTF(TEXT("%sLVM_SETGROUPMETRICS(hwnd:%p, pGroupMetrics:%p)\n"),
3637  MSGDUMP_PREFIX, (void *)hwnd, (const void *)pGroupMetrics);
3638  }
3639 
3640  static __inline void MSGDUMP_API
3641  MD_ListView_OnGetGroupMetrics(HWND hwnd, LVGROUPMETRICS *pGroupMetrics)
3642  {
3643  MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPMETRICS(hwnd:%p, pGroupMetrics:%p)\n"),
3644  MSGDUMP_PREFIX, (void *)hwnd, (void *)pGroupMetrics);
3645  }
3646 
3647  static __inline INT MSGDUMP_API
3648  MD_ListView_OnEnableGroupView(HWND hwnd, BOOL fEnable)
3649  {
3650  MSGDUMP_TPRINTF(TEXT("%sLVM_ENABLEGROUPVIEW(hwnd:%p, fEnable:%d)\n"),
3651  MSGDUMP_PREFIX, (void *)hwnd, fEnable);
3652  return 0;
3653  }
3654 
3655  static __inline BOOL MSGDUMP_API
3656  MD_ListView_OnSortGroups(HWND hwnd, PFNLVGROUPCOMPARE pfnGroupCompate, void *plv)
3657  {
3658  MSGDUMP_TPRINTF(TEXT("%sLVM_SORTGROUPS(hwnd:%p, pfnGroupCompate:%p, plv:%p)\n"),
3659  MSGDUMP_PREFIX, (void *)hwnd, *(void **)&pfnGroupCompate, plv);
3660  return FALSE;
3661  }
3662 
3663  static __inline void MSGDUMP_API
3664  MD_ListView_OnInsertGroupSorted(HWND hwnd, const LVINSERTGROUPSORTED *structInsert)
3665  {
3666  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTGROUPSORTED(hwnd:%p, structInsert:%p)\n"),
3667  MSGDUMP_PREFIX, (void *)hwnd, (void *)structInsert);
3668  }
3669 
3670  static __inline void MSGDUMP_API
3671  MD_ListView_OnRemoveAllGroups(HWND hwnd)
3672  {
3673  MSGDUMP_TPRINTF(TEXT("%sLVM_REMOVEALLGROUPS(hwnd:%p)\n"),
3674  MSGDUMP_PREFIX, (void *)hwnd);
3675  }
3676 
3677  static __inline BOOL MSGDUMP_API
3678  MD_ListView_OnHasGroup(HWND hwnd, DWORD dwGroupId)
3679  {
3680  MSGDUMP_TPRINTF(TEXT("%sLVM_HASGROUP(hwnd:%p, dwGroupId:0x%08lX)\n"),
3681  MSGDUMP_PREFIX, (void *)hwnd, dwGroupId);
3682  return FALSE;
3683  }
3684 #endif
3685 
3686 static __inline BOOL MSGDUMP_API
3688 {
3689  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEVIEWINFO(hwnd:%p, ptvi:%p)\n"),
3690  MSGDUMP_PREFIX, (void *)hwnd, (const void *)ptvi);
3691  return FALSE;
3692 }
3693 
3694 static __inline void MSGDUMP_API
3696 {
3697  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTILEVIEWINFO(hwnd:%p, ptvi:%p)\n"),
3698  MSGDUMP_PREFIX, (void *)hwnd, (void *)ptvi);
3699 }
3700 
3701 static __inline BOOL MSGDUMP_API
3703 {
3704  MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEINFO(hwnd:%p, pti:%p)\n"),
3705  MSGDUMP_PREFIX, (void *)hwnd, (const void *)pti);
3706  return FALSE;
3707 }
3708 
3709 static __inline void MSGDUMP_API
3711 {
3712  MSGDUMP_TPRINTF(TEXT("%sLVM_GETTILEINFO(hwnd:%p, pti:%p)\n"),
3713  MSGDUMP_PREFIX, (void *)hwnd, (void *)pti);
3714 }
3715 
3716 static __inline BOOL MSGDUMP_API
3718 {
3719  MSGDUMP_TPRINTF(TEXT("%sLVM_SETINSERTMARK(hwnd:%p, lvim:%p)\n"),
3720  MSGDUMP_PREFIX, (void *)hwnd, (const void *)lvim);
3721  return FALSE;
3722 }
3723 
3724 static __inline BOOL MSGDUMP_API
3726 {
3727  MSGDUMP_TPRINTF(TEXT("%sLVM_GETINSERTMARK(hwnd:%p, lvim:%p)\n"),
3728  MSGDUMP_PREFIX, (void *)hwnd, (void *)lvim);
3729  return FALSE;
3730 }
3731 
3732 static __inline INT MSGDUMP_API
3734 {
3735  MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTMARKHITTEST(hwnd:%p, point:%p, lvim:%p)\n"),
3736  MSGDUMP_PREFIX, (void *)hwnd, (void *)point, (void *)lvim);
3737  return 0;
3738 }
3739 
3740 static __inline INT MSGDUMP_API
3742 {
3743  MSGDUMP_TPRINTF(TEXT("%sLVM_GETINSERTMARKRECT(hwnd:%p, rc:%p)\n"),
3744  MSGDUMP_PREFIX, (void *)hwnd, (void *)rc);
3745  return 0;
3746 }
3747 
3748 static __inline COLORREF MSGDUMP_API
3750 {
3751  MSGDUMP_TPRINTF(TEXT("%sLVM_SETINSERTMARKCOLOR(hwnd:%p, color:0x%08lX)\n"),
3752  MSGDUMP_PREFIX, (void *)hwnd, color);
3753  return 0;
3754 }
3755 
3756 static __inline COLORREF MSGDUMP_API
3758 {
3759  MSGDUMP_TPRINTF(TEXT("%sLVM_GETINSERTMARKCOLOR(hwnd:%p)\n"),
3760  MSGDUMP_PREFIX, (void *)hwnd);
3761  return 0;
3762 }
3763 
3764 static __inline BOOL MSGDUMP_API
3766 {
3767  MSGDUMP_TPRINTF(TEXT("%sLVM_SETINFOTIP(hwnd:%p, plvInfoTip:%p)\n"),
3768  MSGDUMP_PREFIX, (void *)hwnd, (