2284437fc2cb6b471272833d946b77d87fcc86b2
[reactos.git] / sdk / include / reactos / msgdump.h
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 11 /* Version 11 */
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
39 MD_msgdump(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
40
41 /* MD_msgresult function */
42 static __inline LRESULT MSGDUMP_API
43 MD_msgresult(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT lResult);
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
65 MD_OnUnknown(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
66 {
67 TCHAR szName[64];
68 if (0xC000 <= uMsg && uMsg <= 0xFFFF &&
69 GlobalGetAtomName(uMsg, szName, ARRAYSIZE(szName)))
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
84 MD_OnUser(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
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
92 MD_OnApp(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
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
100 MD_OnNull(HWND hwnd)
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
108 MD_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
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
116 MD_OnDestroy(HWND hwnd)
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
130 MD_OnSize(HWND hwnd, UINT state, int cx, int cy)
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
158 MD_OnEnable(HWND hwnd, BOOL fEnable)
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
165 MD_OnSetRedraw(HWND hwnd, BOOL fRedraw)
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
172 MD_OnSetText(HWND hwnd, LPCTSTR lpszText)
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
191 MD_OnGetTextLength(HWND hwnd)
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
199 MD_OnPaint(HWND hwnd)
200 {
201 MSGDUMP_TPRINTF(TEXT("%sWM_PAINT(hwnd:%p)\n"),
202 MSGDUMP_PREFIX, (void *)hwnd);
203 }
204
205 static __inline void MSGDUMP_API
206 MD_OnClose(HWND hwnd)
207 {
208 MSGDUMP_TPRINTF(TEXT("%sWM_CLOSE(hwnd:%p)\n"),
209 MSGDUMP_PREFIX, (void *)hwnd);
210 }
211
212 static __inline BOOL MSGDUMP_API
213 MD_OnQueryEndSession(HWND hwnd)
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
221 MD_OnQueryOpen(HWND hwnd)
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
229 MD_OnEndSession(HWND hwnd, BOOL fEnding)
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
243 MD_OnEraseBkgnd(HWND hwnd, HDC hdc)
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
251 MD_OnSysColorChange(HWND hwnd)
252 {
253 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOLORCHANGE(hwnd:%p)\n"),
254 MSGDUMP_PREFIX, (void *)hwnd);
255 }
256
257 static __inline void MSGDUMP_API
258 MD_OnShowWindow(HWND hwnd, BOOL fShow, UINT status)
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 void MSGDUMP_API
265 MD_OnWinIniChange(HWND hwnd, LPCTSTR lpszSectionName)
266 {
267 if (IsWindowUnicode(hwnd))
268 MSGDUMP_TPRINTF(TEXT("%sWM_WININICHANGE(hwnd:%p, lpszSectionName:%ls)\n"),
269 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszSectionName);
270 else
271 MSGDUMP_TPRINTF(TEXT("%sWM_WININICHANGE(hwnd:%p, lpszSectionName:%hs)\n"),
272 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszSectionName);
273 }
274
275 static __inline void MSGDUMP_API
276 MD_OnSettingChange(HWND hwnd, WPARAM wParam, LPARAM lParam)
277 {
278 MSGDUMP_TPRINTF(TEXT("%sWM_SETTINGCHANGE(hwnd:%p)\n"),
279 MSGDUMP_PREFIX, (void *)hwnd);
280 }
281
282 static __inline void MSGDUMP_API
283 MD_OnDevModeChange(HWND hwnd, LPCTSTR lpszDeviceName)
284 {
285 if (IsWindowUnicode(hwnd))
286 MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%ls)\n"),
287 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszDeviceName);
288 else
289 MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%hs)\n"),
290 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszDeviceName);
291 }
292
293 static __inline void MSGDUMP_API
294 MD_OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId)
295 {
296 MSGDUMP_TPRINTF(TEXT("%sWM_ACTIVATEAPP(hwnd:%p, fActivate:%d, dwThreadId:0x%08lX)\n"),
297 MSGDUMP_PREFIX, (void *)hwnd, fActivate, dwThreadId);
298 }
299
300 static __inline void MSGDUMP_API
301 MD_OnFontChange(HWND hwnd)
302 {
303 MSGDUMP_TPRINTF(TEXT("%sWM_FONTCHANGE(hwnd:%p)\n"),
304 MSGDUMP_PREFIX, (void *)hwnd);
305 }
306
307 static __inline void MSGDUMP_API
308 MD_OnTimeChange(HWND hwnd)
309 {
310 MSGDUMP_TPRINTF(TEXT("%sWM_TIMECHANGE(hwnd:%p)\n"),
311 MSGDUMP_PREFIX, (void *)hwnd);
312 }
313
314 static __inline void MSGDUMP_API
315 MD_OnCancelMode(HWND hwnd)
316 {
317 MSGDUMP_TPRINTF(TEXT("%sWM_CANCELMODE(hwnd:%p)\n"),
318 MSGDUMP_PREFIX, (void *)hwnd);
319 }
320
321 static __inline BOOL MSGDUMP_API
322 MD_OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg)
323 {
324 MSGDUMP_TPRINTF(TEXT("%sWM_SETCURSOR(hwnd:%p, hwndCursor:%p, codeHitTest:%u, msg:%u)\n"),
325 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCursor, codeHitTest, msg);
326 return FALSE;
327 }
328
329 static __inline int MSGDUMP_API
330 MD_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg)
331 {
332 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEACTIVATE(hwnd:%p, hwndTopLevel:%p, codeHitTest:%u, msg:%u)\n"),
333 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTopLevel, codeHitTest, msg);
334 return 0;
335 }
336
337 static __inline void MSGDUMP_API
338 MD_OnChildActivate(HWND hwnd)
339 {
340 MSGDUMP_TPRINTF(TEXT("%sWM_CHILDACTIVATE(hwnd:%p)\n"),
341 MSGDUMP_PREFIX, (void *)hwnd);
342 }
343
344 static __inline void MSGDUMP_API
345 MD_OnQueueSync(HWND hwnd)
346 {
347 MSGDUMP_TPRINTF(TEXT("%sWM_QUEUESYNC(hwnd:%p)\n"),
348 MSGDUMP_PREFIX, (void *)hwnd);
349 }
350
351 static __inline void MSGDUMP_API
352 MD_OnGetMinMaxInfo(HWND hwnd, LPMINMAXINFO lpMinMaxInfo)
353 {
354 MSGDUMP_TPRINTF(TEXT("%sWM_GETMINMAXINFO(hwnd:%p, lpMinMaxInfo:%p)\n"),
355 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMinMaxInfo);
356 }
357
358 static __inline BOOL MSGDUMP_API
359 MD_OnIconEraseBkgnd(HWND hwnd, HDC hdc)
360 {
361 MSGDUMP_TPRINTF(TEXT("%sWM_ICONERASEBKGND(hwnd:%p, hdc:%p)\n"),
362 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc);
363 return FALSE;
364 }
365
366 static __inline HWND MSGDUMP_API
367 MD_OnNextDlgCtl(HWND hwnd, HWND hwndSetFocus, BOOL fNext)
368 {
369 MSGDUMP_TPRINTF(TEXT("%sWM_NEXTDLGCTL(hwnd:%p, hwndSetFocus:%p, fNext:%d)\n"),
370 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndSetFocus, fNext);
371 return NULL;
372 }
373
374 static __inline void MSGDUMP_API
375 MD_OnSpoolerStatus(HWND hwnd, UINT status, int cJobInQueue)
376 {
377 MSGDUMP_TPRINTF(TEXT("%sWM_SPOOLERSTATUS(hwnd:%p, status:%u, cJobInQueue:%d)\n"),
378 MSGDUMP_PREFIX, (void *)hwnd, status, cJobInQueue);
379 }
380
381 static __inline void MSGDUMP_API
382 MD_OnDrawItem(HWND hwnd, const DRAWITEMSTRUCT * lpDrawItem)
383 {
384 MSGDUMP_TPRINTF(TEXT("%sWM_DRAWITEM(hwnd:%p, lpDrawItem:%p)\n"),
385 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDrawItem);
386 }
387
388 static __inline void MSGDUMP_API
389 MD_OnMeasureItem(HWND hwnd, MEASUREITEMSTRUCT * lpMeasureItem)
390 {
391 MSGDUMP_TPRINTF(TEXT("%sWM_MEASUREITEM(hwnd:%p, lpMeasureItem:%p)\n"),
392 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMeasureItem);
393 }
394
395 static __inline void MSGDUMP_API
396 MD_OnDeleteItem(HWND hwnd, const DELETEITEMSTRUCT * lpDeleteItem)
397 {
398 MSGDUMP_TPRINTF(TEXT("%sWM_DELETEITEM(hwnd:%p, lpDeleteItem:%p)\n"),
399 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDeleteItem);
400 }
401
402 static __inline int MSGDUMP_API
403 MD_OnVkeyToItem(HWND hwnd, UINT vk, HWND hwndListbox, int iCaret)
404 {
405 MSGDUMP_TPRINTF(TEXT("%sWM_VKEYTOITEM(hwnd:%p, vk:%u, hwndListbox:%p, iCaret:%d)\n"),
406 MSGDUMP_PREFIX, (void *)hwnd, vk, (void *)hwndListbox, iCaret);
407 return 0;
408 }
409
410 static __inline int MSGDUMP_API
411 MD_OnCharToItem(HWND hwnd, UINT ch, HWND hwndListbox, int iCaret)
412 {
413 MSGDUMP_TPRINTF(TEXT("%sWM_CHARTOITEM(hwnd:%p, ch:%u, hwndListbox:%p, iCaret:%d)\n"),
414 MSGDUMP_PREFIX, (void *)hwnd, ch, (void *)hwndListbox, iCaret);
415 return 0;
416 }
417
418 static __inline void MSGDUMP_API
419 MD_OnSetFont(HWND hwnd, HFONT hfont, BOOL fRedraw)
420 {
421 MSGDUMP_TPRINTF(TEXT("%sWM_SETFONT(hwnd:%p, hfont:%p, fRedraw:%d)\n"),
422 MSGDUMP_PREFIX, (void *)hwnd, (void *)hfont, fRedraw);
423 }
424
425 static __inline HFONT MSGDUMP_API
426 MD_OnGetFont(HWND hwnd)
427 {
428 MSGDUMP_TPRINTF(TEXT("%sWM_GETFONT(hwnd:%p)\n"),
429 MSGDUMP_PREFIX, (void *)hwnd);
430 return NULL;
431 }
432
433 static __inline HICON MSGDUMP_API
434 MD_OnQueryDragIcon(HWND hwnd)
435 {
436 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDRAGICON(hwnd:%p)\n"),
437 MSGDUMP_PREFIX, (void *)hwnd);
438 return NULL;
439 }
440
441 static __inline int MSGDUMP_API
442 MD_OnCompareItem(HWND hwnd, const COMPAREITEMSTRUCT * lpCompareItem)
443 {
444 MSGDUMP_TPRINTF(TEXT("%sWM_COMPAREITEM(hwnd:%p, lpCompareItem:%p)\n"),
445 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCompareItem);
446 return 0;
447 }
448
449 static __inline void MSGDUMP_API
450 MD_OnCompacting(HWND hwnd, UINT compactRatio)
451 {
452 MSGDUMP_TPRINTF(TEXT("%sWM_COMPACTING(hwnd:%p, compactRatio:%u)\n"),
453 MSGDUMP_PREFIX, (void *)hwnd, compactRatio);
454 }
455
456 static __inline void MSGDUMP_API
457 MD_OnCommNotify(HWND hwnd, int cid, UINT flags)
458 {
459 MSGDUMP_TPRINTF(TEXT("%sWM_COMMNOTIFY(hwnd:%p, cid:%d, flags:%u)\n"),
460 MSGDUMP_PREFIX, (void *)hwnd, cid, flags);
461 }
462
463 static __inline BOOL MSGDUMP_API
464 MD_OnWindowPosChanging(HWND hwnd, LPWINDOWPOS lpwpos)
465 {
466 MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGING(hwnd:%p, lpwpos:%p)\n"),
467 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
468 return FALSE;
469 }
470
471 static __inline void MSGDUMP_API
472 MD_OnWindowPosChanged(HWND hwnd, const LPWINDOWPOS lpwpos)
473 {
474 MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGED(hwnd:%p, lpwpos:%p)\n"),
475 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
476 }
477
478 static __inline void MSGDUMP_API
479 MD_OnPower(HWND hwnd, int code)
480 {
481 MSGDUMP_TPRINTF(TEXT("%sWM_POWER(hwnd:%p, code:%d)\n"),
482 MSGDUMP_PREFIX, (void *)hwnd, code);
483 }
484
485 static __inline BOOL MSGDUMP_API
486 MD_OnCopyData(HWND hwnd, HWND hwndFrom, PCOPYDATASTRUCT pcds)
487 {
488 MSGDUMP_TPRINTF(TEXT("%sWM_COPYDATA(hwnd:%p, hwndFrom:%p, pcds:%p)\n"),
489 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFrom, (void *)pcds);
490 return FALSE;
491 }
492
493 static __inline LRESULT MSGDUMP_API
494 MD_OnNotify(HWND hwnd, int idFrom, LPNMHDR pnmhdr)
495 {
496 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFY(hwnd:%p, idFrom:%d, pnmhdr:%p)\n"),
497 MSGDUMP_PREFIX, (void *)hwnd, idFrom, (void *)pnmhdr);
498 return 0;
499 }
500
501 static __inline void MSGDUMP_API
502 MD_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos)
503 {
504 MSGDUMP_TPRINTF(TEXT("%sWM_CONTEXTMENU(hwnd:%p, hwndContext:%p, xPos:%u, yPos:%u)\n"),
505 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndContext, xPos, yPos);
506 }
507
508 static __inline void MSGDUMP_API
509 MD_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen)
510 {
511 MSGDUMP_TPRINTF(TEXT("%sWM_DISPLAYCHANGE(hwnd:%p, bitsPerPixel:%u, cxScreen:%u, cyScreen:%u)\n"),
512 MSGDUMP_PREFIX, (void *)hwnd, bitsPerPixel, cxScreen, cyScreen);
513 }
514
515 static __inline BOOL MSGDUMP_API
516 MD_OnNCCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
517 {
518 MSGDUMP_TPRINTF(TEXT("%sWM_NCCREATE(hwnd:%p, lpCreateStruct:%p)\n"),
519 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
520 return FALSE;
521 }
522
523 static __inline void MSGDUMP_API
524 MD_OnNCDestroy(HWND hwnd)
525 {
526 MSGDUMP_TPRINTF(TEXT("%sWM_NCDESTROY(hwnd:%p)\n"),
527 MSGDUMP_PREFIX, (void *)hwnd);
528 }
529
530 static __inline UINT MSGDUMP_API
531 MD_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp)
532 {
533 MSGDUMP_TPRINTF(TEXT("%sWM_NCCALCSIZE(hwnd:%p, fCalcValidRects:%d, lpcsp:%p)\n"),
534 MSGDUMP_PREFIX, (void *)hwnd, fCalcValidRects, (void *)lpcsp);
535 return 0;
536 }
537
538 static __inline UINT MSGDUMP_API
539 MD_OnNCHitTest(HWND hwnd, int x, int y)
540 {
541 MSGDUMP_TPRINTF(TEXT("%sWM_NCHITTEST(hwnd:%p, x:%d, y:%d)\n"),
542 MSGDUMP_PREFIX, (void *)hwnd, x, y);
543 return 0;
544 }
545
546 static __inline void MSGDUMP_API
547 MD_OnNCPaint(HWND hwnd, HRGN hrgn)
548 {
549 MSGDUMP_TPRINTF(TEXT("%sWM_NCPAINT(hwnd:%p, hrgn:%p)\n"),
550 MSGDUMP_PREFIX, (void *)hwnd, (void *)hrgn);
551 }
552
553 static __inline BOOL MSGDUMP_API
554 MD_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized)
555 {
556 MSGDUMP_TPRINTF(TEXT("%sWM_NCACTIVATE(hwnd:%p, fActive:%d, hwndActDeact:%p, fMinimized:%d)\n"),
557 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActDeact, fMinimized);
558 return FALSE;
559 }
560
561 static __inline UINT MSGDUMP_API
562 MD_OnGetDlgCode(HWND hwnd, LPMSG lpmsg)
563 {
564 MSGDUMP_TPRINTF(TEXT("%sWM_GETDLGCODE(hwnd:%p, lpmsg:%p)\n"),
565 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmsg);
566 return 0;
567 }
568
569 static __inline void MSGDUMP_API
570 MD_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest)
571 {
572 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEMOVE(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
573 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
574 }
575
576 static __inline void MSGDUMP_API
577 MD_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
578 {
579 if (fDoubleClick)
580 {
581 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
582 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
583 }
584 else
585 {
586 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
587 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
588 }
589 }
590
591 static __inline void MSGDUMP_API
592 MD_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
593 {
594 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
595 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
596 }
597
598 static __inline void MSGDUMP_API
599 MD_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
600 {
601 if (fDoubleClick)
602 {
603 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
604 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
605 }
606 else
607 {
608 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
609 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
610 }
611 }
612
613 static __inline void MSGDUMP_API
614 MD_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
615 {
616 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
617 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
618 }
619
620 static __inline void MSGDUMP_API
621 MD_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
622 {
623 if (fDoubleClick)
624 {
625 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
626 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
627 }
628 else
629 {
630 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
631 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
632 }
633 }
634
635 static __inline void MSGDUMP_API
636 MD_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
637 {
638 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
639 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
640 }
641
642 static __inline void MSGDUMP_API
643 MD_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
644 {
645 if (fDown)
646 {
647 MSGDUMP_TPRINTF(TEXT("%sWM_KEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
648 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
649 }
650 else
651 {
652 MSGDUMP_TPRINTF(TEXT("%sWM_KEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
653 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
654 }
655 }
656
657 static __inline void MSGDUMP_API
658 MD_OnChar(HWND hwnd, TCHAR ch, int cRepeat)
659 {
660 MSGDUMP_TPRINTF(TEXT("%sWM_CHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
661 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
662 }
663
664 static __inline void MSGDUMP_API
665 MD_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
666 {
667 MSGDUMP_TPRINTF(TEXT("%sWM_DEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
668 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
669 }
670
671 static __inline void MSGDUMP_API
672 MD_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
673 {
674 if (fDown)
675 {
676 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
677 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
678 }
679 else
680 {
681 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
682 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
683 }
684 }
685
686 static __inline void MSGDUMP_API
687 MD_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat)
688 {
689 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
690 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
691 }
692
693 static __inline void MSGDUMP_API
694 MD_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
695 {
696 MSGDUMP_TPRINTF(TEXT("%sWM_SYSDEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
697 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
698 }
699
700 static __inline BOOL MSGDUMP_API
701 MD_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
702 {
703 MSGDUMP_TPRINTF(TEXT("%sWM_INITDIALOG(hwnd:%p, hwndFocus:%p, lParam:%p)\n"),
704 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFocus, (void *)lParam);
705 return FALSE;
706 }
707
708 static __inline void MSGDUMP_API
709 MD_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
710 {
711 MSGDUMP_TPRINTF(TEXT("%sWM_COMMAND(hwnd:%p, id:%d, hwndCtl:%p, codeNotify:%u)\n"),
712 MSGDUMP_PREFIX, (void *)hwnd, id, (void *)hwndCtl, codeNotify);
713 }
714
715 static __inline void MSGDUMP_API
716 MD_OnSysCommand(HWND hwnd, UINT cmd, int x, int y)
717 {
718 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOMMAND(hwnd:%p, cmd:%u, x:%d, y:%d)\n"),
719 MSGDUMP_PREFIX, (void *)hwnd, cmd, x, y);
720 }
721
722 static __inline void MSGDUMP_API
723 MD_OnTimer(HWND hwnd, UINT id)
724 {
725 MSGDUMP_TPRINTF(TEXT("%sWM_TIMER(hwnd:%p, id:%u)\n"),
726 MSGDUMP_PREFIX, (void *)hwnd, id);
727 }
728
729 static __inline void MSGDUMP_API
730 MD_OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
731 {
732 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
733 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
734 }
735
736 static __inline void MSGDUMP_API
737 MD_OnVScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
738 {
739 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
740 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
741 }
742
743 static __inline void MSGDUMP_API
744 MD_OnInitMenu(HWND hwnd, HMENU hMenu)
745 {
746 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENU(hwnd:%p, hMenu:%p)\n"),
747 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu);
748 }
749
750 static __inline void MSGDUMP_API
751 MD_OnInitMenuPopup(HWND hwnd, HMENU hMenu, UINT item, BOOL fSystemMenu)
752 {
753 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENUPOPUP(hwnd:%p, hMenu:%p, item:%u, fSystemMenu:%d)\n"),
754 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, item, fSystemMenu);
755 }
756
757 static __inline void MSGDUMP_API
758 MD_OnMenuSelect(HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags)
759 {
760 MSGDUMP_TPRINTF(TEXT("%sWM_MENUSELECT(hwnd:%p, hmenu:%p, item:%d, hmenuPopup:%p, flags:%u)\n"),
761 MSGDUMP_PREFIX, (void *)hwnd, (void *)hmenu, item, (void *)hmenuPopup, flags);
762 }
763
764 static __inline DWORD MSGDUMP_API
765 MD_OnMenuChar(HWND hwnd, UINT ch, UINT flags, HMENU hmenu)
766 {
767 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCHAR(hwnd:%p, ch:%u, flags:%u, hmenu:%p)\n"),
768 MSGDUMP_PREFIX, (void *)hwnd, ch, flags, (void *)hmenu);
769 return 0;
770 }
771
772 static __inline void MSGDUMP_API
773 MD_OnEnterIdle(HWND hwnd, UINT source, HWND hwndSource)
774 {
775 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERIDLE(hwnd:%p, source:%u, hwndSource:%p)\n"),
776 MSGDUMP_PREFIX, (void *)hwnd, source, (void *)hwndSource);
777 }
778
779 static __inline HBRUSH MSGDUMP_API
780 MD_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type)
781 {
782 MSGDUMP_TPRINTF(TEXT("%sWM_CTLCOLOR(hwnd:%p, hdc:%p, hwndChild:%p, type:%d)\n"),
783 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc, (void *)hwndChild, type);
784 return NULL;
785 }
786
787 static __inline void MSGDUMP_API
788 MD_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags)
789 {
790 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEMOVE(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
791 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
792 }
793
794 static __inline void MSGDUMP_API
795 MD_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
796 {
797 if (fDoubleClick)
798 {
799 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
800 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
801 }
802 else
803 {
804 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
805 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
806 }
807 }
808
809 static __inline void MSGDUMP_API
810 MD_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags)
811 {
812 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONUP(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
813 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
814 }
815
816 static __inline void MSGDUMP_API
817 MD_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
818 {
819 if (fDoubleClick)
820 {
821 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
822 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
823 }
824 else
825 {
826 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
827 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
828 }
829 }
830
831 static __inline void MSGDUMP_API
832 MD_OnRButtonUp(HWND hwnd, int x, int y, UINT flags)
833 {
834 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
835 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
836 }
837
838 static __inline void MSGDUMP_API
839 MD_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
840 {
841 if (fDoubleClick)
842 {
843 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
844 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
845 }
846 else
847 {
848 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
849 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
850 }
851 }
852
853 static __inline void MSGDUMP_API
854 MD_OnMButtonUp(HWND hwnd, int x, int y, UINT flags)
855 {
856 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
857 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
858 }
859
860 static __inline void MSGDUMP_API
861 MD_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys)
862 {
863 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEWHEEL(hwnd:%p, xPos:%d, yPos:%d, zDelta:%d, fwKeys:%u)\n"),
864 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos, zDelta, fwKeys);
865 }
866
867 static __inline void MSGDUMP_API
868 MD_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild)
869 {
870 MSGDUMP_TPRINTF(TEXT("%sWM_PARENTNOTIFY(hwnd:%p, msg:%u, hwndChild:%p, idChild:%d)\n"),
871 MSGDUMP_PREFIX, (void *)hwnd, msg, (void *)hwndChild, idChild);
872 }
873
874 static __inline BOOL MSGDUMP_API
875 MD_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData)
876 {
877 MSGDUMP_TPRINTF(TEXT("%sWM_DEVICECHANGE(hwnd:%p, uEvent:%u, dwEventData:0x%08lX)\n"),
878 MSGDUMP_PREFIX, (void *)hwnd, uEvent, dwEventData);
879 return FALSE;
880 }
881
882 static __inline HWND MSGDUMP_API
883 MD_MDICreate(HWND hwnd, const LPMDICREATESTRUCT lpmcs)
884 {
885 MSGDUMP_TPRINTF(TEXT("%sWM_MDICREATE(hwnd:%p, lpmcs:%p)\n"),
886 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmcs);
887 return NULL;
888 }
889
890 static __inline void MSGDUMP_API
891 MD_MDIDestroy(HWND hwnd, HWND hwndDestroy)
892 {
893 MSGDUMP_TPRINTF(TEXT("%sWM_MDIDESTROY(hwnd:%p, hwndDestroy:%p)\n"),
894 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndDestroy);
895 }
896
897 static __inline void MSGDUMP_API
898 MD_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate)
899 {
900 MSGDUMP_TPRINTF(TEXT("%sWM_MDIACTIVATE(hwnd:%p, fActive:%d, hwndActivate:%p, hwndDeactivate:%p)\n"),
901 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActivate, (void *)hwndDeactivate);
902 }
903
904 static __inline void MSGDUMP_API
905 MD_MDIRestore(HWND hwnd, HWND hwndRestore)
906 {
907 MSGDUMP_TPRINTF(TEXT("%sWM_MDIRESTORE(hwnd:%p, hwndRestore:%p)\n"),
908 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRestore);
909 }
910
911 static __inline HWND MSGDUMP_API
912 MD_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev)
913 {
914 MSGDUMP_TPRINTF(TEXT("%sWM_MDINEXT(hwnd:%p, hwndCur:%p, fPrev:%d)\n"),
915 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCur, fPrev);
916 return NULL;
917 }
918
919 static __inline void MSGDUMP_API
920 MD_MDIMaximize(HWND hwnd, HWND hwndMaximize)
921 {
922 MSGDUMP_TPRINTF(TEXT("%sWM_MDIMAXIMIZE(hwnd:%p, hwndMaximize:%p)\n"),
923 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndMaximize);
924 }
925
926 static __inline BOOL MSGDUMP_API
927 MD_MDITile(HWND hwnd, UINT cmd)
928 {
929 MSGDUMP_TPRINTF(TEXT("%sWM_MDITILE(hwnd:%p, cmd:%u)\n"),
930 MSGDUMP_PREFIX, (void *)hwnd, cmd);
931 return FALSE;
932 }
933
934 static __inline BOOL MSGDUMP_API
935 MD_MDICascade(HWND hwnd, UINT cmd)
936 {
937 MSGDUMP_TPRINTF(TEXT("%sWM_MDICASCADE(hwnd:%p, cmd:%u)\n"),
938 MSGDUMP_PREFIX, (void *)hwnd, cmd);
939 return FALSE;
940 }
941
942 static __inline void MSGDUMP_API
943 MD_MDIIconArrange(HWND hwnd)
944 {
945 MSGDUMP_TPRINTF(TEXT("%sWM_MDIICONARRANGE(hwnd:%p)\n"),
946 MSGDUMP_PREFIX, (void *)hwnd);
947 }
948
949 static __inline HWND MSGDUMP_API
950 MD_MDIGetActive(HWND hwnd)
951 {
952 MSGDUMP_TPRINTF(TEXT("%sWM_MDIGETACTIVE(hwnd:%p)\n"),
953 MSGDUMP_PREFIX, (void *)hwnd);
954 return NULL;
955 }
956
957 #ifdef _UNDOCUSER_H
958 static __inline LRESULT MSGDUMP_API
959 MD_OnDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
960 {
961 MSGDUMP_TPRINTF(TEXT("%sWM_DROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
962 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
963 return 0;
964 }
965
966 static __inline LRESULT MSGDUMP_API
967 MD_OnQueryDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
968 {
969 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
970 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
971 return 0;
972 }
973
974 static __inline LRESULT MSGDUMP_API
975 MD_OnBeginDrag(HWND hwnd, WPARAM wParam, LPARAM lParam)
976 {
977 MSGDUMP_TPRINTF(TEXT("%sWM_BEGINDRAG(hwnd:%p, wParam:%p, lParam:%p)\n"),
978 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
979 return 0;
980 }
981
982 static __inline LRESULT MSGDUMP_API
983 MD_OnDragLoop(HWND hwnd, WPARAM wParam, LPARAM lParam)
984 {
985 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGLOOP(hwnd:%p, wParam:%p, lParam:%p)\n"),
986 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
987 return 0;
988 }
989
990 static __inline LRESULT MSGDUMP_API
991 MD_OnDragSelect(HWND hwnd, WPARAM wParam, LPARAM lParam)
992 {
993 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGSELECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
994 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
995 return 0;
996 }
997
998 static __inline LRESULT MSGDUMP_API
999 MD_OnDragMove(HWND hwnd, WPARAM wParam, LPARAM lParam)
1000 {
1001 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGMOVE(hwnd:%p, wParam:%p, lParam:%p)\n"),
1002 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1003 return 0;
1004 }
1005 #endif
1006
1007 static __inline HMENU MSGDUMP_API
1008 MD_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow)
1009 {
1010 MSGDUMP_TPRINTF(TEXT("%sWM_MDISETMENU(hwnd:%p, fRefresh:%d, hmenuFrame:%p, hmenuWindow:%p)\n"),
1011 MSGDUMP_PREFIX, (void *)hwnd, fRefresh, (void *)hmenuFrame, (void *)hmenuWindow);
1012 return NULL;
1013 }
1014
1015 static __inline void MSGDUMP_API
1016 MD_OnDropFiles(HWND hwnd, HDROP hdrop)
1017 {
1018 MSGDUMP_TPRINTF(TEXT("%sWM_DROPFILES(hwnd:%p, hdrop:%p)\n"),
1019 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdrop);
1020 }
1021
1022 static __inline void MSGDUMP_API
1023 MD_OnCut(HWND hwnd)
1024 {
1025 MSGDUMP_TPRINTF(TEXT("%sWM_CUT(hwnd:%p)\n"),
1026 MSGDUMP_PREFIX, (void *)hwnd);
1027 }
1028
1029 static __inline void MSGDUMP_API
1030 MD_OnCopy(HWND hwnd)
1031 {
1032 MSGDUMP_TPRINTF(TEXT("%sWM_COPY(hwnd:%p)\n"),
1033 MSGDUMP_PREFIX, (void *)hwnd);
1034 }
1035
1036 static __inline void MSGDUMP_API
1037 MD_OnPaste(HWND hwnd)
1038 {
1039 MSGDUMP_TPRINTF(TEXT("%sWM_PASTE(hwnd:%p)\n"),
1040 MSGDUMP_PREFIX, (void *)hwnd);
1041 }
1042
1043 static __inline void MSGDUMP_API
1044 MD_OnClear(HWND hwnd)
1045 {
1046 MSGDUMP_TPRINTF(TEXT("%sWM_CLEAR(hwnd:%p)\n"),
1047 MSGDUMP_PREFIX, (void *)hwnd);
1048 }
1049
1050 static __inline void MSGDUMP_API
1051 MD_OnUndo(HWND hwnd)
1052 {
1053 MSGDUMP_TPRINTF(TEXT("%sWM_UNDO(hwnd:%p)\n"),
1054 MSGDUMP_PREFIX, (void *)hwnd);
1055 }
1056
1057 static __inline HANDLE MSGDUMP_API
1058 MD_OnRenderFormat(HWND hwnd, UINT fmt)
1059 {
1060 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERFORMAT(hwnd:%p, fmt:%u)\n"),
1061 MSGDUMP_PREFIX, (void *)hwnd, fmt);
1062 return NULL;
1063 }
1064
1065 static __inline void MSGDUMP_API
1066 MD_OnRenderAllFormats(HWND hwnd)
1067 {
1068 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERALLFORMATS(hwnd:%p)\n"),
1069 MSGDUMP_PREFIX, (void *)hwnd);
1070 }
1071
1072 static __inline void MSGDUMP_API
1073 MD_OnDestroyClipboard(HWND hwnd)
1074 {
1075 MSGDUMP_TPRINTF(TEXT("%sWM_DESTROYCLIPBOARD(hwnd:%p)\n"),
1076 MSGDUMP_PREFIX, (void *)hwnd);
1077 }
1078
1079 static __inline void MSGDUMP_API
1080 MD_OnDrawClipboard(HWND hwnd)
1081 {
1082 MSGDUMP_TPRINTF(TEXT("%sWM_DRAWCLIPBOARD(hwnd:%p)\n"),
1083 MSGDUMP_PREFIX, (void *)hwnd);
1084 }
1085
1086 static __inline void MSGDUMP_API
1087 MD_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct)
1088 {
1089 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTCLIPBOARD(hwnd:%p, hwndCBViewer:%p, lpPaintStruct:%p)\n"),
1090 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, (void *)lpPaintStruct);
1091 }
1092
1093 static __inline void MSGDUMP_API
1094 MD_OnVScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1095 {
1096 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1097 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1098 }
1099
1100 static __inline void MSGDUMP_API
1101 MD_OnSizeClipboard(HWND hwnd, HWND hwndCBViewer, const LPRECT lprc)
1102 {
1103 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1104 MSGDUMP_TPRINTF(TEXT("%sWM_SIZECLIPBOARD(hwnd:%p, hwndCBViewer:%p, lprc:%s)\n"),
1105 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer,
1106 MD_rect_text(buf, sizeof(buf), lprc));
1107 }
1108
1109 static __inline void MSGDUMP_API
1110 MD_OnAskCBFormatName(HWND hwnd, int cchMax, LPTSTR rgchName)
1111 {
1112 MSGDUMP_TPRINTF(TEXT("%sWM_ASKCBFORMATNAME(hwnd:%p, cchMax:%d, rgchName:%p)\n"),
1113 MSGDUMP_PREFIX, (void *)hwnd, cchMax, (void *)rgchName);
1114 }
1115
1116 static __inline void MSGDUMP_API
1117 MD_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext)
1118 {
1119 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGECBCHAIN(hwnd:%p, hwndRemove:%p, hwndNext:%p)\n"),
1120 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRemove, (void *)hwndNext);
1121 }
1122
1123 static __inline void MSGDUMP_API
1124 MD_OnHScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1125 {
1126 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1127 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1128 }
1129
1130 static __inline BOOL MSGDUMP_API
1131 MD_OnQueryNewPalette(HWND hwnd)
1132 {
1133 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYNEWPALETTE(hwnd:%p)\n"),
1134 MSGDUMP_PREFIX, (void *)hwnd);
1135 return FALSE;
1136 }
1137
1138 static __inline void MSGDUMP_API
1139 MD_OnPaletteIsChanging(HWND hwnd, HWND hwndPaletteChange)
1140 {
1141 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTEISCHANGING(hwnd:%p, hwndPaletteChange:%p)\n"),
1142 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1143 }
1144
1145 static __inline void MSGDUMP_API
1146 MD_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange)
1147 {
1148 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTECHANGED(hwnd:%p, hwndPaletteChange:%p)\n"),
1149 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1150 }
1151
1152 static __inline void MSGDUMP_API
1153 MD_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk)
1154 {
1155 MSGDUMP_TPRINTF(TEXT("%sWM_HOTKEY(hwnd:%p, idHotKey:%d, fuModifiers:%u, vk:%u)\n"),
1156 MSGDUMP_PREFIX, (void *)hwnd, idHotKey, fuModifiers, vk);
1157 }
1158
1159 static __inline INT MSGDUMP_API
1160 MD_OnSetHotKey(HWND hwnd, INT nCode, UINT nOptions)
1161 {
1162 MSGDUMP_TPRINTF(TEXT("%sWM_SETHOTKEY(hwnd:%p, nCode:%d, nOptions:%u)\n"),
1163 MSGDUMP_PREFIX, (void *)hwnd, nCode, nOptions);
1164 return 0;
1165 }
1166
1167 static __inline INT MSGDUMP_API
1168 MD_OnGetHotKey(HWND hwnd)
1169 {
1170 MSGDUMP_TPRINTF(TEXT("%sWM_GETHOTKEY(hwnd:%p)\n"),
1171 MSGDUMP_PREFIX, (void *)hwnd);
1172 return 0;
1173 }
1174
1175 static __inline void MSGDUMP_API
1176 MD_OnPaintIcon(HWND hwnd)
1177 {
1178 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTICON(hwnd:%p)\n"),
1179 MSGDUMP_PREFIX, (void *)hwnd);
1180 }
1181
1182 static __inline LRESULT MSGDUMP_API
1183 MD_OnGetObject(HWND hwnd, WPARAM wParam, DWORD dwObjId)
1184 {
1185 MSGDUMP_TPRINTF(TEXT("%sWM_GETOBJECT(hwnd:%p, wParam:%p, dwObjId:0x%08lX)\n"),
1186 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, dwObjId);
1187 return 0;
1188 }
1189
1190 static __inline void MSGDUMP_API
1191 MD_OnCancelJournal(HWND hwnd)
1192 {
1193 MSGDUMP_TPRINTF(TEXT("%sWM_CANCELJOURNAL(hwnd:%p)\n"),
1194 MSGDUMP_PREFIX, (void *)hwnd);
1195 }
1196
1197 static __inline void MSGDUMP_API
1198 MD_OnInputLangChangeRequest(HWND hwnd, BOOL bFlag, HKL hKL)
1199 {
1200 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGEREQUEST(hwnd:%p, bFlag:%d, hKL:%p)\n"),
1201 MSGDUMP_PREFIX, (void *)hwnd, bFlag, (void *)hKL);
1202 }
1203
1204 static __inline void MSGDUMP_API
1205 MD_OnInputLangChange(HWND hwnd, DWORD dwCharSet, HKL hKL)
1206 {
1207 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGE(hwnd:%p, dwCharSet:0x%08lX, hKL:%p)\n"),
1208 MSGDUMP_PREFIX, (void *)hwnd, dwCharSet, (void *)hKL);
1209 }
1210
1211 static __inline void MSGDUMP_API
1212 MD_OnTCard(HWND hwnd, UINT idAction, DWORD dwActionData)
1213 {
1214 MSGDUMP_TPRINTF(TEXT("%sWM_TCARD(hwnd:%p, idAction:%u, dwActionData:0x%08lX)\n"),
1215 MSGDUMP_PREFIX, (void *)hwnd, idAction, dwActionData);
1216 }
1217
1218 static __inline void MSGDUMP_API
1219 MD_OnHelp(HWND hwnd, LPHELPINFO lpHelpInfo)
1220 {
1221 MSGDUMP_TPRINTF(TEXT("%sWM_HELP(hwnd:%p, lpHelpInfo:%p)\n"),
1222 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpHelpInfo);
1223 }
1224
1225 static __inline void MSGDUMP_API
1226 MD_OnUserChanged(HWND hwnd)
1227 {
1228 MSGDUMP_TPRINTF(TEXT("%sWM_USERCHANGED(hwnd:%p)\n"),
1229 MSGDUMP_PREFIX, (void *)hwnd);
1230 }
1231
1232 static __inline INT MSGDUMP_API
1233 MD_OnNotifyFormat(HWND hwnd, HWND hwndTarget, INT nCommand)
1234 {
1235 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFYFORMAT(hwnd:%p, hwndTarget:%p, nCommand:%d)\n"),
1236 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, nCommand);
1237 return 0;
1238 }
1239
1240 static __inline void MSGDUMP_API
1241 MD_OnStyleChanging(HWND hwnd, UINT nStyleType, LPSTYLESTRUCT lpStyleStruct)
1242 {
1243 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGING(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1244 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1245 }
1246
1247 static __inline void MSGDUMP_API
1248 MD_OnStyleChanged(HWND hwnd, UINT nStyleType, const STYLESTRUCT *lpStyleStruct)
1249 {
1250 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGED(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1251 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1252 }
1253
1254 static __inline HICON MSGDUMP_API
1255 MD_OnGetIcon(HWND hwnd, UINT nType, LPARAM dpi)
1256 {
1257 MSGDUMP_TPRINTF(TEXT("%sWM_GETICON(hwnd:%p, nType:%u, dpi:%p)\n"),
1258 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)dpi);
1259 return NULL;
1260 }
1261
1262 static __inline HICON MSGDUMP_API
1263 MD_OnSetIcon(HWND hwnd, UINT nType, HICON hIcon)
1264 {
1265 MSGDUMP_TPRINTF(TEXT("%sWM_SETICON(hwnd:%p, nType:%u, hIcon:%p)\n"),
1266 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)hIcon);
1267 return NULL;
1268 }
1269
1270 static __inline void MSGDUMP_API
1271 MD_OnSyncPaint(HWND hwnd)
1272 {
1273 MSGDUMP_TPRINTF(TEXT("%sWM_SYNCPAINT(hwnd:%p)\n"),
1274 MSGDUMP_PREFIX, (void *)hwnd);
1275 }
1276
1277 static __inline void MSGDUMP_API
1278 MD_OnNCXButtonDown(HWND hwnd, BOOL fDoubleClick, UINT nHitTest, WORD fwButton,
1279 INT xPos, INT yPos)
1280 {
1281 if (fDoubleClick)
1282 {
1283 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDBLCLK(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1284 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1285 }
1286 else
1287 {
1288 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDOWN(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1289 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1290 }
1291 }
1292
1293 static __inline void MSGDUMP_API
1294 MD_OnNCXButtonUp(HWND hwnd, UINT nHitTest, WORD fwButton, INT xPos, INT yPos)
1295 {
1296 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONUP(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1297 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1298 }
1299
1300 static __inline void MSGDUMP_API
1301 MD_OnImeStartComposition(HWND hwnd)
1302 {
1303 MSGDUMP_TPRINTF(TEXT("%sWM_IME_STARTCOMPOSITION(hwnd:%p)\n"),
1304 MSGDUMP_PREFIX, (void *)hwnd);
1305 }
1306
1307 static __inline void MSGDUMP_API
1308 MD_OnImeEndComposition(HWND hwnd)
1309 {
1310 MSGDUMP_TPRINTF(TEXT("%sWM_IME_ENDCOMPOSITION(hwnd:%p)\n"),
1311 MSGDUMP_PREFIX, (void *)hwnd);
1312 }
1313
1314 static __inline void MSGDUMP_API
1315 MD_OnImeComposition(HWND hwnd, WORD wChar, DWORD lAttribute)
1316 {
1317 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITION(hwnd:%p, wChar:%u, lAttribute:0x%08lX)\n"),
1318 MSGDUMP_PREFIX, (void *)hwnd, wChar, lAttribute);
1319 }
1320
1321 static __inline void MSGDUMP_API
1322 MD_OnMenuRButtonUp(HWND hwnd, UINT nPos, HMENU hMenu)
1323 {
1324 MSGDUMP_TPRINTF(TEXT("%sWM_MENURBUTTONUP(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1325 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1326 }
1327
1328 static __inline UINT MSGDUMP_API
1329 MD_OnMenuDrag(HWND hwnd, UINT nPos, HMENU hMenu)
1330 {
1331 MSGDUMP_TPRINTF(TEXT("%sWM_MENUDRAG(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1332 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1333 return 0;
1334 }
1335
1336 static __inline UINT MSGDUMP_API
1337 MD_OnMenuGetObject(HWND hwnd, MENUGETOBJECTINFO *pmgoi)
1338 {
1339 MSGDUMP_TPRINTF(TEXT("%sWM_MENUGETOBJECT(hwnd:%p, pmgoi:%p)\n"),
1340 MSGDUMP_PREFIX, (void *)hwnd, (void *)pmgoi);
1341 return 0;
1342 }
1343
1344 static __inline void MSGDUMP_API
1345 MD_OnUninitMenuPopup(HWND hwnd, HMENU hMenu, UINT nFlags)
1346 {
1347 MSGDUMP_TPRINTF(TEXT("%sWM_UNINITMENUPOPUP(hwnd:%p, hMenu:%p, nFlags:%u)\n"),
1348 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, nFlags);
1349 }
1350
1351 static __inline void MSGDUMP_API
1352 MD_OnMenuCommand(HWND hwnd, UINT nPos, HMENU hMenu)
1353 {
1354 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCOMMAND(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1355 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1356 }
1357
1358 static __inline void MSGDUMP_API
1359 MD_OnChangeUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1360 {
1361 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1362 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1363 }
1364
1365 static __inline void MSGDUMP_API
1366 MD_OnUpdateUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1367 {
1368 MSGDUMP_TPRINTF(TEXT("%sWM_UPDATEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1369 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1370 }
1371
1372 static __inline UINT MSGDUMP_API
1373 MD_OnQueryUIState(HWND hwnd)
1374 {
1375 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYUISTATE(hwnd:%p)\n"),
1376 MSGDUMP_PREFIX, (void *)hwnd);
1377 return 0;
1378 }
1379
1380 static __inline void MSGDUMP_API
1381 MD_OnXButtonDown(HWND hwnd, BOOL fDoubleClick, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1382 {
1383 if (fDoubleClick)
1384 {
1385 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDBLCLK(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1386 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1387 }
1388 else
1389 {
1390 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDOWN(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1391 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1392 }
1393 }
1394
1395 static __inline void MSGDUMP_API
1396 MD_OnXButtonUp(HWND hwnd, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1397 {
1398 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONUP(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1399 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1400 }
1401
1402 static __inline void MSGDUMP_API
1403 MD_OnEnterMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1404 {
1405 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1406 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1407 }
1408
1409 static __inline void MSGDUMP_API
1410 MD_OnExitMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1411 {
1412 MSGDUMP_TPRINTF(TEXT("%sWM_EXITMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1413 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1414 }
1415
1416 static __inline void MSGDUMP_API
1417 MD_OnNextMenu(HWND hwnd, INT nCode, LPMDINEXTMENU lpMDINextMenu)
1418 {
1419 MSGDUMP_TPRINTF(TEXT("%sWM_NEXTMENU(hwnd:%p, nCode:%d, lpMDINextMenu:%p)\n"),
1420 MSGDUMP_PREFIX, (void *)hwnd, nCode, (void *)lpMDINextMenu);
1421 }
1422
1423 static __inline void MSGDUMP_API
1424 MD_OnSizing(HWND hwnd, UINT nSide, LPRECT lpRect)
1425 {
1426 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1427 MSGDUMP_TPRINTF(TEXT("%sWM_SIZING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1428 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1429 }
1430
1431 static __inline void MSGDUMP_API
1432 MD_OnCaptureChanged(HWND hwnd, HWND hwndNewCapture)
1433 {
1434 MSGDUMP_TPRINTF(TEXT("%sWM_CAPTURECHANGED(hwnd:%p, hwndNewCapture:%p)\n"),
1435 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewCapture);
1436 }
1437
1438 static __inline void MSGDUMP_API
1439 MD_OnMoving(HWND hwnd, UINT nSide, LPRECT lpRect)
1440 {
1441 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1442 MSGDUMP_TPRINTF(TEXT("%sWM_MOVING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1443 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1444 }
1445
1446 static __inline LRESULT MSGDUMP_API
1447 MD_OnPowerBroadcast(HWND hwnd, UINT nPowerEvent, UINT nEventData)
1448 {
1449 MSGDUMP_TPRINTF(TEXT("%sWM_POWERBROADCAST(hwnd:%p, nPowerEvent:%u, nEventData:%u)\n"),
1450 MSGDUMP_PREFIX, (void *)hwnd, nPowerEvent, nEventData);
1451 return 0;
1452 }
1453
1454 static __inline void MSGDUMP_API
1455 MD_OnEnterSizeMove(HWND hwnd)
1456 {
1457 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERSIZEMOVE(hwnd:%p)\n"),
1458 MSGDUMP_PREFIX, (void *)hwnd);
1459 }
1460
1461 static __inline void MSGDUMP_API
1462 MD_OnExitSizeMove(HWND hwnd)
1463 {
1464 MSGDUMP_TPRINTF(TEXT("%sWM_EXITSIZEMOVE(hwnd:%p)\n"),
1465 MSGDUMP_PREFIX, (void *)hwnd);
1466 }
1467
1468 static __inline HMENU MSGDUMP_API
1469 MD_MDIRefreshMenu(HWND hwnd)
1470 {
1471 MSGDUMP_TPRINTF(TEXT("%sWM_MDIREFRESHMENU(hwnd:%p)\n"),
1472 MSGDUMP_PREFIX, (void *)hwnd);
1473 return NULL;
1474 }
1475
1476 static __inline BOOL MSGDUMP_API
1477 MD_OnImeSetContext(HWND hwnd, BOOL fActive, DWORD dwShow)
1478 {
1479 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SETCONTEXT(hwnd:%p, fActive:%d, dwShow:0x%08lX)\n"),
1480 MSGDUMP_PREFIX, (void *)hwnd, fActive, dwShow);
1481 return FALSE;
1482 }
1483
1484 static __inline LRESULT MSGDUMP_API
1485 MD_OnImeNotify(HWND hwnd, WPARAM wSubMessage, LPARAM lParam)
1486 {
1487 MSGDUMP_TPRINTF(TEXT("%sWM_IME_NOTIFY(hwnd:%p, wSubMessage:%p, lParam:%p)\n"),
1488 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lParam);
1489 return 0;
1490 }
1491
1492 static __inline LRESULT MSGDUMP_API
1493 MD_OnImeControl(HWND hwnd, WPARAM wSubMessage, LPVOID lpData)
1494 {
1495 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CONTROL(hwnd:%p, wSubMessage:%p, lpData:%p)\n"),
1496 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lpData);
1497 return 0;
1498 }
1499
1500 static __inline void MSGDUMP_API
1501 MD_OnImeCompositionFull(HWND hwnd)
1502 {
1503 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITIONFULL(hwnd:%p)\n"),
1504 MSGDUMP_PREFIX, (void *)hwnd);
1505 }
1506
1507 static __inline void MSGDUMP_API
1508 MD_OnImeSelect(HWND hwnd, BOOL fSelect, HKL hKL)
1509 {
1510 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SELECT(hwnd:%p, fSelect:%d, hKL:%p)\n"),
1511 MSGDUMP_PREFIX, (void *)hwnd, fSelect, (void *)hKL);
1512 }
1513
1514 static __inline void MSGDUMP_API
1515 MD_OnImeChar(HWND hwnd, WORD wCharCode, LONG lKeyData)
1516 {
1517 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CHAR(hwnd:%p, wCharCode:%u, lKeyData:%ld)\n"),
1518 MSGDUMP_PREFIX, (void *)hwnd, wCharCode, lKeyData);
1519 }
1520
1521 static __inline LRESULT MSGDUMP_API
1522 MD_OnImeRequest(HWND hwnd, WPARAM wParam, LPARAM lParam)
1523 {
1524 MSGDUMP_TPRINTF(TEXT("%sWM_IME_REQUEST(hwnd:%p, wParam:%p, lParam:%p)\n"),
1525 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1526 return 0;
1527 }
1528
1529 static __inline void MSGDUMP_API
1530 MD_OnImeKey(HWND hwnd, BOOL fDown, UINT nVirtKey, LONG lKeyData)
1531 {
1532 if (fDown)
1533 {
1534 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYDOWN(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1535 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1536 }
1537 else
1538 {
1539 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYUP(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1540 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1541 }
1542 }
1543
1544 static __inline void MSGDUMP_API
1545 MD_OnMouseHover(HWND hwnd, UINT nFlags, INT xPos, INT yPos)
1546 {
1547 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEHOVER(hwnd:%p, nFlags:%u, xPos:%d, yPos:%d)\n"),
1548 MSGDUMP_PREFIX, (void *)hwnd, nFlags, xPos, yPos);
1549 }
1550
1551 static __inline void MSGDUMP_API
1552 MD_OnMouseLeave(HWND hwnd)
1553 {
1554 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSELEAVE(hwnd:%p)\n"),
1555 MSGDUMP_PREFIX, (void *)hwnd);
1556 }
1557
1558 static __inline void MSGDUMP_API
1559 MD_OnNCMouseHover(HWND hwnd, UINT nHitTest, INT xPos, INT yPos)
1560 {
1561 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEHOVER(hwnd:%p, nHitTest:%u, xPos:%d, yPos:%d)\n"),
1562 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, xPos, yPos);
1563 }
1564
1565 static __inline void MSGDUMP_API
1566 MD_OnNCMouseLeave(HWND hwnd)
1567 {
1568 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSELEAVE(hwnd:%p)\n"),
1569 MSGDUMP_PREFIX, (void *)hwnd);
1570 }
1571
1572 static __inline void MSGDUMP_API
1573 MD_OnPrint(HWND hwnd, HDC hDC, UINT uFlags)
1574 {
1575 MSGDUMP_TPRINTF(TEXT("%sWM_PRINT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1576 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1577 }
1578
1579 static __inline void MSGDUMP_API
1580 MD_OnPrintClient(HWND hwnd, HDC hDC, UINT uFlags)
1581 {
1582 MSGDUMP_TPRINTF(TEXT("%sWM_PRINTCLIENT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1583 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1584 }
1585
1586 static __inline BOOL MSGDUMP_API
1587 MD_OnAppCommand(HWND hwnd, HWND hwndTarget, UINT cmd, UINT nDevice, UINT nKey)
1588 {
1589 MSGDUMP_TPRINTF(TEXT("%sWM_APPCOMMAND(hwnd:%p, hwndTarget:%p, cmd:%u, nDevice:%u, nKey:%u)\n"),
1590 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, cmd, nDevice, nKey);
1591 return FALSE;
1592 }
1593
1594 static __inline LONG MSGDUMP_API
1595 MD_Edit_OnGetSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
1596 {
1597 MSGDUMP_TPRINTF(TEXT("%sEM_GETSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
1598 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
1599 return 0;
1600 }
1601
1602 static __inline void MSGDUMP_API
1603 MD_Edit_OnSetSel(HWND hwnd, INT nStart, INT nEnd)
1604 {
1605 MSGDUMP_TPRINTF(TEXT("%sEM_SETSEL(hwnd:%p, nStart:%d, nEnd:%d)\n"),
1606 MSGDUMP_PREFIX, (void *)hwnd, nStart, nEnd);
1607 }
1608
1609 static __inline void MSGDUMP_API
1610 MD_Edit_OnGetRect(HWND hwnd, LPRECT prc)
1611 {
1612 MSGDUMP_TPRINTF(TEXT("%sEM_GETRECT(hwnd:%p, prc:%p)\n"),
1613 MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
1614 }
1615
1616 static __inline void MSGDUMP_API
1617 MD_Edit_OnSetRect(HWND hwnd, LPCRECT prc)
1618 {
1619 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1620 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECT(hwnd:%p, prc:%s)\n"),
1621 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1622 }
1623
1624 static __inline void MSGDUMP_API
1625 MD_Edit_OnSetRectNP(HWND hwnd, LPCRECT prc)
1626 {
1627 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1628 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECTNP(hwnd:%p, prc:%s)\n"),
1629 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1630 }
1631
1632 static __inline DWORD MSGDUMP_API
1633 MD_Edit_OnScroll(HWND hwnd, INT nScroll)
1634 {
1635 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLL(hwnd:%p, nScroll:%d)\n"),
1636 MSGDUMP_PREFIX, (void *)hwnd, nScroll);
1637 return 0;
1638 }
1639
1640 static __inline BOOL MSGDUMP_API
1641 MD_Edit_OnLineScroll(HWND hwnd, INT cxScroll, INT cyScroll)
1642 {
1643 MSGDUMP_TPRINTF(TEXT("%sEM_LINESCROLL(hwnd:%p, cxScroll:%d, cyScroll:%d)\n"),
1644 MSGDUMP_PREFIX, (void *)hwnd, cxScroll, cyScroll);
1645 return FALSE;
1646 }
1647
1648 static __inline BOOL MSGDUMP_API
1649 MD_Edit_OnScrollCaret(HWND hwnd)
1650 {
1651 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLLCARET(hwnd:%p)\n"),
1652 MSGDUMP_PREFIX, (void *)hwnd);
1653 return FALSE;
1654 }
1655
1656 static __inline BOOL MSGDUMP_API
1657 MD_Edit_OnGetModify(HWND hwnd)
1658 {
1659 MSGDUMP_TPRINTF(TEXT("%sEM_GETMODIFY(hwnd:%p)\n"),
1660 MSGDUMP_PREFIX, (void *)hwnd);
1661 return FALSE;
1662 }
1663
1664 static __inline void MSGDUMP_API
1665 MD_Edit_OnSetModify(HWND hwnd, BOOL fModified)
1666 {
1667 MSGDUMP_TPRINTF(TEXT("%sEM_SETMODIFY(hwnd:%p, fModified:%d)\n"),
1668 MSGDUMP_PREFIX, (void *)hwnd, fModified);
1669 }
1670
1671 static __inline INT MSGDUMP_API
1672 MD_Edit_OnGetLineCount(HWND hwnd)
1673 {
1674 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINECOUNT(hwnd:%p)\n"),
1675 MSGDUMP_PREFIX, (void *)hwnd);
1676 return 0;
1677 }
1678
1679 static __inline INT MSGDUMP_API
1680 MD_Edit_OnLineIndex(HWND hwnd, INT line)
1681 {
1682 MSGDUMP_TPRINTF(TEXT("%sEM_LINEINDEX(hwnd:%p, line:%d)\n"),
1683 MSGDUMP_PREFIX, (void *)hwnd, line);
1684 return 0;
1685 }
1686
1687 static __inline void MSGDUMP_API
1688 MD_Edit_OnSetHandle(HWND hwnd, HLOCAL hloc)
1689 {
1690 MSGDUMP_TPRINTF(TEXT("%sEM_SETHANDLE(hwnd:%p, hloc:%p)\n"),
1691 MSGDUMP_PREFIX, (void *)hwnd, (void *)hloc);
1692 }
1693
1694 static __inline HLOCAL MSGDUMP_API
1695 MD_Edit_OnGetHandle(HWND hwnd)
1696 {
1697 MSGDUMP_TPRINTF(TEXT("%sEM_GETHANDLE(hwnd:%p)\n"),
1698 MSGDUMP_PREFIX, (void *)hwnd);
1699 return NULL;
1700 }
1701
1702 static __inline INT MSGDUMP_API
1703 MD_Edit_OnGetThumb(HWND hwnd)
1704 {
1705 MSGDUMP_TPRINTF(TEXT("%sEM_GETTHUMB(hwnd:%p)\n"),
1706 MSGDUMP_PREFIX, (void *)hwnd);
1707 return 0;
1708 }
1709
1710 static __inline INT MSGDUMP_API
1711 MD_Edit_OnLineLength(HWND hwnd, INT ich)
1712 {
1713 MSGDUMP_TPRINTF(TEXT("%sEM_LINELENGTH(hwnd:%p, ich:%d)\n"),
1714 MSGDUMP_PREFIX, (void *)hwnd, ich);
1715 return 0;
1716 }
1717
1718 static __inline void MSGDUMP_API
1719 MD_Edit_OnReplaceSel(HWND hwnd, BOOL fCanUndo, LPCTSTR lpszReplace)
1720 {
1721 if (IsWindowUnicode(hwnd))
1722 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %ls)\n"),
1723 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCWSTR)lpszReplace);
1724 else
1725 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %hs)\n"),
1726 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCSTR)lpszReplace);
1727 }
1728
1729 static __inline INT MSGDUMP_API
1730 MD_Edit_OnGetLine(HWND hwnd, INT line, LPCTSTR lpch)
1731 {
1732 if (IsWindowUnicode(hwnd))
1733 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%ls)\n"),
1734 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCWSTR)lpch);
1735 else
1736 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%hs)\n"),
1737 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCSTR)lpch);
1738 return 0;
1739 }
1740
1741 static __inline BOOL MSGDUMP_API
1742 MD_Edit_OnCanUndo(HWND hwnd)
1743 {
1744 MSGDUMP_TPRINTF(TEXT("%sEM_CANUNDO(hwnd:%p)\n"),
1745 MSGDUMP_PREFIX, (void *)hwnd);
1746 return FALSE;
1747 }
1748
1749 static __inline BOOL MSGDUMP_API
1750 MD_Edit_OnUndo(HWND hwnd)
1751 {
1752 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p)\n"),
1753 MSGDUMP_PREFIX, (void *)hwnd);
1754 return FALSE;
1755 }
1756
1757 static __inline BOOL MSGDUMP_API
1758 MD_Edit_OnFmtLines(HWND hwnd, BOOL fAddEOL)
1759 {
1760 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p, fAddEOL:%d)\n"),
1761 MSGDUMP_PREFIX, (void *)hwnd, fAddEOL);
1762 return FALSE;
1763 }
1764
1765 static __inline INT MSGDUMP_API
1766 MD_Edit_OnLineFromChar(HWND hwnd, INT ich)
1767 {
1768 MSGDUMP_TPRINTF(TEXT("%sEM_LINEFROMCHAR(hwnd:%p, ich:%d)\n"),
1769 MSGDUMP_PREFIX, (void *)hwnd, ich);
1770 return 0;
1771 }
1772
1773 static __inline BOOL MSGDUMP_API
1774 MD_Edit_OnSetTabStops(HWND hwnd, INT cTabs, LPDWORD lpdwTabs)
1775 {
1776 MSGDUMP_TPRINTF(TEXT("%sEM_SETTABSTOPS(hwnd:%p, cTabs:%d, lpdwTabs:%p)\n"),
1777 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpdwTabs);
1778 return FALSE;
1779 }
1780
1781 static __inline void MSGDUMP_API
1782 MD_Edit_OnSetPasswordChar(HWND hwnd, UINT ch)
1783 {
1784 MSGDUMP_TPRINTF(TEXT("%sEM_SETPASSWORDCHAR(hwnd:%p, ch:%u)\n"),
1785 MSGDUMP_PREFIX, (void *)hwnd, ch);
1786 }
1787
1788 static __inline void MSGDUMP_API
1789 MD_Edit_OnEmptyUndoBuffer(HWND hwnd)
1790 {
1791 MSGDUMP_TPRINTF(TEXT("%sEM_EMPTYUNDOBUFFER(hwnd:%p)\n"),
1792 MSGDUMP_PREFIX, (void *)hwnd);
1793 }
1794
1795 static __inline INT MSGDUMP_API
1796 MD_Edit_OnGetFirstVisibleLine(HWND hwnd)
1797 {
1798 MSGDUMP_TPRINTF(TEXT("%sEM_GETFIRSTVISIBLELINE(hwnd:%p)\n"),
1799 MSGDUMP_PREFIX, (void *)hwnd);
1800 return 0;
1801 }
1802
1803 static __inline BOOL MSGDUMP_API
1804 MD_Edit_OnSetReadOnly(HWND hwnd, BOOL fReadOnly)
1805 {
1806 MSGDUMP_TPRINTF(TEXT("%sEM_SETREADONLY(hwnd:%p, fReadOnly:%d)\n"),
1807 MSGDUMP_PREFIX, (void *)hwnd, fReadOnly);
1808 return FALSE;
1809 }
1810
1811 static __inline void MSGDUMP_API
1812 MD_Edit_OnSetWordBreakProc(HWND hwnd, EDITWORDBREAKPROC ewbprc)
1813 {
1814 MSGDUMP_TPRINTF(TEXT("%sEM_SETWORDBREAKPROC(hwnd:%p, ewbprc:%p)\n"),
1815 MSGDUMP_PREFIX, (void *)hwnd, *(void **)&ewbprc);
1816 }
1817
1818 static __inline EDITWORDBREAKPROC MSGDUMP_API
1819 MD_Edit_OnGetWordBreakProc(HWND hwnd)
1820 {
1821 MSGDUMP_TPRINTF(TEXT("%sEM_GETWORDBREAKPROC(hwnd:%p)\n"),
1822 MSGDUMP_PREFIX, (void *)hwnd);
1823 return NULL;
1824 }
1825
1826 static __inline UINT MSGDUMP_API
1827 MD_Edit_OnGetPasswordChar(HWND hwnd)
1828 {
1829 MSGDUMP_TPRINTF(TEXT("%sEM_GETPASSWORDCHAR(hwnd:%p)\n"),
1830 MSGDUMP_PREFIX, (void *)hwnd);
1831 return 0;
1832 }
1833
1834 static __inline void MSGDUMP_API
1835 MD_Edit_OnSetMargins(HWND hwnd, UINT fwMargin, WORD wLeft, WORD wRight)
1836 {
1837 MSGDUMP_TPRINTF(TEXT("%sEM_SETMARGINS(hwnd:%p, fwMargin:%u, wLeft:%d, wRight:%d)\n"),
1838 MSGDUMP_PREFIX, (void *)hwnd, fwMargin, wLeft, wRight);
1839 }
1840
1841 static __inline DWORD MSGDUMP_API
1842 MD_Edit_OnGetMargins(HWND hwnd)
1843 {
1844 MSGDUMP_TPRINTF(TEXT("%sEM_GETMARGINS(hwnd:%p)\n"),
1845 MSGDUMP_PREFIX, (void *)hwnd);
1846 return 0;
1847 }
1848
1849 static __inline void MSGDUMP_API
1850 MD_Edit_OnSetLimitText(HWND hwnd, DWORD cbMax)
1851 {
1852 MSGDUMP_TPRINTF(TEXT("%sEM_SETLIMITTEXT(hwnd:%p, cbMax:%ld)\n"),
1853 MSGDUMP_PREFIX, (void *)hwnd, cbMax);
1854 }
1855
1856 static __inline DWORD MSGDUMP_API
1857 MD_Edit_OnGetLimitText(HWND hwnd)
1858 {
1859 MSGDUMP_TPRINTF(TEXT("%sEM_GETLIMITTEXT(hwnd:%p)\n"),
1860 MSGDUMP_PREFIX, (void *)hwnd);
1861 return 0;
1862 }
1863
1864 static __inline void MSGDUMP_API
1865 MD_Edit_OnPosFromChar(HWND hwnd, LPPOINT lpPoint, UINT wCharIndex)
1866 {
1867 MSGDUMP_TPRINTF(TEXT("%sEM_POSFROMCHAR(hwnd:%p, lpPoint:%p, wCharIndex:%u)\n"),
1868 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpPoint, wCharIndex);
1869 }
1870
1871 static __inline LONG MSGDUMP_API
1872 MD_Edit_OnCharFromPos(HWND hwnd, INT x, INT y)
1873 {
1874 MSGDUMP_TPRINTF(TEXT("%sEM_CHARFROMPOS(hwnd:%p, x:%d, y:%d)\n"),
1875 MSGDUMP_PREFIX, (void *)hwnd, x, y);
1876 return 0;
1877 }
1878
1879 static __inline DWORD MSGDUMP_API
1880 MD_Edit_OnSetIMEStatus(HWND hwnd, UINT uType, DWORD dwFlags)
1881 {
1882 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u, dwFlags:0x%08lX)\n"),
1883 MSGDUMP_PREFIX, (void *)hwnd, uType, dwFlags);
1884 return 0;
1885 }
1886
1887 static __inline DWORD MSGDUMP_API
1888 MD_Edit_OnGetIMEStatus(HWND hwnd, UINT uType)
1889 {
1890 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u)\n"),
1891 MSGDUMP_PREFIX, (void *)hwnd, uType);
1892 return 0;
1893 }
1894
1895 static __inline HICON MSGDUMP_API
1896 MD_Static_OnSetIcon(HWND hwnd, HICON hIcon)
1897 {
1898 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p, hIcon:%p)\n"),
1899 MSGDUMP_PREFIX, (void *)hwnd, (void *)hIcon);
1900 return NULL;
1901 }
1902
1903 static __inline HICON MSGDUMP_API
1904 MD_Static_OnGetIcon(HWND hwnd)
1905 {
1906
1907 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p)\n"),
1908 MSGDUMP_PREFIX, (void *)hwnd);
1909 return NULL;
1910 }
1911
1912 static __inline HANDLE MSGDUMP_API
1913 MD_Static_OnSetImage(HWND hwnd, UINT fImageType, HANDLE hImage)
1914 {
1915 MSGDUMP_TPRINTF(TEXT("%sSTM_SETIMAGE(hwnd:%p, fImageType:%u, hImage:%p)\n"),
1916 MSGDUMP_PREFIX, (void *)hwnd, fImageType, (void *)hImage);
1917 return NULL;
1918 }
1919
1920 static __inline HANDLE MSGDUMP_API
1921 MD_Static_OnGetImage(HWND hwnd, UINT fImageType)
1922 {
1923 MSGDUMP_TPRINTF(TEXT("%sSTM_GETIMAGE(hwnd:%p, fImageType:%u)\n"),
1924 MSGDUMP_PREFIX, (void *)hwnd, fImageType);
1925 return NULL;
1926 }
1927
1928 static __inline INT MSGDUMP_API
1929 MD_ListBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
1930 {
1931 if (IsWindowUnicode(hwnd))
1932 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
1933 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
1934 else
1935 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
1936 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
1937 return 0;
1938 }
1939
1940 static __inline INT MSGDUMP_API
1941 MD_ListBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
1942 {
1943 if (IsWindowUnicode(hwnd))
1944 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
1945 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
1946 else
1947 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
1948 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
1949 return 0;
1950 }
1951
1952 static __inline INT MSGDUMP_API
1953 MD_ListBox_OnDeleteString(HWND hwnd, INT index)
1954 {
1955 MSGDUMP_TPRINTF(TEXT("%sLB_DELETESTRING(hwnd:%p, index:%d)\n"),
1956 MSGDUMP_PREFIX, (void *)hwnd, index);
1957 return 0;
1958 }
1959
1960 static __inline INT MSGDUMP_API
1961 MD_ListBox_OnSelItemRangeEx(HWND hwnd, UINT wFirst, UINT wLast)
1962 {
1963 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGEEX(hwnd:%p, wFirst:%u, wLast:%u)\n"),
1964 MSGDUMP_PREFIX, (void *)hwnd, wFirst, wLast);
1965 return 0;
1966 }
1967
1968 static __inline void MSGDUMP_API
1969 MD_ListBox_OnResetContent(HWND hwnd)
1970 {
1971 MSGDUMP_TPRINTF(TEXT("%sLB_RESETCONTENT(hwnd:%p)\n"),
1972 MSGDUMP_PREFIX, (void *)hwnd);
1973 }
1974
1975 static __inline INT MSGDUMP_API
1976 MD_ListBox_OnSetSel(HWND hwnd, BOOL fSelect, UINT index)
1977 {
1978 MSGDUMP_TPRINTF(TEXT("%sLB_SETSEL(hwnd:%p, fSelect:%d, index:%u)\n"),
1979 MSGDUMP_PREFIX, (void *)hwnd, fSelect, index);
1980 return 0;
1981 }
1982
1983 static __inline INT MSGDUMP_API
1984 MD_ListBox_OnSetCurSel(HWND hwnd, INT index)
1985 {
1986 MSGDUMP_TPRINTF(TEXT("%sLB_SETCURSEL(hwnd:%p, index:%d)\n"),
1987 MSGDUMP_PREFIX, (void *)hwnd, index);
1988 return 0;
1989 }
1990
1991 static __inline INT MSGDUMP_API
1992 MD_ListBox_OnGetSel(HWND hwnd, INT index)
1993 {
1994 MSGDUMP_TPRINTF(TEXT("%sLB_GETSEL(hwnd:%p, index:%d)\n"),
1995 MSGDUMP_PREFIX, (void *)hwnd, index);
1996 return 0;
1997 }
1998
1999 static __inline INT MSGDUMP_API
2000 MD_ListBox_OnGetCurSel(HWND hwnd)
2001 {
2002 MSGDUMP_TPRINTF(TEXT("%sLB_GETCURSEL(hwnd:%p)\n"),
2003 MSGDUMP_PREFIX, (void *)hwnd);
2004 return 0;
2005 }
2006
2007 static __inline INT MSGDUMP_API
2008 MD_ListBox_OnGetText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2009 {
2010 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXT(hwnd:%p, lpszBuffer:%p)\n"),
2011 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpszBuffer);
2012 return 0;
2013 }
2014
2015 static __inline INT MSGDUMP_API
2016 MD_ListBox_OnGetTextLen(HWND hwnd, INT index)
2017 {
2018 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXTLEN(hwnd:%p, index:%d)\n"),
2019 MSGDUMP_PREFIX, (void *)hwnd, index);
2020 return 0;
2021 }
2022
2023 static __inline INT MSGDUMP_API
2024 MD_ListBox_OnGetCount(HWND hwnd)
2025 {
2026 MSGDUMP_TPRINTF(TEXT("%sLB_GETCOUNT(hwnd:%p)\n"),
2027 MSGDUMP_PREFIX, (void *)hwnd);
2028 return 0;
2029 }
2030
2031 static __inline INT MSGDUMP_API
2032 MD_ListBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2033 {
2034 if (IsWindowUnicode(hwnd))
2035 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2036 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2037 else
2038 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2039 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2040 return 0;
2041 }
2042
2043 static __inline INT MSGDUMP_API
2044 MD_ListBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2045 {
2046 if (IsWindowUnicode(hwnd))
2047 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2048 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2049 else
2050 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%hs)\n"),
2051 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2052 return 0;
2053 }
2054
2055 static __inline INT MSGDUMP_API
2056 MD_ListBox_OnGetTopIndex(HWND hwnd)
2057 {
2058 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p)\n"),
2059 MSGDUMP_PREFIX, (void *)hwnd);
2060 return 0;
2061 }
2062
2063 static __inline INT MSGDUMP_API
2064 MD_ListBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2065 {
2066 if (IsWindowUnicode(hwnd))
2067 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2068 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2069 else
2070 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2071 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2072 return 0;
2073 }
2074
2075 static __inline INT MSGDUMP_API
2076 MD_ListBox_OnGetSelCount(HWND hwnd)
2077 {
2078 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELCOUNT(hwnd:%p)\n"),
2079 MSGDUMP_PREFIX, (void *)hwnd);
2080 return 0;
2081 }
2082
2083 static __inline INT MSGDUMP_API
2084 MD_ListBox_OnGetSelItems(HWND hwnd, UINT cItems, LPINT lpnItems)
2085 {
2086 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELITEMS(hwnd:%p, cItems:%u, lpnItems:%p)\n"),
2087 MSGDUMP_PREFIX, (void *)hwnd, cItems, (void *)lpnItems);
2088 return 0;
2089 }
2090
2091 static __inline BOOL MSGDUMP_API
2092 MD_ListBox_OnSetTabStops(HWND hwnd, UINT cTabs, LPINT lpnTabs)
2093 {
2094 MSGDUMP_TPRINTF(TEXT("%sLB_SETTABSTOPS(hwnd:%p, cTabs:%u, lpnTabs:%p)\n"),
2095 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpnTabs);
2096 return FALSE;
2097 }
2098
2099 static __inline INT MSGDUMP_API
2100 MD_ListBox_OnGetHorizontalExtent(HWND hwnd)
2101 {
2102 MSGDUMP_TPRINTF(TEXT("%sLB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2103 MSGDUMP_PREFIX, (void *)hwnd);
2104 return 0;
2105 }
2106
2107 static __inline void MSGDUMP_API
2108 MD_ListBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2109 {
2110 MSGDUMP_TPRINTF(TEXT("%sLB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2111 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2112 }
2113
2114 static __inline void MSGDUMP_API
2115 MD_ListBox_OnSetColumnWidth(HWND hwnd, INT cxColumn)
2116 {
2117 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOLUMNWIDTH(hwnd:%p, cxColumn:%d)\n"),
2118 MSGDUMP_PREFIX, (void *)hwnd, cxColumn);
2119 }
2120
2121 static __inline INT MSGDUMP_API
2122 MD_ListBox_OnAddFile(HWND hwnd, LPCTSTR lpszFilename)
2123 {
2124 if (IsWindowUnicode(hwnd))
2125 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2126 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszFilename);
2127 else
2128 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2129 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszFilename);
2130 return 0;
2131 }
2132
2133 static __inline INT MSGDUMP_API
2134 MD_ListBox_OnSetTopIndex(HWND hwnd, INT index)
2135 {
2136 MSGDUMP_TPRINTF(TEXT("%sLB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2137 MSGDUMP_PREFIX, (void *)hwnd, index);
2138 return 0;
2139 }
2140
2141 static __inline INT MSGDUMP_API
2142 MD_ListBox_OnGetItemRect(HWND hwnd, INT index, RECT FAR *lprc)
2143 {
2144 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMRECT(hwnd:%p, index:%d, lprc:%p)\n"),
2145 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lprc);
2146 return 0;
2147 }
2148
2149 static __inline INT_PTR MSGDUMP_API
2150 MD_ListBox_OnGetItemData(HWND hwnd, INT index)
2151 {
2152 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2153 MSGDUMP_PREFIX, (void *)hwnd, index);
2154 return 0;
2155 }
2156
2157 static __inline INT_PTR MSGDUMP_API
2158 MD_ListBox_OnSetItemData(HWND hwnd, INT index, LPARAM dwData)
2159 {
2160 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2161 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2162 return 0;
2163 }
2164
2165 static __inline INT MSGDUMP_API
2166 MD_ListBox_OnSelItemRange(HWND hwnd, BOOL fSelect, UINT wFirst, UINT wLast)
2167 {
2168 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGE(hwnd:%p, fSelect:%d, wFirst:%u, wLast:%u)\n"),
2169 MSGDUMP_PREFIX, (void *)hwnd, fSelect, wFirst, wLast);
2170 return 0;
2171 }
2172
2173 static __inline INT MSGDUMP_API
2174 MD_ListBox_OnSetAnchorIndex(HWND hwnd, INT index)
2175 {
2176 MSGDUMP_TPRINTF(TEXT("%sLB_SETANCHORINDEX(hwnd:%p, index:%d)\n"),
2177 MSGDUMP_PREFIX, (void *)hwnd, index);
2178 return 0;
2179 }
2180
2181 static __inline INT MSGDUMP_API
2182 MD_ListBox_OnGetAnchorIndex(HWND hwnd)
2183 {
2184 MSGDUMP_TPRINTF(TEXT("%sLB_GETANCHORINDEX(hwnd:%p)\n"),
2185 MSGDUMP_PREFIX, (void *)hwnd);
2186 return 0;
2187 }
2188
2189 static __inline INT MSGDUMP_API
2190 MD_ListBox_OnSetCaretIndex(HWND hwnd, INT index, BOOL fScroll)
2191 {
2192 MSGDUMP_TPRINTF(TEXT("%sLB_SETCARETINDEX(hwnd:%p, index:%d, fScroll:%d)\n"),
2193 MSGDUMP_PREFIX, (void *)hwnd, index, fScroll);
2194 return 0;
2195 }
2196
2197 static __inline INT MSGDUMP_API
2198 MD_ListBox_OnGetCaretIndex(HWND hwnd)
2199 {
2200 MSGDUMP_TPRINTF(TEXT("%sLB_GETCARETINDEX(hwnd:%p)\n"),
2201 MSGDUMP_PREFIX, (void *)hwnd);
2202 return 0;
2203 }
2204
2205 static __inline INT MSGDUMP_API
2206 MD_ListBox_OnSetItemHeight(HWND hwnd, INT index, INT cyItem)
2207 {
2208 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMHEIGHT(hwnd:%p, index:%d, cyItem:%d)\n"),
2209 MSGDUMP_PREFIX, (void *)hwnd, index, cyItem);
2210 return 0;
2211 }
2212
2213 static __inline INT MSGDUMP_API
2214 MD_ListBox_OnGetItemHeight(HWND hwnd, INT index)
2215 {
2216 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2217 MSGDUMP_PREFIX, (void *)hwnd, index);
2218 return 0;
2219 }
2220
2221 static __inline INT MSGDUMP_API
2222 MD_ListBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2223 {
2224 if (IsWindowUnicode(hwnd))
2225 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2226 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2227 else
2228 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2229 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2230 return 0;
2231 }
2232
2233 static __inline LCID MSGDUMP_API
2234 MD_ListBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2235 {
2236 MSGDUMP_TPRINTF(TEXT("%sLB_SETLOCALE(hwnd:%p, wLocaleID:0x%08X)\n"),
2237 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2238 return 0;
2239 }
2240
2241 static __inline LCID MSGDUMP_API
2242 MD_ListBox_OnGetLocale(HWND hwnd)
2243 {
2244 MSGDUMP_TPRINTF(TEXT("%sLB_GETLOCALE(hwnd:%p)\n"),
2245 MSGDUMP_PREFIX, (void *)hwnd);
2246 return 0;
2247 }
2248
2249 static __inline INT MSGDUMP_API
2250 MD_ListBox_OnSetCount(HWND hwnd, INT cItems)
2251 {
2252 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOUNT(hwnd:%p, cItems:%d)\n"),
2253 MSGDUMP_PREFIX, (void *)hwnd, cItems);
2254 return 0;
2255 }
2256
2257 static __inline DWORD MSGDUMP_API
2258 MD_ListBox_OnInitStorage(HWND hwnd, UINT cItems, DWORD cb)
2259 {
2260 MSGDUMP_TPRINTF(TEXT("%sLB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2261 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2262 return 0;
2263 }
2264
2265 static __inline DWORD MSGDUMP_API
2266 MD_ListBox_OnItemFromPoint(HWND hwnd, INT xPos, INT yPos)
2267 {
2268 MSGDUMP_TPRINTF(TEXT("%sLB_ITEMFROMPOINT(hwnd:%p, xPos:%d, yPos:%d)\n"),
2269 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos);
2270 return 0;
2271 }
2272
2273 static __inline DWORD MSGDUMP_API
2274 MD_ComboBox_OnGetEditSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
2275 {
2276 MSGDUMP_TPRINTF(TEXT("%sCB_GETEDITSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
2277 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
2278 return 0;
2279 }
2280
2281 static __inline void MSGDUMP_API
2282 MD_ComboBox_OnLimitText(HWND hwnd, UINT cchLimit)
2283 {
2284 MSGDUMP_TPRINTF(TEXT("%sCB_LIMITTEXT(hwnd:%p, cchLimit:%u)\n"),
2285 MSGDUMP_PREFIX, (void *)hwnd, cchLimit);
2286 }
2287
2288 static __inline INT MSGDUMP_API
2289 MD_ComboBox_OnSetEditSel(HWND hwnd, INT ichStart, INT ichEnd)
2290 {
2291 MSGDUMP_TPRINTF(TEXT("%sCB_SETEDITSEL(hwnd:%p, ichStart:%d, ichEnd:%d)\n"),
2292 MSGDUMP_PREFIX, (void *)hwnd, ichStart, ichEnd);
2293 return 0;
2294 }
2295
2296 static __inline INT MSGDUMP_API
2297 MD_ComboBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
2298 {
2299 if (IsWindowUnicode(hwnd))
2300 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2301 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2302 else
2303 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2304 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2305 return 0;
2306 }
2307
2308 static __inline INT MSGDUMP_API
2309 MD_ComboBox_OnDeleteString(HWND hwnd, INT index)
2310 {
2311 MSGDUMP_TPRINTF(TEXT("%sCB_DELETESTRING(hwnd:%p, index:%d)\n"),
2312 MSGDUMP_PREFIX, (void *)hwnd, index);
2313 return 0;
2314 }
2315
2316 static __inline INT MSGDUMP_API
2317 MD_ComboBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2318 {
2319 if (IsWindowUnicode(hwnd))
2320 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2321 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2322 else
2323 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2324 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2325 return 0;
2326 }
2327
2328 static __inline INT MSGDUMP_API
2329 MD_ComboBox_OnGetCount(HWND hwnd)
2330 {
2331 MSGDUMP_TPRINTF(TEXT("%sCB_GETCOUNT(hwnd:%p)\n"),
2332 MSGDUMP_PREFIX, (void *)hwnd);
2333 return 0;
2334 }
2335
2336 static __inline INT MSGDUMP_API
2337 MD_ComboBox_GetCurSel(HWND hwnd)
2338 {
2339 MSGDUMP_TPRINTF(TEXT("%sCB_GETCURSEL(hwnd:%p)\n"),
2340 MSGDUMP_PREFIX, (void *)hwnd);
2341 return 0;
2342 }
2343
2344 static __inline INT MSGDUMP_API
2345 MD_ComboBox_GetLBText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2346 {
2347 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXT(hwnd:%p, index:%d, lpszBuffer:%p)\n"),
2348 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lpszBuffer);
2349 return 0;
2350 }
2351
2352 static __inline INT MSGDUMP_API
2353 MD_ComboBox_OnGetLBTextLen(HWND hwnd, INT index)
2354 {
2355 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXTLEN(hwnd:%p, index:%d)\n"),
2356 MSGDUMP_PREFIX, (void *)hwnd, index);
2357 return 0;
2358 }
2359
2360 static __inline INT MSGDUMP_API
2361 MD_ComboBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
2362 {
2363 if (IsWindowUnicode(hwnd))
2364 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2365 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2366 else
2367 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2368 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2369 return 0;
2370 }
2371
2372 static __inline void MSGDUMP_API
2373 MD_ComboBox_OnResetContent(HWND hwnd)
2374 {
2375 MSGDUMP_TPRINTF(TEXT("%sCB_RESETCONTENT(hwnd:%p)\n"),
2376 MSGDUMP_PREFIX, (void *)hwnd);
2377 }
2378
2379 static __inline INT MSGDUMP_API
2380 MD_ComboBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2381 {
2382 if (IsWindowUnicode(hwnd))
2383 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2384 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2385 else
2386 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2387 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2388 return 0;
2389 }
2390
2391 static __inline INT MSGDUMP_API
2392 MD_ComboBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszSelect)
2393 {
2394 if (IsWindowUnicode(hwnd))
2395 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%ls)\n"),
2396 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszSelect);
2397 else
2398 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%hs)\n"),
2399 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszSelect);
2400 return 0;
2401 }
2402
2403 static __inline INT MSGDUMP_API
2404 MD_ComboBox_OnSetCurSel(HWND hwnd, INT index)
2405 {
2406 MSGDUMP_TPRINTF(TEXT("%sCB_SETCURSEL(hwnd:%p, index:%d)\n"),
2407 MSGDUMP_PREFIX, (void *)hwnd, index);
2408 return 0;
2409 }
2410
2411 static __inline BOOL MSGDUMP_API
2412 MD_ComboBox_OnShowDropDown(HWND hwnd, BOOL fShow)
2413 {
2414 MSGDUMP_TPRINTF(TEXT("%sCB_SHOWDROPDOWN(hwnd:%p, fShow:%d)\n"),
2415 MSGDUMP_PREFIX, (void *)hwnd, fShow);
2416 return FALSE;
2417 }
2418
2419 static __inline INT_PTR MSGDUMP_API
2420 MD_ComboBox_OnGetItemData(HWND hwnd, INT index)
2421 {
2422 MSGDUMP_TPRINTF(TEXT("%sCB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2423 MSGDUMP_PREFIX, (void *)hwnd, index);
2424 return 0;
2425 }
2426
2427 static __inline INT_PTR MSGDUMP_API
2428 MD_ComboBox_OnSetItemData(HWND hwnd, INT index, DWORD_PTR dwData)
2429 {
2430 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2431 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2432 return 0;
2433 }
2434
2435 static __inline void MSGDUMP_API
2436 MD_ComboBox_OnGetDroppedControlRect(HWND hwnd, RECT FAR *lprc)
2437 {
2438 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDCONTROLRECT(hwnd:%p, lprc:%p)\n"),
2439 MSGDUMP_PREFIX, (void *)hwnd, (void *)lprc);
2440 }
2441
2442 static __inline INT MSGDUMP_API
2443 MD_ComboBox_OnSetItemHeight(HWND hwnd, INT index, INT height)
2444 {
2445 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d, height:%d)\n"),
2446 MSGDUMP_PREFIX, (void *)hwnd, index, height);
2447 return 0;
2448 }
2449
2450 static __inline INT MSGDUMP_API
2451 MD_ComboBox_OnGetItemHeight(HWND hwnd, INT index)
2452 {
2453 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2454 MSGDUMP_PREFIX, (void *)hwnd, index);
2455 return 0;
2456 }
2457
2458 static __inline INT MSGDUMP_API
2459 MD_ComboBox_OnSetExtendedUI(HWND hwnd, BOOL fExtended)
2460 {
2461 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p, fExtended:%d)\n"),
2462 MSGDUMP_PREFIX, (void *)hwnd, fExtended);
2463 return 0;
2464 }
2465
2466 static __inline BOOL MSGDUMP_API
2467 MD_ComboBox_OnGetExtendedUI(HWND hwnd)
2468 {
2469 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p)\n"),
2470 MSGDUMP_PREFIX, (void *)hwnd);
2471 return FALSE;
2472 }
2473
2474 static __inline BOOL MSGDUMP_API
2475 MD_ComboBox_OnGetDroppedState(HWND hwnd)
2476 {
2477 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDSTATE(hwnd:%p)\n"),
2478 MSGDUMP_PREFIX, (void *)hwnd);
2479 return FALSE;
2480 }
2481
2482 static __inline INT MSGDUMP_API
2483 MD_ComboBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2484 {
2485 if (IsWindowUnicode(hwnd))
2486 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2487 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2488 else
2489 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2490 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2491 return 0;
2492 }
2493
2494 static __inline LCID MSGDUMP_API
2495 MD_ComboBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2496 {
2497 MSGDUMP_TPRINTF(TEXT("%sCB_SETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2498 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2499 return 0;
2500 }
2501
2502 static __inline LCID MSGDUMP_API
2503 MD_ComboBox_OnGetLocale(HWND hwnd)
2504 {
2505 MSGDUMP_TPRINTF(TEXT("%sCB_GETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2506 MSGDUMP_PREFIX, (void *)hwnd);
2507 return 0;
2508 }
2509
2510 static __inline INT MSGDUMP_API
2511 MD_ComboBox_OnGetTopIndex(HWND hwnd)
2512 {
2513 MSGDUMP_TPRINTF(TEXT("%sCB_GETTOPINDEX(hwnd:%p)\n"),
2514 MSGDUMP_PREFIX, (void *)hwnd);
2515 return 0;
2516 }
2517
2518 static __inline INT MSGDUMP_API
2519 MD_ComboBox_OnSetTopIndex(HWND hwnd, INT index)
2520 {
2521 MSGDUMP_TPRINTF(TEXT("%sCB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2522 MSGDUMP_PREFIX, (void *)hwnd, index);
2523 return 0;
2524 }
2525
2526 static __inline INT MSGDUMP_API
2527 MD_ComboBox_OnGetHorizontalExtent(HWND hwnd)
2528 {
2529 MSGDUMP_TPRINTF(TEXT("%sCB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2530 MSGDUMP_PREFIX, (void *)hwnd);
2531 return 0;
2532 }
2533
2534 static __inline void MSGDUMP_API
2535 MD_ComboBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2536 {
2537 MSGDUMP_TPRINTF(TEXT("%sCB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2538 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2539 }
2540
2541 static __inline INT MSGDUMP_API
2542 MD_ComboBox_OnGetDroppedWidth(HWND hwnd)
2543 {
2544 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDWIDTH(hwnd:%p)\n"),
2545 MSGDUMP_PREFIX, (void *)hwnd);
2546 return 0;
2547 }
2548
2549 static __inline INT MSGDUMP_API
2550 MD_ComboBox_OnSetDroppedWidth(HWND hwnd, INT wWidth)
2551 {
2552 MSGDUMP_TPRINTF(TEXT("%sCB_SETDROPPEDWIDTH(hwnd:%p, wWidth:%d)\n"),
2553 MSGDUMP_PREFIX, (void *)hwnd, wWidth);
2554 return 0;
2555 }
2556
2557 static __inline INT MSGDUMP_API
2558 MD_ComboBox_OnInitStorage(HWND hwnd, INT cItems, DWORD cb)
2559 {
2560 MSGDUMP_TPRINTF(TEXT("%sCB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2561 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2562 return 0;
2563 }
2564
2565 static __inline INT MSGDUMP_API
2566 MD_ScrollBar_OnSetPos(HWND hwnd, INT nPos, BOOL fRedraw)
2567 {
2568 MSGDUMP_TPRINTF(TEXT("%sSBM_SETPOS(hwnd:%p, nPos:%d, fRedraw:%d)\n"),
2569 MSGDUMP_PREFIX, (void *)hwnd, nPos, fRedraw);
2570 return 0;
2571 }
2572
2573 static __inline INT MSGDUMP_API
2574 MD_ScrollBar_OnGetPos(HWND hwnd)
2575 {
2576 MSGDUMP_TPRINTF(TEXT("%sSBM_GETPOS(hwnd:%p)\n"),
2577 MSGDUMP_PREFIX, (void *)hwnd);
2578 return 0;
2579 }
2580
2581 static __inline INT MSGDUMP_API
2582 MD_ScrollBar_OnSetRange(HWND hwnd, INT nMinPos, INT nMaxPos)
2583 {
2584 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGE(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2585 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2586 return 0;
2587 }
2588
2589 static __inline INT MSGDUMP_API
2590 MD_ScrollBar_OnSetRangeRedraw(HWND hwnd, INT nMinPos, INT nMaxPos)
2591 {
2592 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2593 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2594 return 0;
2595 }
2596
2597 static __inline void MSGDUMP_API
2598 MD_ScrollBar_OnGetRange(HWND hwnd, LPINT lpnMinPos, LPINT lpnMaxPos)
2599 {
2600 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, lpnMinPos:%p, lpnMaxPos:%p)\n"),
2601 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpnMinPos, (void *)lpnMaxPos);
2602 }
2603
2604 static __inline BOOL MSGDUMP_API
2605 MD_ScrollBar_OnEnableArrows(HWND hwnd, UINT fuArrowFlags)
2606 {
2607 MSGDUMP_TPRINTF(TEXT("%sSBM_ENABLE_ARROWS(hwnd:%p, fuArrowFlags:%u)\n"),
2608 MSGDUMP_PREFIX, (void *)hwnd, fuArrowFlags);
2609 return FALSE;
2610 }
2611
2612 static __inline INT MSGDUMP_API
2613 MD_ScrollBar_OnSetScrollInfo(HWND hwnd, BOOL fRedraw, LPSCROLLINFO lpsi)
2614 {
2615 MSGDUMP_TPRINTF(TEXT("%sSBM_SETSCROLLINFO(hwnd:%p, fRedraw:%d, lpsi:%p)\n"),
2616 MSGDUMP_PREFIX, (void *)hwnd, fRedraw, (void *)lpsi);
2617 return 0;
2618 }
2619
2620 static __inline BOOL MSGDUMP_API
2621 MD_ScrollBar_OnGetScrollInfo(HWND hwnd, LPSCROLLINFO lpsi)
2622 {
2623 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLINFO(hwnd:%p, lpsi:%p)\n"),
2624 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsi);
2625 return FALSE;
2626 }
2627
2628 static __inline BOOL MSGDUMP_API
2629 MD_ScrollBar_OnGetScrollBarInfo(HWND hwnd, LPSCROLLBARINFO lpsbi)
2630 {
2631 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLBARINFO(hwnd:%p, lpsbi:%p)\n"),
2632 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsbi);
2633 return FALSE;
2634 }
2635
2636 static __inline COLORREF MSGDUMP_API
2637 MD_ListView_OnGetBkColor(HWND hwnd)
2638 {
2639 MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKCOLOR(hwnd:%p)\n"),
2640 MSGDUMP_PREFIX, (void *)hwnd);
2641 return 0;
2642 }
2643
2644 static __inline BOOL MSGDUMP_API
2645 MD_ListView_OnSetBkColor(HWND hwnd, COLORREF clrBk)
2646 {
2647 MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKCOLOR(hwnd:%p, clrBk:0x%08lX)\n"),
2648 MSGDUMP_PREFIX, (void *)hwnd, clrBk);
2649 return FALSE;
2650 }
2651
2652 static __inline HIMAGELIST MSGDUMP_API
2653 MD_ListView_OnGetImageList(HWND hwnd, INT iImageList)
2654 {
2655 MSGDUMP_TPRINTF(TEXT("%sLVM_GETIMAGELIST(hwnd:%p, iImageList:%d)\n"),
2656 MSGDUMP_PREFIX, (void *)hwnd, iImageList);
2657 return NULL;
2658 }
2659
2660 static __inline HIMAGELIST MSGDUMP_API
2661 MD_ListView_OnSetImageList(HWND hwnd, INT iImageList, HIMAGELIST himl)
2662 {
2663 MSGDUMP_TPRINTF(TEXT("%sLVM_SETIMAGELIST(hwnd:%p, iImageList:%d, himl:%p)\n"),
2664 MSGDUMP_PREFIX, (void *)hwnd, iImageList, (void *)himl);
2665 return NULL;
2666 }
2667
2668 static __inline INT MSGDUMP_API
2669 MD_ListView_OnGetItemCount(HWND hwnd)
2670 {
2671 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMCOUNT(hwnd:%p)\n"),
2672 MSGDUMP_PREFIX, (void *)hwnd);
2673 return 0;
2674 }
2675
2676 static __inline BOOL MSGDUMP_API
2677 MD_ListView_OnGetItemA(HWND hwnd, LV_ITEMA *pitem)
2678 {
2679 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMA(hwnd:%p, pitem:%p)\n"),
2680 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2681 return FALSE;
2682 }
2683
2684 static __inline BOOL MSGDUMP_API
2685 MD_ListView_OnSetItemA(HWND hwnd, const LV_ITEMA *pitem)
2686 {
2687 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMA(hwnd:%p, pitem:%p)\n"),
2688 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2689 return FALSE;
2690 }
2691
2692 static __inline INT MSGDUMP_API
2693 MD_ListView_OnInsertItemA(HWND hwnd, const LV_ITEMA *pitem)
2694 {
2695 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTITEMA(hwnd:%p, pitem:%p)\n"),
2696 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2697 return 0;
2698 }
2699
2700 static __inline BOOL MSGDUMP_API
2701 MD_ListView_OnDeleteItem(HWND hwnd, INT i)
2702 {
2703 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEITEM(hwnd:%p, i:%d)\n"),
2704 MSGDUMP_PREFIX, (void *)hwnd, i);
2705 return FALSE;
2706 }
2707
2708 static __inline BOOL MSGDUMP_API
2709 MD_ListView_OnDeleteAllItems(HWND hwnd)
2710 {
2711 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEALLITEMS(hwnd:%p)\n"),
2712 MSGDUMP_PREFIX, (void *)hwnd);
2713 return FALSE;
2714 }
2715
2716 static __inline BOOL MSGDUMP_API
2717 MD_ListView_OnGetCallbackMask(HWND hwnd)
2718 {
2719 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCALLBACKMASK(hwnd:%p)\n"),
2720 MSGDUMP_PREFIX, (void *)hwnd);
2721 return FALSE;
2722 }
2723
2724 static __inline BOOL MSGDUMP_API
2725 MD_ListView_OnSetCallbackMask(HWND hwnd, UINT mask)
2726 {
2727 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCALLBACKMASK(hwnd:%p, mask:%u)\n"),
2728 MSGDUMP_PREFIX, (void *)hwnd, mask);
2729 return FALSE;
2730 }
2731
2732 static __inline INT MSGDUMP_API
2733 MD_ListView_OnGetNextItem(HWND hwnd, INT i, UINT flags)
2734 {
2735 MSGDUMP_TPRINTF(TEXT("%sLVM_GETNEXTITEM(hwnd:%p, i:%d, flags:%u)\n"),
2736 MSGDUMP_PREFIX, (void *)hwnd, i, flags);
2737 return 0;
2738 }
2739
2740 static __inline INT MSGDUMP_API
2741 MD_ListView_OnFindItemA(HWND hwnd, INT iStart, const LV_FINDINFOA *plvfi)
2742 {
2743 MSGDUMP_TPRINTF(TEXT("%sLVM_FINDITEMA(hwnd:%p, iStart:%d, plvfi:%p)\n"),
2744 MSGDUMP_PREFIX, (void *)hwnd, iStart, (void *)plvfi);
2745 return 0;
2746 }
2747
2748 static __inline BOOL MSGDUMP_API
2749 MD_ListView_OnGetItemRect(HWND hwnd, INT i, RECT *prc)
2750 {
2751 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMRECT(hwnd:%p, i:%d, prc:%p)\n"),
2752 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)prc);
2753 return FALSE;
2754 }
2755
2756 static __inline BOOL MSGDUMP_API
2757 MD_ListView_OnSetItemPosition(HWND hwnd, INT i, INT x, INT y)
2758 {
2759 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMPOSITION(hwnd:%p, i:%d, x:%d, y:%d)\n"),
2760 MSGDUMP_PREFIX, (void *)hwnd, i, x, y);
2761 return FALSE;
2762 }
2763
2764 static __inline BOOL MSGDUMP_API
2765 MD_ListView_OnGetItemPosition(HWND hwnd, INT i, POINT *ppt)
2766 {
2767 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMPOSITION(hwnd:%p, i:%d, ppt:%p)\n"),
2768 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)ppt);
2769 return FALSE;
2770 }
2771
2772 static __inline INT MSGDUMP_API
2773 MD_ListView_OnGetStringWidthA(HWND hwnd, LPCSTR psz)
2774 {
2775 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSTRINGWIDTHA(hwnd:%p, psz:%p)\n"),
2776 MSGDUMP_PREFIX, (void *)hwnd, (void *)psz);
2777 return 0;
2778 }
2779
2780 static __inline INT MSGDUMP_API
2781 MD_ListView_OnHitTest(HWND hwnd, LV_HITTESTINFO *pinfo)
2782 {
2783 MSGDUMP_TPRINTF(TEXT("%sLVM_HITTEST(hwnd:%p, pinfo:%p)\n"),
2784 MSGDUMP_PREFIX, (void *)hwnd, (void *)pinfo);
2785 return 0;
2786 }
2787
2788 static __inline BOOL MSGDUMP_API
2789 MD_ListView_OnEnsureVisible(HWND hwnd, INT i, BOOL fPartialOK)
2790 {
2791 MSGDUMP_TPRINTF(TEXT("%sLVM_ENSUREVISIBLE(hwnd:%p, i:%d, fPartialOK:%d)\n"),
2792 MSGDUMP_PREFIX, (void *)hwnd, i, fPartialOK);
2793 return FALSE;
2794 }
2795
2796 static __inline BOOL MSGDUMP_API
2797 MD_ListView_OnScroll(HWND hwnd, INT dx, INT dy)
2798 {
2799 MSGDUMP_TPRINTF(TEXT("%sLVM_SCROLL(hwnd:%p, dx:%d, dy:%d)\n"),
2800 MSGDUMP_PREFIX, (void *)hwnd, dx, dy);
2801 return FALSE;
2802 }
2803
2804 static __inline BOOL MSGDUMP_API
2805 MD_ListView_OnRedrawItems(HWND hwnd, INT iFirst, INT iLast)
2806 {
2807 MSGDUMP_TPRINTF(TEXT("%sLVM_REDRAWITEMS(hwnd:%p, iFirst:%d, iLast:%d)\n"),
2808 MSGDUMP_PREFIX, (void *)hwnd, iFirst, iLast);
2809 return FALSE;
2810 }
2811
2812 static __inline BOOL MSGDUMP_API
2813 MD_ListView_OnArrange(HWND hwnd, UINT code)
2814 {
2815 MSGDUMP_TPRINTF(TEXT("%sLVM_ARRANGE(hwnd:%p, code:%u)\n"),
2816 MSGDUMP_PREFIX, (void *)hwnd, code);
2817 return FALSE;
2818 }
2819
2820 static __inline HWND MSGDUMP_API
2821 MD_ListView_OnEditLabelA(HWND hwnd, INT i)
2822 {
2823 MSGDUMP_TPRINTF(TEXT("%sLVM_EDITLABELA(hwnd:%p, i:%d)\n"),
2824 MSGDUMP_PREFIX, (void *)hwnd, i);
2825 return NULL;
2826 }
2827
2828 static __inline HWND MSGDUMP_API
2829 MD_ListView_OnGetEditControl(HWND hwnd)
2830 {
2831 MSGDUMP_TPRINTF(TEXT("%sLVM_GETEDITCONTROL(hwnd:%p)\n"),
2832 MSGDUMP_PREFIX, (void *)hwnd);
2833 return NULL;
2834 }
2835
2836 static __inline BOOL MSGDUMP_API
2837 MD_ListView_OnGetColumnA(HWND hwnd, INT iCol, LV_COLUMNA *pcol)
2838 {
2839 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
2840 MSGDUMP_PREFIX, (void *)hwnd, iCol, (void *)pcol);
2841 return FALSE;
2842 }
2843
2844 static __inline BOOL MSGDUMP_API
2845 MD_ListView_OnSetColumnA(HWND hwnd, INT iCol, const LV_COLUMNA *pcol)
2846 {
2847 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
2848 MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
2849 return FALSE;
2850 }
2851
2852 static __inline INT MSGDUMP_API
2853 MD_ListView_OnInsertColumnA(HWND hwnd, INT iCol, const LV_COLUMNA *pcol)
2854 {
2855 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
2856 MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
2857 return 0;
2858 }
2859
2860 static __inline BOOL MSGDUMP_API
2861 MD_ListView_OnDeleteColumn(HWND hwnd, INT iCol)
2862 {
2863 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETECOLUMN(hwnd:%p, iCol:%d)\n"),
2864 MSGDUMP_PREFIX, (void *)hwnd, iCol);
2865 return FALSE;
2866 }
2867
2868 static __inline INT MSGDUMP_API
2869 MD_ListView_OnGetColumnWidth(HWND hwnd, INT iCol)
2870 {
2871 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNWIDTH(hwnd:%p, iCol:%d)\n"),
2872 MSGDUMP_PREFIX, (void *)hwnd, iCol);
2873 return 0;
2874 }
2875
2876 static __inline BOOL MSGDUMP_API
2877 MD_ListView_OnSetColumnWidth(HWND hwnd, INT iCol, INT cx)
2878 {
2879 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNWIDTH(hwnd:%p, iCol:%d, cx:%d)\n"),
2880 MSGDUMP_PREFIX, (void *)hwnd, iCol, cx);
2881 return FALSE;
2882 }
2883
2884 static __inline HWND MSGDUMP_API
2885 MD_ListView_OnGetHeader(HWND hwnd)
2886 {
2887 MSGDUMP_TPRINTF(TEXT("%sLVM_GETHEADER(hwnd:%p)\n"),
2888 MSGDUMP_PREFIX, (void *)hwnd);
2889 return NULL;
2890 }
2891
2892 static __inline HIMAGELIST MSGDUMP_API
2893 MD_ListView_OnCreateDragImage(HWND hwnd, INT i, LPPOINT lpptUpLeft)
2894 {
2895 MSGDUMP_TPRINTF(TEXT("%sLVM_CREATEDRAGIMAGE(hwnd:%p, i:%d, lpptUpLeft:%p)\n"),
2896 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lpptUpLeft);
2897 return NULL;
2898 }
2899
2900 static __inline BOOL MSGDUMP_API
2901 MD_ListView_OnGetViewRect(HWND hwnd, RECT *prc)
2902 {
2903 MSGDUMP_TPRINTF(TEXT("%sLVM_GETVIEWRECT(hwnd:%p, prc:%p)\n"),
2904 MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
2905 return FALSE;
2906 }
2907
2908 static __inline COLORREF MSGDUMP_API
2909 MD_ListView_OnGetTextColor(HWND hwnd)
2910 {
2911 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTEXTCOLOR(hwnd:%p)\n"),
2912 MSGDUMP_PREFIX, (void *)hwnd);
2913 return 0;
2914 }
2915
2916 static __inline BOOL MSGDUMP_API
2917 MD_ListView_OnSetTextColor(HWND hwnd, COLORREF clrText)
2918 {
2919 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTEXTCOLOR(hwnd:%p, clrText:0x%08lX)\n"),
2920 MSGDUMP_PREFIX, (void *)hwnd, clrText);
2921 return FALSE;
2922 }
2923
2924 static __inline COLORREF MSGDUMP_API
2925 MD_ListView_OnGetTextBkColor(HWND hwnd)
2926 {
2927 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTEXTBKCOLOR(hwnd:%p)\n"),
2928 MSGDUMP_PREFIX, (void *)hwnd);
2929 return 0;
2930 }
2931
2932 static __inline BOOL MSGDUMP_API
2933 MD_ListView_OnSetTextBkColor(HWND hwnd, COLORREF clrTextBk)
2934 {
2935 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTEXTBKCOLOR(hwnd:%p, clrTextBk:0x%08lX)\n"),
2936 MSGDUMP_PREFIX, (void *)hwnd, clrTextBk);
2937 return FALSE;
2938 }
2939
2940 static __inline INT MSGDUMP_API
2941 MD_ListView_OnGetTopIndex(HWND hwnd)
2942 {
2943 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTOPINDEX(hwnd:%p)\n"),
2944 MSGDUMP_PREFIX, (void *)hwnd);
2945 return 0;
2946 }
2947
2948 static __inline INT MSGDUMP_API
2949 MD_ListView_OnGetCountPerPage(HWND hwnd)
2950 {
2951 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOUNTPERPAGE(hwnd:%p)\n"),
2952 MSGDUMP_PREFIX, (void *)hwnd);
2953 return 0;
2954 }
2955
2956 static __inline BOOL MSGDUMP_API
2957 MD_ListView_OnGetOrigin(HWND hwnd, POINT *ppt)
2958 {
2959 MSGDUMP_TPRINTF(TEXT("%sLVM_GETORIGIN(hwnd:%p, ppt:%p)\n"),
2960 MSGDUMP_PREFIX, (void *)hwnd, (void *)ppt);
2961 return FALSE;
2962 }
2963
2964 static __inline BOOL MSGDUMP_API
2965 MD_ListView_OnUpdate(HWND hwnd, INT i)
2966 {
2967 MSGDUMP_TPRINTF(TEXT("%sLVM_UPDATE(hwnd:%p, i:%d)\n"),
2968 MSGDUMP_PREFIX, (void *)hwnd, i);
2969 return FALSE;
2970 }
2971
2972 static __inline BOOL MSGDUMP_API
2973 MD_ListView_OnSetItemState(HWND hwnd, INT i, LV_ITEM *lvi)
2974 {
2975 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMSTATE(hwnd:%p, i:%d, lvi:%p)\n"),
2976 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lvi);
2977 return FALSE;
2978 }
2979
2980 static __inline UINT MSGDUMP_API
2981 MD_ListView_OnGetItemState(HWND hwnd, INT i, UINT mask)
2982 {
2983 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMSTATE(hwnd:%p, i:%d, mask:%u)\n"),
2984 MSGDUMP_PREFIX, (void *)hwnd, i, mask);
2985 return 0;
2986 }
2987
2988 static __inline INT MSGDUMP_API
2989 MD_ListView_OnGetItemTextA(HWND hwnd, INT i, LV_ITEMA *lvi)
2990 {
2991 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMTEXTA(hwnd:%p, i:%d, lvi:%p)\n"),
2992 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)lvi);
2993 return 0;
2994 }
2995
2996 static __inline BOOL MSGDUMP_API
2997 MD_ListView_OnSetItemTextA(HWND hwnd, INT i, const LV_ITEMA *lvi)
2998 {
2999 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMTEXTA(hwnd:%p, i:%d, lvi:%p)\n"),
3000 MSGDUMP_PREFIX, (void *)hwnd, i, (const void *)lvi);
3001 return FALSE;
3002 }
3003
3004 static __inline void MSGDUMP_API
3005 MD_ListView_OnSetItemCount(HWND hwnd, INT cItems)
3006 {
3007 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMCOUNT(hwnd:%p, cItems:%d)\n"),
3008 MSGDUMP_PREFIX, (void *)hwnd, cItems);
3009 }
3010
3011 static __inline BOOL MSGDUMP_API
3012 MD_ListView_OnSortItems(HWND hwnd, LPARAM lPrm, PFNLVCOMPARE pfnCompare)
3013 {
3014 MSGDUMP_TPRINTF(TEXT("%sLVM_SORTITEMS(hwnd:%p, lPrm:%p, pfnCompare:%p)\n"),
3015 MSGDUMP_PREFIX, (void *)hwnd, (void *)lPrm, *(void **)&pfnCompare);
3016 return FALSE;
3017 }
3018
3019 static __inline void MSGDUMP_API
3020 MD_ListView_OnSetItemPosition32(HWND hwnd, INT i, const POINT *ppt)
3021 {
3022 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMPOSITION32(hwnd:%p, i:%d, ppt:%p)\n"),
3023 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)ppt);
3024 }
3025
3026 static __inline UINT MSGDUMP_API
3027 MD_ListView_OnGetSelectedCount(HWND hwnd)
3028 {
3029 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSELECTEDCOUNT(hwnd:%p)\n"),
3030 MSGDUMP_PREFIX, (void *)hwnd);
3031 return 0;
3032 }
3033
3034 static __inline DWORD MSGDUMP_API
3035 MD_ListView_OnGetItemSpacing(HWND hwnd, BOOL fSmall)
3036 {
3037 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMSPACING(hwnd:%p, fSmall:%d)\n"),
3038 MSGDUMP_PREFIX, (void *)hwnd, fSmall);
3039 return 0;
3040 }
3041
3042 static __inline BOOL MSGDUMP_API
3043 MD_ListView_OnGetISearchStringA(HWND hwnd, LPSTR lpsz)
3044 {
3045 MSGDUMP_TPRINTF(TEXT("%sLVM_GETISEARCHSTRINGA(hwnd:%p, lpsz:%p)\n"),
3046 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsz);
3047 return FALSE;
3048 }
3049
3050 static __inline DWORD MSGDUMP_API
3051 MD_ListView_OnSetIconSpacing(HWND hwnd, INT cx, INT cy)
3052 {
3053 MSGDUMP_TPRINTF(TEXT("%sLVM_SETICONSPACING(hwnd:%p, cx:%d, cy:%d)\n"),
3054 MSGDUMP_PREFIX, (void *)hwnd, cx, cy);
3055 return 0;
3056 }
3057
3058 static __inline DWORD MSGDUMP_API
3059 MD_ListView_OnSetExtendedListViewStyle(HWND hwnd, DWORD dwMask, DWORD dw)
3060 {
3061 MSGDUMP_TPRINTF(TEXT("%sLVM_SETEXTENDEDLISTVIEWSTYLE(hwnd:%p, dwMask:0x%08lX, dw:0x%08lX)\n"),
3062 MSGDUMP_PREFIX, (void *)hwnd, dwMask, dw);
3063 return 0;
3064 }
3065
3066 static __inline DWORD MSGDUMP_API
3067 MD_ListView_OnGetExtendedListViewStyle(HWND hwnd)
3068 {
3069 MSGDUMP_TPRINTF(TEXT("%sLVM_GETEXTENDEDLISTVIEWSTYLE(hwnd:%p)\n"),
3070 MSGDUMP_PREFIX, (void *)hwnd);
3071 return 0;
3072 }
3073
3074 static __inline BOOL MSGDUMP_API
3075 MD_ListView_OnGetSubItemRect(HWND hwnd, INT iItem, RECT *prc)
3076 {
3077 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSUBITEMRECT(hwnd:%p, iItem:%d, prc:%p)\n"),
3078 MSGDUMP_PREFIX, (void *)hwnd, iItem, (void *)prc);
3079 return FALSE;
3080 }
3081
3082 static __inline INT MSGDUMP_API
3083 MD_ListView_OnSubItemHitTest(HWND hwnd, WPARAM wParam, LPLVHITTESTINFO plvhti)
3084 {
3085 MSGDUMP_TPRINTF(TEXT("%sLVM_SUBITEMHITTEST(hwnd:%p, wParam:%p, plvhti:%p)\n"),
3086 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)plvhti);
3087 return 0;
3088 }
3089
3090 static __inline BOOL MSGDUMP_API
3091 MD_ListView_OnSetColumnOrderArray(HWND hwnd, INT iCount, LPINT pi)
3092 {
3093 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNORDERARRAY(hwnd:%p, iCount:%d, pi:%p)\n"),
3094 MSGDUMP_PREFIX, (void *)hwnd, iCount, (void *)pi);
3095 return FALSE;
3096 }
3097
3098 static __inline BOOL MSGDUMP_API
3099 MD_ListView_OnGetColumnOrderArray(HWND hwnd, INT iCount, LPINT pi)
3100 {
3101 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNORDERARRAY(hwnd:%p, iCount:%d, pi:%p)\n"),
3102 MSGDUMP_PREFIX, (void *)hwnd, iCount, (void *)pi);
3103 return FALSE;
3104 }
3105
3106 static __inline INT MSGDUMP_API
3107 MD_ListView_OnSetHotItem(HWND hwnd, INT i)
3108 {
3109 MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOTITEM(hwnd:%p, i:%d)\n"),
3110 MSGDUMP_PREFIX, (void *)hwnd, i);
3111 return 0;
3112 }
3113
3114 static __inline INT MSGDUMP_API
3115 MD_ListView_OnGetHotItem(HWND hwnd)
3116 {
3117 MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOTITEM(hwnd:%p)\n"),
3118 MSGDUMP_PREFIX, (void *)hwnd);
3119 return 0;
3120 }
3121
3122 static __inline HCURSOR MSGDUMP_API
3123 MD_ListView_OnSetHotCursor(HWND hwnd, HCURSOR hcur)
3124 {
3125 MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOTCURSOR(hwnd:%p, hcur:%p)\n"),
3126 MSGDUMP_PREFIX, (void *)hwnd, (void *)hcur);
3127 return NULL;
3128 }
3129
3130 static __inline HCURSOR MSGDUMP_API
3131 MD_ListView_OnGetHotCursor(HWND hwnd)
3132 {
3133 MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOTCURSOR(hwnd:%p)\n"),
3134 MSGDUMP_PREFIX, (void *)hwnd);
3135 return NULL;
3136 }
3137
3138 static __inline DWORD MSGDUMP_API
3139 MD_ListView_OnApproximateViewRect(HWND hwnd, INT iWidth, INT iHeight, INT iCount)
3140 {
3141 MSGDUMP_TPRINTF(TEXT("%sLVM_APPROXIMATEVIEWRECT(hwnd:%p, iWidth:%d, iHeight:%d, iCount:%d)\n"),
3142 MSGDUMP_PREFIX, (void *)hwnd, iWidth, iHeight, iCount);
3143 return 0;
3144 }
3145
3146 static __inline BOOL MSGDUMP_API
3147 MD_ListView_OnSetWorkAreas(HWND hwnd, INT nWorkAreas, const RECT *prc)
3148 {
3149 MSGDUMP_TPRINTF(TEXT("%sLVM_SETWORKAREAS(hwnd:%p, nWorkAreas:%d, prc:%p)\n"),
3150 MSGDUMP_PREFIX, (void *)hwnd, nWorkAreas, (void *)prc);
3151 return FALSE;
3152 }
3153
3154 static __inline INT MSGDUMP_API
3155 MD_ListView_OnGetSelectionMark(HWND hwnd)
3156 {
3157 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSELECTIONMARK(hwnd:%p)\n"),
3158 MSGDUMP_PREFIX, (void *)hwnd);
3159 return 0;
3160 }
3161
3162 static __inline INT MSGDUMP_API
3163 MD_ListView_OnSetSelectionMark(HWND hwnd, INT i)
3164 {
3165 MSGDUMP_TPRINTF(TEXT("%sLVM_SETSELECTIONMARK(hwnd:%p, i:%d)\n"),
3166 MSGDUMP_PREFIX, (void *)hwnd, i);
3167 return 0;
3168 }
3169
3170 static __inline BOOL MSGDUMP_API
3171 MD_ListView_OnSetBkImageA(HWND hwnd, const LVBKIMAGEA *plvbki)
3172 {
3173 MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKIMAGEA(hwnd:%p, plvbki:%p)\n"),
3174 MSGDUMP_PREFIX, (void *)hwnd, (const void *)plvbki);
3175 return FALSE;
3176 }
3177
3178 static __inline BOOL MSGDUMP_API
3179 MD_ListView_OnGetBkImageA(HWND hwnd, LVBKIMAGEA *plvbki)
3180 {
3181 MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKIMAGEA(hwnd:%p, plvbki:%p)\n"),
3182 MSGDUMP_PREFIX, (void *)hwnd, (void *)plvbki);
3183 return FALSE;
3184 }
3185
3186 static __inline BOOL MSGDUMP_API
3187 MD_ListView_OnGetWorkAreas(HWND hwnd, INT nWorkAreas, RECT *prc)
3188 {
3189 MSGDUMP_TPRINTF(TEXT("%sLVM_GETWORKAREAS(hwnd:%p, nWorkAreas:%d, prc:%p)\n"),
3190 MSGDUMP_PREFIX, (void *)hwnd, nWorkAreas, (void *)prc);
3191 return FALSE;
3192 }
3193
3194 static __inline DWORD MSGDUMP_API
3195 MD_ListView_OnSetHoverTime(HWND hwnd, DWORD dwHoverTimeMs)
3196 {
3197 MSGDUMP_TPRINTF(TEXT("%sLVM_SETHOVERTIME(hwnd:%p, dwHoverTimeMs:0x%08lX)\n"),
3198 MSGDUMP_PREFIX, (void *)hwnd, dwHoverTimeMs);
3199 return 0;
3200 }
3201
3202 static __inline DWORD MSGDUMP_API
3203 MD_ListView_OnGetHoverTime(HWND hwnd)
3204 {
3205 MSGDUMP_TPRINTF(TEXT("%sLVM_GETHOVERTIME(hwnd:%p)\n"),
3206 MSGDUMP_PREFIX, (void *)hwnd);
3207 return 0;
3208 }
3209
3210 static __inline BOOL MSGDUMP_API
3211 MD_ListView_OnGetNumberOfWorkAreas(HWND hwnd, UINT *pnWorkAreas)
3212 {
3213 MSGDUMP_TPRINTF(TEXT("%sLVM_GETNUMBEROFWORKAREAS(hwnd:%p, pnWorkAreas:%p)\n"),
3214 MSGDUMP_PREFIX, (void *)hwnd, (void *)pnWorkAreas);
3215 return FALSE;
3216 }
3217
3218 static __inline HWND MSGDUMP_API
3219 MD_ListView_OnSetToolTips(HWND hwnd, HWND hwndNewHwnd)
3220 {
3221 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTOOLTIPS(hwnd:%p, hwndNewHwnd:%p)\n"),
3222 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewHwnd);
3223 return NULL;
3224 }
3225
3226 static __inline BOOL MSGDUMP_API
3227 MD_ListView_OnGetItemW(HWND hwnd, LV_ITEMW *pitem)
3228 {
3229 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMW(hwnd:%p, pitem:%p)\n"),
3230 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
3231 return FALSE;
3232 }
3233
3234 static __inline BOOL MSGDUMP_API
3235 MD_ListView_OnSetItemW(HWND hwnd, const LV_ITEMW *pitem)
3236 {
3237 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMW(hwnd:%p, pitem:%p)\n"),
3238 MSGDUMP_PREFIX, (void *)hwnd, (const void *)pitem);
3239 return FALSE;
3240 }
3241
3242 static __inline INT MSGDUMP_API
3243 MD_ListView_OnInsertItemW(HWND hwnd, const LV_ITEMW *pitem)
3244 {
3245 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTITEMW(hwnd:%p, pitem:%p)\n"),
3246 MSGDUMP_PREFIX, (void *)hwnd, (const void *)pitem);
3247 return 0;
3248 }
3249
3250 static __inline HWND MSGDUMP_API
3251 MD_ListView_OnGetToolTips(HWND hwnd)
3252 {
3253 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTOOLTIPS(hwnd:%p)\n"),
3254 MSGDUMP_PREFIX, (void *)hwnd);
3255 return NULL;
3256 }
3257
3258 static __inline BOOL MSGDUMP_API
3259 MD_ListView_OnSortItemsEx(HWND hwnd, PFNLVCOMPARE pfnCompare, LPARAM lPrm)
3260 {
3261 MSGDUMP_TPRINTF(TEXT("%sLVM_SORTITEMSEX(hwnd:%p, pfnCompare:%p, lPrm:%p)\n"),
3262 MSGDUMP_PREFIX, (void *)hwnd, *(void **)&pfnCompare, (void *)lPrm);
3263 return FALSE;
3264 }
3265
3266 static __inline INT MSGDUMP_API
3267 MD_ListView_OnFindItemW(HWND hwnd, INT iStart, const LV_FINDINFOW *plvfi)
3268 {
3269 MSGDUMP_TPRINTF(TEXT("%sLVM_FINDITEMW(hwnd:%p, iStart:%d, plvfi:%p)\n"),
3270 MSGDUMP_PREFIX, (void *)hwnd, iStart, (void *)plvfi);
3271 return 0;
3272 }
3273
3274 static __inline INT MSGDUMP_API
3275 MD_ListView_OnGetStringWidthW(HWND hwnd, LPCWSTR psz)
3276 {
3277 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSTRINGWIDTHW(hwnd:%p, psz:%ls)\n"),
3278 MSGDUMP_PREFIX, (void *)hwnd, psz);
3279 return 0;
3280 }
3281
3282 #if NTDDI_VERSION >= 0x06000000
3283 static __inline UINT MSGDUMP_API
3284 MD_ListView_OnGetGroupState(HWND hwnd, DWORD dwGroupId, DWORD dwMask)
3285 {
3286 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPSTATE(hwnd:%p, dwGroupId:0x%08lX, dwMask:0x%08lX)\n"),
3287 MSGDUMP_PREFIX, (void *)hwnd, dwGroupId, dwMask);
3288 return 0;
3289 }
3290
3291 static __inline INT MSGDUMP_API
3292 MD_ListView_OnGetFocusedGroup(HWND hwnd)
3293 {
3294 MSGDUMP_TPRINTF(TEXT("%sLVM_GETFOCUSEDGROUP(hwnd:%p)\n"),
3295 MSGDUMP_PREFIX, (void *)hwnd);
3296 return 0;
3297 }
3298 #endif
3299
3300 static __inline INT MSGDUMP_API
3301 MD_ListView_OnGetColumnW(HWND hwnd, INT iCol)
3302 {
3303 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNW(hwnd:%p, iCol:%d)\n"),
3304 MSGDUMP_PREFIX, (void *)hwnd, iCol);
3305 return 0;
3306 }
3307
3308 static __inline BOOL MSGDUMP_API
3309 MD_ListView_OnSetColumnW(HWND hwnd, INT iCol, INT cx)
3310 {
3311 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNW(hwnd:%p, iCol:%d, cx:%d)\n"),
3312 MSGDUMP_PREFIX, (void *)hwnd, iCol, cx);
3313 return 0;
3314 }
3315
3316 static __inline INT MSGDUMP_API
3317 MD_ListView_OnInsertColumnW(HWND hwnd, INT iCol, const LV_COLUMNW *pcol)
3318 {
3319 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTCOLUMNW(hwnd:%p, iCol:%d, pcol:%p)\n"),
3320 MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3321 return 0;
3322 }
3323
3324 #if NTDDI_VERSION >= 0x06000000
3325 static __inline BOOL MSGDUMP_API
3326 MD_ListView_OnGetGroupRect(HWND hwnd, INT iGroupId, RECT *prc)
3327 {
3328 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPRECT(hwnd:%p, iGroupId:%d, prc:%p)\n"),
3329 MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (void *)prc);
3330 return FALSE;
3331 }
3332 #endif
3333
3334 static __inline INT MSGDUMP_API
3335 MD_ListView_OnGetItemTextW(HWND hwnd, INT i, LV_ITEMW *pitem)
3336 {
3337 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMTEXTW(hwnd:%p, i:%d, pitem:%p)\n"),
3338 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)pitem);
3339 return 0;
3340 }
3341
3342 static __inline INT MSGDUMP_API
3343 MD_ListView_OnSetItemTextW(HWND hwnd, INT i, const LV_ITEMW *pitem)
3344 {
3345 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMTEXTW(hwnd:%p, i:%d, pitem:%p)\n"),
3346 MSGDUMP_PREFIX, (void *)hwnd, i, (const void *)pitem);
3347 return 0;
3348 }
3349
3350 static __inline BOOL MSGDUMP_API
3351 MD_ListView_OnGetISearchStringW(HWND hwnd, LPWSTR lpsz)
3352 {
3353 MSGDUMP_TPRINTF(TEXT("%sLVM_GETISEARCHSTRINGW(hwnd:%p, lpsz:%p)\n"),
3354 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsz);
3355 return FALSE;
3356 }
3357
3358 static __inline HWND MSGDUMP_API
3359 MD_ListView_OnEditLabelW(HWND hwnd, INT i)
3360 {
3361 MSGDUMP_TPRINTF(TEXT("%sLVM_EDITLABELW(hwnd:%p, i:%d)\n"),
3362 MSGDUMP_PREFIX, (void *)hwnd, i);
3363 return NULL;
3364 }
3365
3366 static __inline BOOL MSGDUMP_API
3367 MD_ListView_OnSetBkImageW(HWND hwnd, const LVBKIMAGEW *plvbki)
3368 {
3369 MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKIMAGEW(hwnd:%p, plvbki:%p)\n"),
3370 MSGDUMP_PREFIX, (void *)hwnd, (const void *)plvbki);
3371 return FALSE;
3372 }
3373
3374 static __inline BOOL MSGDUMP_API
3375 MD_ListView_OnGetBkImageW(HWND hwnd, LVBKIMAGEW *plvbki)
3376 {
3377 MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKIMAGEW(hwnd:%p, plvbki:%p)\n"),
3378 MSGDUMP_PREFIX, (void *)hwnd, (void *)plvbki);
3379 return FALSE;
3380 }
3381
3382 static __inline void MSGDUMP_API
3383 MD_ListView_OnSetSelectedColumn(HWND hwnd, INT iCol)
3384 {
3385 MSGDUMP_TPRINTF(TEXT("%sLVM_SETSELECTEDCOLUMN(hwnd:%p, iCol:%d)\n"),
3386 MSGDUMP_PREFIX, (void *)hwnd, iCol);
3387 }
3388
3389 static __inline LRESULT MSGDUMP_API
3390 MD_ListView_OnSetTileWidth(HWND hwnd, WPARAM wParam, LPARAM lParam)
3391 {
3392 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEWIDTH(hwnd:%p, wParam:%p, lParam:%p)\n"),
3393 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
3394 return 0;
3395 }
3396
3397 static __inline DWORD MSGDUMP_API
3398 MD_ListView_OnSetView(HWND hwnd, DWORD iView)
3399 {
3400 MSGDUMP_TPRINTF(TEXT("%sLVM_SETVIEW(hwnd:%p, iView:0x%08lX)\n"),
3401 MSGDUMP_PREFIX, (void *)hwnd, iView);
3402 return 0;
3403 }
3404
3405 static __inline DWORD MSGDUMP_API
3406 MD_ListView_OnGetView(HWND hwnd)
3407 {
3408 MSGDUMP_TPRINTF(TEXT("%sLVM_GETVIEW(hwnd:%p)\n"),
3409 MSGDUMP_PREFIX, (void *)hwnd);
3410 return 0;
3411 }
3412
3413 #if NTDDI_VERSION >= 0x06000000
3414 static __inline INT MSGDUMP_API
3415 MD_ListView_OnInsertGroup(HWND hwnd, INT iGroupId, const LVGROUP *pGroup)
3416 {
3417 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTGROUP(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3418 MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (const void *)pGroup);
3419 return 0;
3420 }
3421
3422 static __inline INT MSGDUMP_API
3423 MD_ListView_OnSetGroupInfo(HWND hwnd, INT iGroupId, const LVGROUP *pGroup)
3424 {
3425 MSGDUMP_TPRINTF(TEXT("%sLVM_SETGROUPINFO(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3426 MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (const void *)pGroup);
3427 return 0;
3428 }
3429
3430 static __inline INT MSGDUMP_API
3431 MD_ListView_OnGetGroupInfo(HWND hwnd, INT iGroupId, LVGROUP *pGroup)
3432 {
3433 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPINFO(hwnd:%p, iGroupId:%d, pGroup:%p)\n"),
3434 MSGDUMP_PREFIX, (void *)hwnd, iGroupId, (void *)pGroup);
3435 return 0;
3436 }
3437
3438 static __inline INT MSGDUMP_API
3439 MD_ListView_OnRemoveGroup(HWND hwnd, INT iGroupId)
3440 {
3441 MSGDUMP_TPRINTF(TEXT("%sLVM_REMOVEGROUP(hwnd:%p, iGroupId:%d)\n"),
3442 MSGDUMP_PREFIX, (void *)hwnd, iGroupId);
3443 return 0;
3444 }
3445
3446 static __inline LRESULT MSGDUMP_API
3447 MD_ListView_OnMoveGroup(HWND hwnd, WPARAM wParam, LPARAM lParam)
3448 {
3449 MSGDUMP_TPRINTF(TEXT("%sLVM_MOVEGROUP(hwnd:%p, wParam:%p, lParam:%p)\n"),
3450 MSGDUMP_PREFIX, (void *)hwnd, wParam, lParam);
3451 return 0;
3452 }
3453
3454 static __inline INT MSGDUMP_API
3455 MD_ListView_OnGetGroupCount(HWND hwnd)
3456 {
3457 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPCOUNT(hwnd:%p)\n"),
3458 MSGDUMP_PREFIX, (void *)hwnd);
3459 return 0;
3460 }
3461
3462 static __inline BOOL MSGDUMP_API
3463 MD_ListView_OnGetGroupInfoByIndex(HWND hwnd, INT iIndex, LVGROUP *pgrp)
3464 {
3465 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPINFOBYINDEX(hwnd:%p, iIndex:%d, pgrp:%p)\n"),
3466 MSGDUMP_PREFIX, (void *)hwnd, iIndex, (void *)pgrp);
3467 return FALSE;
3468 }
3469
3470 static __inline LRESULT MSGDUMP_API
3471 MD_ListView_OnMoveItemToGroup(HWND hwnd, WPARAM wParam, LPARAM lParam)
3472 {
3473 MSGDUMP_TPRINTF(TEXT("%sLVM_MOVEITEMTOGROUP(hwnd:%p, wParam:%p, lParam:%p)\n"),
3474 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
3475 return 0;
3476 }
3477
3478 static __inline void MSGDUMP_API
3479 MD_ListView_OnSetGroupMetrics(HWND hwnd, const LVGROUPMETRICS *pGroupMetrics)
3480 {
3481 MSGDUMP_TPRINTF(TEXT("%sLVM_SETGROUPMETRICS(hwnd:%p, pGroupMetrics:%p)\n"),
3482 MSGDUMP_PREFIX, (void *)hwnd, (const void *)pGroupMetrics);
3483 }
3484
3485 static __inline void MSGDUMP_API
3486 MD_ListView_OnGetGroupMetrics(HWND hwnd, LVGROUPMETRICS *pGroupMetrics)
3487 {
3488 MSGDUMP_TPRINTF(TEXT("%sLVM_GETGROUPMETRICS(hwnd:%p, pGroupMetrics:%p)\n"),
3489 MSGDUMP_PREFIX, (void *)hwnd, (void *)pGroupMetrics);
3490 }
3491
3492 static __inline INT MSGDUMP_API
3493 MD_ListView_OnEnableGroupView(HWND hwnd, BOOL fEnable)
3494 {
3495 MSGDUMP_TPRINTF(TEXT("%sLVM_ENABLEGROUPVIEW(hwnd:%p, fEnable:%d)\n"),
3496 MSGDUMP_PREFIX, (void *)hwnd, fEnable);
3497 return 0;
3498 }
3499
3500 static __inline BOOL MSGDUMP_API
3501 MD_ListView_OnSortGroups(HWND hwnd, PFNLVGROUPCOMPARE pfnGroupCompate, void *plv)
3502 {
3503 MSGDUMP_TPRINTF(TEXT("%sLVM_SORTGROUPS(hwnd:%p, pfnGroupCompate:%p, plv:%p)\n"),
3504 MSGDUMP_PREFIX, (void *)hwnd, *(void **)&pfnGroupCompate, plv);
3505 return FALSE;
3506 }
3507
3508 static __inline void MSGDUMP_API
3509 MD_ListView_OnInsertGroupSorted(HWND hwnd, const LVINSERTGROUPSORTED *structInsert)
3510 {
3511 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTGROUPSORTED(hwnd:%p, structInsert:%p)\n"),
3512 MSGDUMP_PREFIX, (void *)hwnd, (void *)structInsert);
3513 }
3514
3515 static __inline void MSGDUMP_API
3516 MD_ListView_OnRemoveAllGroups(HWND hwnd)
3517 {
3518 MSGDUMP_TPRINTF(TEXT("%sLVM_REMOVEALLGROUPS(hwnd:%p)\n"),
3519 MSGDUMP_PREFIX, (void *)hwnd);
3520 }
3521
3522 static __inline BOOL MSGDUMP_API
3523 MD_ListView_OnHasGroup(HWND hwnd, DWORD dwGroupId)
3524 {
3525 MSGDUMP_TPRINTF(TEXT("%sLVM_HASGROUP(hwnd:%p, dwGroupId:0x%08lX)\n"),
3526 MSGDUMP_PREFIX, (void *)hwnd, dwGroupId);
3527 return FALSE;
3528 }
3529 #endif
3530
3531 static __inline BOOL MSGDUMP_API
3532 MD_ListView_OnSetTileViewInfo(HWND hwnd, const LVTILEVIEWINFO *ptvi)
3533 {
3534 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEVIEWINFO(hwnd:%p, ptvi:%p)\n"),
3535 MSGDUMP_PREFIX, (void *)hwnd, (const void *)ptvi);
3536 return FALSE;
3537 }
3538
3539 static __inline void MSGDUMP_API
3540 MD_ListView_OnGetTileViewInfo(HWND hwnd, LVTILEVIEWINFO *ptvi)
3541 {
3542 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTILEVIEWINFO(hwnd:%p, ptvi:%p)\n"),
3543 MSGDUMP_PREFIX, (void *)hwnd, (void *)ptvi);
3544 }
3545
3546 static __inline BOOL MSGDUMP_API
3547 MD_ListView_OnSetTileInfo(HWND hwnd, const LVTILEINFO *pti)
3548 {
3549 MSGDUMP_TPRINTF(TEXT("%sLVM_SETTILEINFO(hwnd:%p, pti:%p)\n"),
3550 MSGDUMP_PREFIX, (void *)hwnd, (const void *)pti);
3551 return FALSE;
3552 }
3553
3554 static __inline void MSGDUMP_API
3555 MD_ListView_OnGetTileInfo(HWND hwnd, LVTILEINFO *pti)
3556 {
3557 MSGDUMP_TPRINTF(TEXT("%sLVM_GETTILEINFO(hwnd:%p, pti:%p)\n"),
3558 MSGDUMP_PREFIX, (void *)hwnd, (void *)pti);
3559 }
3560
3561 static __inline BOOL MSGDUMP_API
3562 MD_ListView_OnSetInsertMark(HWND hwnd, const LVINSERTMARK *lvim)
3563 {
3564 MSGDUMP_TPRINTF(TEXT("%sLVM_SETINSERTMARK(hwnd:%p, lvim:%p)