[SDK][INCLUDE] Update msgdump.h and winxx.h
[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 15 /* Version 15 */
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 LPCTSTR MSGDUMP_API
494 MD_GetNotifyCode(HWND hwndFrom, UINT code)
495 {
496 TCHAR szClass[24], sz[2];
497 static TCHAR s_szText[64];
498
499 switch (code)
500 {
501 case NM_OUTOFMEMORY: return TEXT("NM_OUTOFMEMORY");
502 case NM_CLICK: return TEXT("NM_CLICK");
503 case NM_DBLCLK: return TEXT("NM_DBLCLK");
504 case NM_RETURN: return TEXT("NM_RETURN");
505 case NM_RCLICK: return TEXT("NM_RCLICK");
506 case NM_RDBLCLK: return TEXT("NM_RDBLCLK");
507 case NM_SETFOCUS: return TEXT("NM_SETFOCUS");
508 case NM_KILLFOCUS: return TEXT("NM_KILLFOCUS");
509 #if (_WIN32_IE >= 0x0300)
510 case NM_CUSTOMDRAW: return TEXT("NM_CUSTOMDRAW");
511 case NM_HOVER: return TEXT("NM_HOVER");
512 #endif
513 #if (_WIN32_IE >= 0x0400)
514 case NM_NCHITTEST: return TEXT("NM_NCHITTEST");
515 case NM_KEYDOWN: return TEXT("NM_KEYDOWN");
516 case NM_RELEASEDCAPTURE: return TEXT("NM_RELEASEDCAPTURE");
517 case NM_SETCURSOR: return TEXT("NM_SETCURSOR");
518 case NM_CHAR: return TEXT("NM_CHAR");
519 #endif
520 #if (_WIN32_IE >= 0x0401)
521 case NM_TOOLTIPSCREATED: return TEXT("NM_TOOLTIPSCREATED");
522 #endif
523 #if (_WIN32_IE >= 0x0500)
524 case NM_LDOWN: return TEXT("NM_LDOWN");
525 case NM_RDOWN: return TEXT("NM_RDOWN");
526 #endif
527 }
528
529 szClass[0] = 0;
530 GetClassName(hwndFrom, szClass, ARRAYSIZE(szClass));
531 sz[0] = szClass[0];
532 sz[1] = 0;
533 CharUpper(sz);
534
535 if (sz[0] == TEXT('R') && lstrcmpi(szClass, RICHEDIT_CLASS) == 0)
536 {
537 switch (code)
538 {
539 case EN_MSGFILTER: return TEXT("EN_MSGFILTER");
540 case EN_REQUESTRESIZE: return TEXT("EN_REQUESTRESIZE");
541 case EN_SELCHANGE: return TEXT("EN_SELCHANGE");
542 case EN_DROPFILES: return TEXT("EN_DROPFILES");
543 case EN_PROTECTED: return TEXT("EN_PROTECTED");
544 case EN_CORRECTTEXT: return TEXT("EN_CORRECTTEXT");
545 case EN_STOPNOUNDO: return TEXT("EN_STOPNOUNDO");
546 case EN_IMECHANGE: return TEXT("EN_IMECHANGE");
547 case EN_SAVECLIPBOARD: return TEXT("EN_SAVECLIPBOARD");
548 case EN_OLEOPFAILED: return TEXT("EN_OLEOPFAILED");
549 case EN_OBJECTPOSITIONS: return TEXT("EN_OBJECTPOSITIONS");
550 case EN_LINK: return TEXT("EN_LINK");
551 case EN_DRAGDROPDONE: return TEXT("EN_DRAGDROPDONE");
552 case EN_PARAGRAPHEXPANDED: return TEXT("EN_PARAGRAPHEXPANDED");
553 case EN_PAGECHANGE: return TEXT("EN_PAGECHANGE");
554 case EN_LOWFIRTF: return TEXT("EN_LOWFIRTF");
555 case EN_ALIGNLTR: return TEXT("EN_ALIGNLTR");
556 case EN_ALIGNRTL: return TEXT("EN_ALIGNRTL");
557 #if _RICHEDIT_VER >= 0x0800
558 case EN_CLIPFORMAT: return TEXT("EN_CLIPFORMAT");
559 case EN_STARTCOMPOSITION: return TEXT("EN_STARTCOMPOSITION");
560 case EN_ENDCOMPOSITION: return TEXT("EN_ENDCOMPOSITION");
561 #endif
562 }
563 }
564 else if (sz[0] == TEXT('S') && lstrcmpi(szClass, WC_LISTVIEW) == 0)
565 {
566 switch (code)
567 {
568 case LVN_ITEMCHANGING: return TEXT("LVN_ITEMCHANGING");
569 case LVN_ITEMCHANGED: return TEXT("LVN_ITEMCHANGED");
570 case LVN_INSERTITEM: return TEXT("LVN_INSERTITEM");
571 case LVN_DELETEITEM: return TEXT("LVN_DELETEITEM");
572 case LVN_DELETEALLITEMS: return TEXT("LVN_DELETEALLITEMS");
573 case LVN_BEGINLABELEDITA: return TEXT("LVN_BEGINLABELEDITA");
574 case LVN_BEGINLABELEDITW: return TEXT("LVN_BEGINLABELEDITW");
575 case LVN_ENDLABELEDITA: return TEXT("LVN_ENDLABELEDITA");
576 case LVN_ENDLABELEDITW: return TEXT("LVN_ENDLABELEDITW");
577 case LVN_COLUMNCLICK: return TEXT("LVN_COLUMNCLICK");
578 case LVN_BEGINDRAG: return TEXT("LVN_BEGINDRAG");
579 case LVN_BEGINRDRAG: return TEXT("LVN_BEGINRDRAG");
580 case LVN_ODCACHEHINT: return TEXT("LVN_ODCACHEHINT");
581 case LVN_ODFINDITEMA: return TEXT("LVN_ODFINDITEMA");
582 case LVN_ODFINDITEMW: return TEXT("LVN_ODFINDITEMW");
583 case LVN_ITEMACTIVATE: return TEXT("LVN_ITEMACTIVATE");
584 case LVN_ODSTATECHANGED: return TEXT("LVN_ODSTATECHANGED");
585 case LVN_HOTTRACK: return TEXT("LVN_HOTTRACK");
586 case LVN_GETDISPINFOA: return TEXT("LVN_GETDISPINFOA");
587 case LVN_GETDISPINFOW: return TEXT("LVN_GETDISPINFOW");
588 case LVN_SETDISPINFOA: return TEXT("LVN_SETDISPINFOA");
589 case LVN_SETDISPINFOW: return TEXT("LVN_SETDISPINFOW");
590 case LVN_KEYDOWN: return TEXT("LVN_KEYDOWN");
591 case LVN_MARQUEEBEGIN: return TEXT("LVN_MARQUEEBEGIN");
592 case LVN_GETINFOTIPA: return TEXT("LVN_GETINFOTIPA");
593 case LVN_GETINFOTIPW: return TEXT("LVN_GETINFOTIPW");
594 case LVN_INCREMENTALSEARCHA: return TEXT("LVN_INCREMENTALSEARCHA");
595 case LVN_INCREMENTALSEARCHW: return TEXT("LVN_INCREMENTALSEARCHW");
596 #if NTDDI_VERSION >= 0x06000000
597 case LVN_COLUMNDROPDOWN: return TEXT("LVN_COLUMNDROPDOWN");
598 case LVN_COLUMNOVERFLOWCLICK: return TEXT("LVN_COLUMNOVERFLOWCLICK");
599 #endif
600 case LVN_BEGINSCROLL: return TEXT("LVN_BEGINSCROLL");
601 case LVN_ENDSCROLL: return TEXT("LVN_ENDSCROLL");
602 #if NTDDI_VERSION >= 0x06000000
603 case LVN_LINKCLICK: return TEXT("LVN_LINKCLICK");
604 case LVN_GETEMPTYMARKUP: return TEXT("LVN_GETEMPTYMARKUP");
605 #endif
606 }
607 }
608 else if (sz[0] == TEXT('S') && lstrcmpi(szClass, WC_TREEVIEW) == 0)
609 {
610 switch (code)
611 {
612 case TVN_SELCHANGINGA: return TEXT("TVN_SELCHANGINGA");
613 case TVN_SELCHANGINGW: return TEXT("TVN_SELCHANGINGW");
614 case TVN_SELCHANGEDA: return TEXT("TVN_SELCHANGEDA");
615 case TVN_SELCHANGEDW: return TEXT("TVN_SELCHANGEDW");
616 case TVN_GETDISPINFOA: return TEXT("TVN_GETDISPINFOA");
617 case TVN_GETDISPINFOW: return TEXT("TVN_GETDISPINFOW");
618 case TVN_SETDISPINFOA: return TEXT("TVN_SETDISPINFOA");
619 case TVN_SETDISPINFOW: return TEXT("TVN_SETDISPINFOW");
620 case TVN_ITEMEXPANDINGA: return TEXT("TVN_ITEMEXPANDINGA");
621 case TVN_ITEMEXPANDINGW: return TEXT("TVN_ITEMEXPANDINGW");
622 case TVN_ITEMEXPANDEDA: return TEXT("TVN_ITEMEXPANDEDA");
623 case TVN_ITEMEXPANDEDW: return TEXT("TVN_ITEMEXPANDEDW");
624 case TVN_BEGINDRAGA: return TEXT("TVN_BEGINDRAGA");
625 case TVN_BEGINDRAGW: return TEXT("TVN_BEGINDRAGW");
626 case TVN_BEGINRDRAGA: return TEXT("TVN_BEGINRDRAGA");
627 case TVN_BEGINRDRAGW: return TEXT("TVN_BEGINRDRAGW");
628 case TVN_DELETEITEMA: return TEXT("TVN_DELETEITEMA");
629 case TVN_DELETEITEMW: return TEXT("TVN_DELETEITEMW");
630 case TVN_BEGINLABELEDITA: return TEXT("TVN_BEGINLABELEDITA");
631 case TVN_BEGINLABELEDITW: return TEXT("TVN_BEGINLABELEDITW");
632 case TVN_ENDLABELEDITA: return TEXT("TVN_ENDLABELEDITA");
633 case TVN_ENDLABELEDITW: return TEXT("TVN_ENDLABELEDITW");
634 case TVN_KEYDOWN: return TEXT("TVN_KEYDOWN");
635 case TVN_GETINFOTIPA: return TEXT("TVN_GETINFOTIPA");
636 case TVN_GETINFOTIPW: return TEXT("TVN_GETINFOTIPW");
637 case TVN_SINGLEEXPAND: return TEXT("TVN_SINGLEEXPAND");
638 #ifdef TVN_ITEMCHANGINGA
639 case TVN_ITEMCHANGINGA: return TEXT("TVN_ITEMCHANGINGA");
640 case TVN_ITEMCHANGINGW: return TEXT("TVN_ITEMCHANGINGW");
641 case TVN_ITEMCHANGEDA: return TEXT("TVN_ITEMCHANGEDA");
642 case TVN_ITEMCHANGEDW: return TEXT("TVN_ITEMCHANGEDW");
643 case TVN_ASYNCDRAW: return TEXT("TVN_ASYNCDRAW");
644 #endif
645 }
646 }
647
648 StringCbPrintf(s_szText, sizeof(s_szText), TEXT("%u"), code);
649 return s_szText;
650 }
651
652 static __inline LRESULT MSGDUMP_API
653 MD_OnNotify(HWND hwnd, int idFrom, LPNMHDR pnmhdr)
654 {
655 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFY(hwnd:%p, idFrom:%d, pnmhdr:%p, hwndFrom:%p, pnmhdr->idFrom:%d, code:%s)\n"),
656 MSGDUMP_PREFIX, (void *)hwnd, idFrom, (void *)pnmhdr,
657 pnmhdr->hwndFrom, pnmhdr->idFrom,
658 MD_GetNotifyCode(pnmhdr->hwndFrom, pnmhdr->code));
659 return 0;
660 }
661
662 static __inline void MSGDUMP_API
663 MD_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos)
664 {
665 MSGDUMP_TPRINTF(TEXT("%sWM_CONTEXTMENU(hwnd:%p, hwndContext:%p, xPos:%u, yPos:%u)\n"),
666 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndContext, xPos, yPos);
667 }
668
669 static __inline void MSGDUMP_API
670 MD_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen)
671 {
672 MSGDUMP_TPRINTF(TEXT("%sWM_DISPLAYCHANGE(hwnd:%p, bitsPerPixel:%u, cxScreen:%u, cyScreen:%u)\n"),
673 MSGDUMP_PREFIX, (void *)hwnd, bitsPerPixel, cxScreen, cyScreen);
674 }
675
676 static __inline BOOL MSGDUMP_API
677 MD_OnNCCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
678 {
679 MSGDUMP_TPRINTF(TEXT("%sWM_NCCREATE(hwnd:%p, lpCreateStruct:%p)\n"),
680 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
681 return FALSE;
682 }
683
684 static __inline void MSGDUMP_API
685 MD_OnNCDestroy(HWND hwnd)
686 {
687 MSGDUMP_TPRINTF(TEXT("%sWM_NCDESTROY(hwnd:%p)\n"),
688 MSGDUMP_PREFIX, (void *)hwnd);
689 }
690
691 static __inline UINT MSGDUMP_API
692 MD_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp)
693 {
694 MSGDUMP_TPRINTF(TEXT("%sWM_NCCALCSIZE(hwnd:%p, fCalcValidRects:%d, lpcsp:%p)\n"),
695 MSGDUMP_PREFIX, (void *)hwnd, fCalcValidRects, (void *)lpcsp);
696 return 0;
697 }
698
699 static __inline UINT MSGDUMP_API
700 MD_OnNCHitTest(HWND hwnd, int x, int y)
701 {
702 MSGDUMP_TPRINTF(TEXT("%sWM_NCHITTEST(hwnd:%p, x:%d, y:%d)\n"),
703 MSGDUMP_PREFIX, (void *)hwnd, x, y);
704 return 0;
705 }
706
707 static __inline void MSGDUMP_API
708 MD_OnNCPaint(HWND hwnd, HRGN hrgn)
709 {
710 MSGDUMP_TPRINTF(TEXT("%sWM_NCPAINT(hwnd:%p, hrgn:%p)\n"),
711 MSGDUMP_PREFIX, (void *)hwnd, (void *)hrgn);
712 }
713
714 static __inline BOOL MSGDUMP_API
715 MD_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized)
716 {
717 MSGDUMP_TPRINTF(TEXT("%sWM_NCACTIVATE(hwnd:%p, fActive:%d, hwndActDeact:%p, fMinimized:%d)\n"),
718 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActDeact, fMinimized);
719 return FALSE;
720 }
721
722 static __inline UINT MSGDUMP_API
723 MD_OnGetDlgCode(HWND hwnd, LPMSG lpmsg)
724 {
725 MSGDUMP_TPRINTF(TEXT("%sWM_GETDLGCODE(hwnd:%p, lpmsg:%p)\n"),
726 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmsg);
727 return 0;
728 }
729
730 static __inline void MSGDUMP_API
731 MD_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest)
732 {
733 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEMOVE(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
734 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
735 }
736
737 static __inline void MSGDUMP_API
738 MD_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
739 {
740 if (fDoubleClick)
741 {
742 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
743 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
744 }
745 else
746 {
747 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
748 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
749 }
750 }
751
752 static __inline void MSGDUMP_API
753 MD_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
754 {
755 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
756 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
757 }
758
759 static __inline void MSGDUMP_API
760 MD_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
761 {
762 if (fDoubleClick)
763 {
764 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
765 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
766 }
767 else
768 {
769 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
770 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
771 }
772 }
773
774 static __inline void MSGDUMP_API
775 MD_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
776 {
777 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
778 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
779 }
780
781 static __inline void MSGDUMP_API
782 MD_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
783 {
784 if (fDoubleClick)
785 {
786 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
787 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
788 }
789 else
790 {
791 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
792 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
793 }
794 }
795
796 static __inline void MSGDUMP_API
797 MD_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
798 {
799 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
800 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
801 }
802
803 static __inline void MSGDUMP_API
804 MD_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
805 {
806 if (fDown)
807 {
808 MSGDUMP_TPRINTF(TEXT("%sWM_KEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
809 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
810 }
811 else
812 {
813 MSGDUMP_TPRINTF(TEXT("%sWM_KEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
814 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
815 }
816 }
817
818 static __inline void MSGDUMP_API
819 MD_OnChar(HWND hwnd, TCHAR ch, int cRepeat)
820 {
821 MSGDUMP_TPRINTF(TEXT("%sWM_CHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
822 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
823 }
824
825 static __inline void MSGDUMP_API
826 MD_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
827 {
828 MSGDUMP_TPRINTF(TEXT("%sWM_DEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
829 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
830 }
831
832 static __inline void MSGDUMP_API
833 MD_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
834 {
835 if (fDown)
836 {
837 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
838 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
839 }
840 else
841 {
842 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
843 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
844 }
845 }
846
847 static __inline void MSGDUMP_API
848 MD_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat)
849 {
850 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
851 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
852 }
853
854 static __inline void MSGDUMP_API
855 MD_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
856 {
857 MSGDUMP_TPRINTF(TEXT("%sWM_SYSDEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
858 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
859 }
860
861 static __inline BOOL MSGDUMP_API
862 MD_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
863 {
864 MSGDUMP_TPRINTF(TEXT("%sWM_INITDIALOG(hwnd:%p, hwndFocus:%p, lParam:%p)\n"),
865 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFocus, (void *)lParam);
866 return FALSE;
867 }
868
869 static __inline void MSGDUMP_API
870 MD_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
871 {
872 MSGDUMP_TPRINTF(TEXT("%sWM_COMMAND(hwnd:%p, id:%d, hwndCtl:%p, codeNotify:%u)\n"),
873 MSGDUMP_PREFIX, (void *)hwnd, id, (void *)hwndCtl, codeNotify);
874 }
875
876 static __inline void MSGDUMP_API
877 MD_OnSysCommand(HWND hwnd, UINT cmd, int x, int y)
878 {
879 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOMMAND(hwnd:%p, cmd:%u, x:%d, y:%d)\n"),
880 MSGDUMP_PREFIX, (void *)hwnd, cmd, x, y);
881 }
882
883 static __inline void MSGDUMP_API
884 MD_OnTimer(HWND hwnd, UINT id)
885 {
886 MSGDUMP_TPRINTF(TEXT("%sWM_TIMER(hwnd:%p, id:%u)\n"),
887 MSGDUMP_PREFIX, (void *)hwnd, id);
888 }
889
890 static __inline void MSGDUMP_API
891 MD_OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
892 {
893 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
894 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
895 }
896
897 static __inline void MSGDUMP_API
898 MD_OnVScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
899 {
900 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
901 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
902 }
903
904 static __inline void MSGDUMP_API
905 MD_OnInitMenu(HWND hwnd, HMENU hMenu)
906 {
907 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENU(hwnd:%p, hMenu:%p)\n"),
908 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu);
909 }
910
911 static __inline void MSGDUMP_API
912 MD_OnInitMenuPopup(HWND hwnd, HMENU hMenu, UINT item, BOOL fSystemMenu)
913 {
914 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENUPOPUP(hwnd:%p, hMenu:%p, item:%u, fSystemMenu:%d)\n"),
915 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, item, fSystemMenu);
916 }
917
918 static __inline void MSGDUMP_API
919 MD_OnMenuSelect(HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags)
920 {
921 MSGDUMP_TPRINTF(TEXT("%sWM_MENUSELECT(hwnd:%p, hmenu:%p, item:%d, hmenuPopup:%p, flags:%u)\n"),
922 MSGDUMP_PREFIX, (void *)hwnd, (void *)hmenu, item, (void *)hmenuPopup, flags);
923 }
924
925 static __inline DWORD MSGDUMP_API
926 MD_OnMenuChar(HWND hwnd, UINT ch, UINT flags, HMENU hmenu)
927 {
928 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCHAR(hwnd:%p, ch:%u, flags:%u, hmenu:%p)\n"),
929 MSGDUMP_PREFIX, (void *)hwnd, ch, flags, (void *)hmenu);
930 return 0;
931 }
932
933 static __inline void MSGDUMP_API
934 MD_OnEnterIdle(HWND hwnd, UINT source, HWND hwndSource)
935 {
936 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERIDLE(hwnd:%p, source:%u, hwndSource:%p)\n"),
937 MSGDUMP_PREFIX, (void *)hwnd, source, (void *)hwndSource);
938 }
939
940 static __inline HBRUSH MSGDUMP_API
941 MD_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type)
942 {
943 MSGDUMP_TPRINTF(TEXT("%sWM_CTLCOLOR(hwnd:%p, hdc:%p, hwndChild:%p, type:%d)\n"),
944 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc, (void *)hwndChild, type);
945 return NULL;
946 }
947
948 static __inline void MSGDUMP_API
949 MD_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags)
950 {
951 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEMOVE(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
952 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
953 }
954
955 static __inline void MSGDUMP_API
956 MD_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
957 {
958 if (fDoubleClick)
959 {
960 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
961 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
962 }
963 else
964 {
965 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
966 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
967 }
968 }
969
970 static __inline void MSGDUMP_API
971 MD_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags)
972 {
973 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONUP(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
974 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
975 }
976
977 static __inline void MSGDUMP_API
978 MD_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
979 {
980 if (fDoubleClick)
981 {
982 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
983 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
984 }
985 else
986 {
987 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
988 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
989 }
990 }
991
992 static __inline void MSGDUMP_API
993 MD_OnRButtonUp(HWND hwnd, int x, int y, UINT flags)
994 {
995 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
996 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
997 }
998
999 static __inline void MSGDUMP_API
1000 MD_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
1001 {
1002 if (fDoubleClick)
1003 {
1004 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
1005 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
1006 }
1007 else
1008 {
1009 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
1010 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
1011 }
1012 }
1013
1014 static __inline void MSGDUMP_API
1015 MD_OnMButtonUp(HWND hwnd, int x, int y, UINT flags)
1016 {
1017 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
1018 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
1019 }
1020
1021 static __inline void MSGDUMP_API
1022 MD_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys)
1023 {
1024 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEWHEEL(hwnd:%p, xPos:%d, yPos:%d, zDelta:%d, fwKeys:%u)\n"),
1025 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos, zDelta, fwKeys);
1026 }
1027
1028 static __inline void MSGDUMP_API
1029 MD_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild)
1030 {
1031 MSGDUMP_TPRINTF(TEXT("%sWM_PARENTNOTIFY(hwnd:%p, msg:%u, hwndChild:%p, idChild:%d)\n"),
1032 MSGDUMP_PREFIX, (void *)hwnd, msg, (void *)hwndChild, idChild);
1033 }
1034
1035 static __inline BOOL MSGDUMP_API
1036 MD_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData)
1037 {
1038 MSGDUMP_TPRINTF(TEXT("%sWM_DEVICECHANGE(hwnd:%p, uEvent:%u, dwEventData:0x%08lX)\n"),
1039 MSGDUMP_PREFIX, (void *)hwnd, uEvent, dwEventData);
1040 return FALSE;
1041 }
1042
1043 static __inline HWND MSGDUMP_API
1044 MD_MDICreate(HWND hwnd, const LPMDICREATESTRUCT lpmcs)
1045 {
1046 MSGDUMP_TPRINTF(TEXT("%sWM_MDICREATE(hwnd:%p, lpmcs:%p)\n"),
1047 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmcs);
1048 return NULL;
1049 }
1050
1051 static __inline void MSGDUMP_API
1052 MD_MDIDestroy(HWND hwnd, HWND hwndDestroy)
1053 {
1054 MSGDUMP_TPRINTF(TEXT("%sWM_MDIDESTROY(hwnd:%p, hwndDestroy:%p)\n"),
1055 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndDestroy);
1056 }
1057
1058 static __inline void MSGDUMP_API
1059 MD_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate)
1060 {
1061 MSGDUMP_TPRINTF(TEXT("%sWM_MDIACTIVATE(hwnd:%p, fActive:%d, hwndActivate:%p, hwndDeactivate:%p)\n"),
1062 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActivate, (void *)hwndDeactivate);
1063 }
1064
1065 static __inline void MSGDUMP_API
1066 MD_MDIRestore(HWND hwnd, HWND hwndRestore)
1067 {
1068 MSGDUMP_TPRINTF(TEXT("%sWM_MDIRESTORE(hwnd:%p, hwndRestore:%p)\n"),
1069 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRestore);
1070 }
1071
1072 static __inline HWND MSGDUMP_API
1073 MD_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev)
1074 {
1075 MSGDUMP_TPRINTF(TEXT("%sWM_MDINEXT(hwnd:%p, hwndCur:%p, fPrev:%d)\n"),
1076 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCur, fPrev);
1077 return NULL;
1078 }
1079
1080 static __inline void MSGDUMP_API
1081 MD_MDIMaximize(HWND hwnd, HWND hwndMaximize)
1082 {
1083 MSGDUMP_TPRINTF(TEXT("%sWM_MDIMAXIMIZE(hwnd:%p, hwndMaximize:%p)\n"),
1084 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndMaximize);
1085 }
1086
1087 static __inline BOOL MSGDUMP_API
1088 MD_MDITile(HWND hwnd, UINT cmd)
1089 {
1090 MSGDUMP_TPRINTF(TEXT("%sWM_MDITILE(hwnd:%p, cmd:%u)\n"),
1091 MSGDUMP_PREFIX, (void *)hwnd, cmd);
1092 return FALSE;
1093 }
1094
1095 static __inline BOOL MSGDUMP_API
1096 MD_MDICascade(HWND hwnd, UINT cmd)
1097 {
1098 MSGDUMP_TPRINTF(TEXT("%sWM_MDICASCADE(hwnd:%p, cmd:%u)\n"),
1099 MSGDUMP_PREFIX, (void *)hwnd, cmd);
1100 return FALSE;
1101 }
1102
1103 static __inline void MSGDUMP_API
1104 MD_MDIIconArrange(HWND hwnd)
1105 {
1106 MSGDUMP_TPRINTF(TEXT("%sWM_MDIICONARRANGE(hwnd:%p)\n"),
1107 MSGDUMP_PREFIX, (void *)hwnd);
1108 }
1109
1110 static __inline HWND MSGDUMP_API
1111 MD_MDIGetActive(HWND hwnd)
1112 {
1113 MSGDUMP_TPRINTF(TEXT("%sWM_MDIGETACTIVE(hwnd:%p)\n"),
1114 MSGDUMP_PREFIX, (void *)hwnd);
1115 return NULL;
1116 }
1117
1118 #ifdef _UNDOCUSER_H
1119 static __inline LRESULT MSGDUMP_API
1120 MD_OnDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
1121 {
1122 MSGDUMP_TPRINTF(TEXT("%sWM_DROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1123 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1124 return 0;
1125 }
1126
1127 static __inline LRESULT MSGDUMP_API
1128 MD_OnQueryDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
1129 {
1130 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1131 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1132 return 0;
1133 }
1134
1135 static __inline LRESULT MSGDUMP_API
1136 MD_OnBeginDrag(HWND hwnd, WPARAM wParam, LPARAM lParam)
1137 {
1138 MSGDUMP_TPRINTF(TEXT("%sWM_BEGINDRAG(hwnd:%p, wParam:%p, lParam:%p)\n"),
1139 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1140 return 0;
1141 }
1142
1143 static __inline LRESULT MSGDUMP_API
1144 MD_OnDragLoop(HWND hwnd, WPARAM wParam, LPARAM lParam)
1145 {
1146 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGLOOP(hwnd:%p, wParam:%p, lParam:%p)\n"),
1147 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1148 return 0;
1149 }
1150
1151 static __inline LRESULT MSGDUMP_API
1152 MD_OnDragSelect(HWND hwnd, WPARAM wParam, LPARAM lParam)
1153 {
1154 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGSELECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
1155 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1156 return 0;
1157 }
1158
1159 static __inline LRESULT MSGDUMP_API
1160 MD_OnDragMove(HWND hwnd, WPARAM wParam, LPARAM lParam)
1161 {
1162 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGMOVE(hwnd:%p, wParam:%p, lParam:%p)\n"),
1163 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1164 return 0;
1165 }
1166 #endif
1167
1168 static __inline HMENU MSGDUMP_API
1169 MD_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow)
1170 {
1171 MSGDUMP_TPRINTF(TEXT("%sWM_MDISETMENU(hwnd:%p, fRefresh:%d, hmenuFrame:%p, hmenuWindow:%p)\n"),
1172 MSGDUMP_PREFIX, (void *)hwnd, fRefresh, (void *)hmenuFrame, (void *)hmenuWindow);
1173 return NULL;
1174 }
1175
1176 static __inline void MSGDUMP_API
1177 MD_OnDropFiles(HWND hwnd, HDROP hdrop)
1178 {
1179 MSGDUMP_TPRINTF(TEXT("%sWM_DROPFILES(hwnd:%p, hdrop:%p)\n"),
1180 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdrop);
1181 }
1182
1183 static __inline void MSGDUMP_API
1184 MD_OnCut(HWND hwnd)
1185 {
1186 MSGDUMP_TPRINTF(TEXT("%sWM_CUT(hwnd:%p)\n"),
1187 MSGDUMP_PREFIX, (void *)hwnd);
1188 }
1189
1190 static __inline void MSGDUMP_API
1191 MD_OnCopy(HWND hwnd)
1192 {
1193 MSGDUMP_TPRINTF(TEXT("%sWM_COPY(hwnd:%p)\n"),
1194 MSGDUMP_PREFIX, (void *)hwnd);
1195 }
1196
1197 static __inline void MSGDUMP_API
1198 MD_OnPaste(HWND hwnd)
1199 {
1200 MSGDUMP_TPRINTF(TEXT("%sWM_PASTE(hwnd:%p)\n"),
1201 MSGDUMP_PREFIX, (void *)hwnd);
1202 }
1203
1204 static __inline void MSGDUMP_API
1205 MD_OnClear(HWND hwnd)
1206 {
1207 MSGDUMP_TPRINTF(TEXT("%sWM_CLEAR(hwnd:%p)\n"),
1208 MSGDUMP_PREFIX, (void *)hwnd);
1209 }
1210
1211 static __inline void MSGDUMP_API
1212 MD_OnUndo(HWND hwnd)
1213 {
1214 MSGDUMP_TPRINTF(TEXT("%sWM_UNDO(hwnd:%p)\n"),
1215 MSGDUMP_PREFIX, (void *)hwnd);
1216 }
1217
1218 static __inline HANDLE MSGDUMP_API
1219 MD_OnRenderFormat(HWND hwnd, UINT fmt)
1220 {
1221 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERFORMAT(hwnd:%p, fmt:%u)\n"),
1222 MSGDUMP_PREFIX, (void *)hwnd, fmt);
1223 return NULL;
1224 }
1225
1226 static __inline void MSGDUMP_API
1227 MD_OnRenderAllFormats(HWND hwnd)
1228 {
1229 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERALLFORMATS(hwnd:%p)\n"),
1230 MSGDUMP_PREFIX, (void *)hwnd);
1231 }
1232
1233 static __inline void MSGDUMP_API
1234 MD_OnDestroyClipboard(HWND hwnd)
1235 {
1236 MSGDUMP_TPRINTF(TEXT("%sWM_DESTROYCLIPBOARD(hwnd:%p)\n"),
1237 MSGDUMP_PREFIX, (void *)hwnd);
1238 }
1239
1240 static __inline void MSGDUMP_API
1241 MD_OnDrawClipboard(HWND hwnd)
1242 {
1243 MSGDUMP_TPRINTF(TEXT("%sWM_DRAWCLIPBOARD(hwnd:%p)\n"),
1244 MSGDUMP_PREFIX, (void *)hwnd);
1245 }
1246
1247 static __inline void MSGDUMP_API
1248 MD_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct)
1249 {
1250 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTCLIPBOARD(hwnd:%p, hwndCBViewer:%p, lpPaintStruct:%p)\n"),
1251 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, (void *)lpPaintStruct);
1252 }
1253
1254 static __inline void MSGDUMP_API
1255 MD_OnVScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1256 {
1257 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1258 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1259 }
1260
1261 static __inline void MSGDUMP_API
1262 MD_OnSizeClipboard(HWND hwnd, HWND hwndCBViewer, const LPRECT lprc)
1263 {
1264 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1265 MSGDUMP_TPRINTF(TEXT("%sWM_SIZECLIPBOARD(hwnd:%p, hwndCBViewer:%p, lprc:%s)\n"),
1266 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer,
1267 MD_rect_text(buf, sizeof(buf), lprc));
1268 }
1269
1270 static __inline void MSGDUMP_API
1271 MD_OnAskCBFormatName(HWND hwnd, int cchMax, LPTSTR rgchName)
1272 {
1273 MSGDUMP_TPRINTF(TEXT("%sWM_ASKCBFORMATNAME(hwnd:%p, cchMax:%d, rgchName:%p)\n"),
1274 MSGDUMP_PREFIX, (void *)hwnd, cchMax, (void *)rgchName);
1275 }
1276
1277 static __inline void MSGDUMP_API
1278 MD_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext)
1279 {
1280 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGECBCHAIN(hwnd:%p, hwndRemove:%p, hwndNext:%p)\n"),
1281 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRemove, (void *)hwndNext);
1282 }
1283
1284 static __inline void MSGDUMP_API
1285 MD_OnHScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1286 {
1287 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1288 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1289 }
1290
1291 static __inline BOOL MSGDUMP_API
1292 MD_OnQueryNewPalette(HWND hwnd)
1293 {
1294 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYNEWPALETTE(hwnd:%p)\n"),
1295 MSGDUMP_PREFIX, (void *)hwnd);
1296 return FALSE;
1297 }
1298
1299 static __inline void MSGDUMP_API
1300 MD_OnPaletteIsChanging(HWND hwnd, HWND hwndPaletteChange)
1301 {
1302 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTEISCHANGING(hwnd:%p, hwndPaletteChange:%p)\n"),
1303 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1304 }
1305
1306 static __inline void MSGDUMP_API
1307 MD_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange)
1308 {
1309 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTECHANGED(hwnd:%p, hwndPaletteChange:%p)\n"),
1310 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1311 }
1312
1313 static __inline void MSGDUMP_API
1314 MD_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk)
1315 {
1316 MSGDUMP_TPRINTF(TEXT("%sWM_HOTKEY(hwnd:%p, idHotKey:%d, fuModifiers:%u, vk:%u)\n"),
1317 MSGDUMP_PREFIX, (void *)hwnd, idHotKey, fuModifiers, vk);
1318 }
1319
1320 static __inline INT MSGDUMP_API
1321 MD_OnSetHotKey(HWND hwnd, INT nCode, UINT nOptions)
1322 {
1323 MSGDUMP_TPRINTF(TEXT("%sWM_SETHOTKEY(hwnd:%p, nCode:%d, nOptions:%u)\n"),
1324 MSGDUMP_PREFIX, (void *)hwnd, nCode, nOptions);
1325 return 0;
1326 }
1327
1328 static __inline INT MSGDUMP_API
1329 MD_OnGetHotKey(HWND hwnd)
1330 {
1331 MSGDUMP_TPRINTF(TEXT("%sWM_GETHOTKEY(hwnd:%p)\n"),
1332 MSGDUMP_PREFIX, (void *)hwnd);
1333 return 0;
1334 }
1335
1336 static __inline void MSGDUMP_API
1337 MD_OnPaintIcon(HWND hwnd)
1338 {
1339 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTICON(hwnd:%p)\n"),
1340 MSGDUMP_PREFIX, (void *)hwnd);
1341 }
1342
1343 static __inline LRESULT MSGDUMP_API
1344 MD_OnGetObject(HWND hwnd, WPARAM wParam, DWORD dwObjId)
1345 {
1346 MSGDUMP_TPRINTF(TEXT("%sWM_GETOBJECT(hwnd:%p, wParam:%p, dwObjId:0x%08lX)\n"),
1347 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, dwObjId);
1348 return 0;
1349 }
1350
1351 static __inline void MSGDUMP_API
1352 MD_OnCancelJournal(HWND hwnd)
1353 {
1354 MSGDUMP_TPRINTF(TEXT("%sWM_CANCELJOURNAL(hwnd:%p)\n"),
1355 MSGDUMP_PREFIX, (void *)hwnd);
1356 }
1357
1358 static __inline void MSGDUMP_API
1359 MD_OnInputLangChangeRequest(HWND hwnd, BOOL bFlag, HKL hKL)
1360 {
1361 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGEREQUEST(hwnd:%p, bFlag:%d, hKL:%p)\n"),
1362 MSGDUMP_PREFIX, (void *)hwnd, bFlag, (void *)hKL);
1363 }
1364
1365 static __inline void MSGDUMP_API
1366 MD_OnInputLangChange(HWND hwnd, DWORD dwCharSet, HKL hKL)
1367 {
1368 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGE(hwnd:%p, dwCharSet:0x%08lX, hKL:%p)\n"),
1369 MSGDUMP_PREFIX, (void *)hwnd, dwCharSet, (void *)hKL);
1370 }
1371
1372 static __inline void MSGDUMP_API
1373 MD_OnTCard(HWND hwnd, UINT idAction, DWORD dwActionData)
1374 {
1375 MSGDUMP_TPRINTF(TEXT("%sWM_TCARD(hwnd:%p, idAction:%u, dwActionData:0x%08lX)\n"),
1376 MSGDUMP_PREFIX, (void *)hwnd, idAction, dwActionData);
1377 }
1378
1379 static __inline void MSGDUMP_API
1380 MD_OnHelp(HWND hwnd, LPHELPINFO lpHelpInfo)
1381 {
1382 MSGDUMP_TPRINTF(TEXT("%sWM_HELP(hwnd:%p, lpHelpInfo:%p)\n"),
1383 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpHelpInfo);
1384 }
1385
1386 static __inline void MSGDUMP_API
1387 MD_OnUserChanged(HWND hwnd)
1388 {
1389 MSGDUMP_TPRINTF(TEXT("%sWM_USERCHANGED(hwnd:%p)\n"),
1390 MSGDUMP_PREFIX, (void *)hwnd);
1391 }
1392
1393 static __inline INT MSGDUMP_API
1394 MD_OnNotifyFormat(HWND hwnd, HWND hwndTarget, INT nCommand)
1395 {
1396 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFYFORMAT(hwnd:%p, hwndTarget:%p, nCommand:%d)\n"),
1397 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, nCommand);
1398 return 0;
1399 }
1400
1401 static __inline void MSGDUMP_API
1402 MD_OnStyleChanging(HWND hwnd, UINT nStyleType, LPSTYLESTRUCT lpStyleStruct)
1403 {
1404 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGING(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1405 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1406 }
1407
1408 static __inline void MSGDUMP_API
1409 MD_OnStyleChanged(HWND hwnd, UINT nStyleType, const STYLESTRUCT *lpStyleStruct)
1410 {
1411 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGED(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1412 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1413 }
1414
1415 static __inline HICON MSGDUMP_API
1416 MD_OnGetIcon(HWND hwnd, UINT nType, LPARAM dpi)
1417 {
1418 MSGDUMP_TPRINTF(TEXT("%sWM_GETICON(hwnd:%p, nType:%u, dpi:%p)\n"),
1419 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)dpi);
1420 return NULL;
1421 }
1422
1423 static __inline HICON MSGDUMP_API
1424 MD_OnSetIcon(HWND hwnd, UINT nType, HICON hIcon)
1425 {
1426 MSGDUMP_TPRINTF(TEXT("%sWM_SETICON(hwnd:%p, nType:%u, hIcon:%p)\n"),
1427 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)hIcon);
1428 return NULL;
1429 }
1430
1431 static __inline void MSGDUMP_API
1432 MD_OnSyncPaint(HWND hwnd)
1433 {
1434 MSGDUMP_TPRINTF(TEXT("%sWM_SYNCPAINT(hwnd:%p)\n"),
1435 MSGDUMP_PREFIX, (void *)hwnd);
1436 }
1437
1438 static __inline void MSGDUMP_API
1439 MD_OnNCXButtonDown(HWND hwnd, BOOL fDoubleClick, UINT nHitTest, WORD fwButton,
1440 INT xPos, INT yPos)
1441 {
1442 if (fDoubleClick)
1443 {
1444 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDBLCLK(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1445 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1446 }
1447 else
1448 {
1449 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDOWN(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1450 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1451 }
1452 }
1453
1454 static __inline void MSGDUMP_API
1455 MD_OnNCXButtonUp(HWND hwnd, UINT nHitTest, WORD fwButton, INT xPos, INT yPos)
1456 {
1457 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONUP(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1458 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1459 }
1460
1461 static __inline void MSGDUMP_API
1462 MD_OnImeStartComposition(HWND hwnd)
1463 {
1464 MSGDUMP_TPRINTF(TEXT("%sWM_IME_STARTCOMPOSITION(hwnd:%p)\n"),
1465 MSGDUMP_PREFIX, (void *)hwnd);
1466 }
1467
1468 static __inline void MSGDUMP_API
1469 MD_OnImeEndComposition(HWND hwnd)
1470 {
1471 MSGDUMP_TPRINTF(TEXT("%sWM_IME_ENDCOMPOSITION(hwnd:%p)\n"),
1472 MSGDUMP_PREFIX, (void *)hwnd);
1473 }
1474
1475 static __inline void MSGDUMP_API
1476 MD_OnImeComposition(HWND hwnd, WORD wChar, DWORD lAttribute)
1477 {
1478 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITION(hwnd:%p, wChar:%u, lAttribute:0x%08lX)\n"),
1479 MSGDUMP_PREFIX, (void *)hwnd, wChar, lAttribute);
1480 }
1481
1482 static __inline void MSGDUMP_API
1483 MD_OnMenuRButtonUp(HWND hwnd, UINT nPos, HMENU hMenu)
1484 {
1485 MSGDUMP_TPRINTF(TEXT("%sWM_MENURBUTTONUP(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1486 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1487 }
1488
1489 static __inline UINT MSGDUMP_API
1490 MD_OnMenuDrag(HWND hwnd, UINT nPos, HMENU hMenu)
1491 {
1492 MSGDUMP_TPRINTF(TEXT("%sWM_MENUDRAG(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1493 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1494 return 0;
1495 }
1496
1497 static __inline UINT MSGDUMP_API
1498 MD_OnMenuGetObject(HWND hwnd, MENUGETOBJECTINFO *pmgoi)
1499 {
1500 MSGDUMP_TPRINTF(TEXT("%sWM_MENUGETOBJECT(hwnd:%p, pmgoi:%p)\n"),
1501 MSGDUMP_PREFIX, (void *)hwnd, (void *)pmgoi);
1502 return 0;
1503 }
1504
1505 static __inline void MSGDUMP_API
1506 MD_OnUninitMenuPopup(HWND hwnd, HMENU hMenu, UINT nFlags)
1507 {
1508 MSGDUMP_TPRINTF(TEXT("%sWM_UNINITMENUPOPUP(hwnd:%p, hMenu:%p, nFlags:%u)\n"),
1509 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, nFlags);
1510 }
1511
1512 static __inline void MSGDUMP_API
1513 MD_OnMenuCommand(HWND hwnd, UINT nPos, HMENU hMenu)
1514 {
1515 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCOMMAND(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1516 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1517 }
1518
1519 static __inline void MSGDUMP_API
1520 MD_OnChangeUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1521 {
1522 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1523 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1524 }
1525
1526 static __inline void MSGDUMP_API
1527 MD_OnUpdateUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1528 {
1529 MSGDUMP_TPRINTF(TEXT("%sWM_UPDATEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1530 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1531 }
1532
1533 static __inline UINT MSGDUMP_API
1534 MD_OnQueryUIState(HWND hwnd)
1535 {
1536 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYUISTATE(hwnd:%p)\n"),
1537 MSGDUMP_PREFIX, (void *)hwnd);
1538 return 0;
1539 }
1540
1541 static __inline void MSGDUMP_API
1542 MD_OnXButtonDown(HWND hwnd, BOOL fDoubleClick, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1543 {
1544 if (fDoubleClick)
1545 {
1546 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDBLCLK(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1547 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1548 }
1549 else
1550 {
1551 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDOWN(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1552 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1553 }
1554 }
1555
1556 static __inline void MSGDUMP_API
1557 MD_OnXButtonUp(HWND hwnd, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1558 {
1559 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONUP(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1560 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1561 }
1562
1563 static __inline void MSGDUMP_API
1564 MD_OnEnterMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1565 {
1566 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1567 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1568 }
1569
1570 static __inline void MSGDUMP_API
1571 MD_OnExitMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1572 {
1573 MSGDUMP_TPRINTF(TEXT("%sWM_EXITMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1574 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1575 }
1576
1577 static __inline void MSGDUMP_API
1578 MD_OnNextMenu(HWND hwnd, INT nCode, LPMDINEXTMENU lpMDINextMenu)
1579 {
1580 MSGDUMP_TPRINTF(TEXT("%sWM_NEXTMENU(hwnd:%p, nCode:%d, lpMDINextMenu:%p)\n"),
1581 MSGDUMP_PREFIX, (void *)hwnd, nCode, (void *)lpMDINextMenu);
1582 }
1583
1584 static __inline void MSGDUMP_API
1585 MD_OnSizing(HWND hwnd, UINT nSide, LPRECT lpRect)
1586 {
1587 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1588 MSGDUMP_TPRINTF(TEXT("%sWM_SIZING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1589 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1590 }
1591
1592 static __inline void MSGDUMP_API
1593 MD_OnCaptureChanged(HWND hwnd, HWND hwndNewCapture)
1594 {
1595 MSGDUMP_TPRINTF(TEXT("%sWM_CAPTURECHANGED(hwnd:%p, hwndNewCapture:%p)\n"),
1596 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewCapture);
1597 }
1598
1599 static __inline void MSGDUMP_API
1600 MD_OnMoving(HWND hwnd, UINT nSide, LPRECT lpRect)
1601 {
1602 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1603 MSGDUMP_TPRINTF(TEXT("%sWM_MOVING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1604 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1605 }
1606
1607 static __inline LRESULT MSGDUMP_API
1608 MD_OnPowerBroadcast(HWND hwnd, UINT nPowerEvent, UINT nEventData)
1609 {
1610 MSGDUMP_TPRINTF(TEXT("%sWM_POWERBROADCAST(hwnd:%p, nPowerEvent:%u, nEventData:%u)\n"),
1611 MSGDUMP_PREFIX, (void *)hwnd, nPowerEvent, nEventData);
1612 return 0;
1613 }
1614
1615 static __inline void MSGDUMP_API
1616 MD_OnEnterSizeMove(HWND hwnd)
1617 {
1618 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERSIZEMOVE(hwnd:%p)\n"),
1619 MSGDUMP_PREFIX, (void *)hwnd);
1620 }
1621
1622 static __inline void MSGDUMP_API
1623 MD_OnExitSizeMove(HWND hwnd)
1624 {
1625 MSGDUMP_TPRINTF(TEXT("%sWM_EXITSIZEMOVE(hwnd:%p)\n"),
1626 MSGDUMP_PREFIX, (void *)hwnd);
1627 }
1628
1629 static __inline HMENU MSGDUMP_API
1630 MD_MDIRefreshMenu(HWND hwnd)
1631 {
1632 MSGDUMP_TPRINTF(TEXT("%sWM_MDIREFRESHMENU(hwnd:%p)\n"),
1633 MSGDUMP_PREFIX, (void *)hwnd);
1634 return NULL;
1635 }
1636
1637 static __inline BOOL MSGDUMP_API
1638 MD_OnImeSetContext(HWND hwnd, BOOL fActive, DWORD dwShow)
1639 {
1640 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SETCONTEXT(hwnd:%p, fActive:%d, dwShow:0x%08lX)\n"),
1641 MSGDUMP_PREFIX, (void *)hwnd, fActive, dwShow);
1642 return FALSE;
1643 }
1644
1645 static __inline LRESULT MSGDUMP_API
1646 MD_OnImeNotify(HWND hwnd, WPARAM wSubMessage, LPARAM lParam)
1647 {
1648 MSGDUMP_TPRINTF(TEXT("%sWM_IME_NOTIFY(hwnd:%p, wSubMessage:%p, lParam:%p)\n"),
1649 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lParam);
1650 return 0;
1651 }
1652
1653 static __inline LRESULT MSGDUMP_API
1654 MD_OnImeControl(HWND hwnd, WPARAM wSubMessage, LPVOID lpData)
1655 {
1656 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CONTROL(hwnd:%p, wSubMessage:%p, lpData:%p)\n"),
1657 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lpData);
1658 return 0;
1659 }
1660
1661 static __inline void MSGDUMP_API
1662 MD_OnImeCompositionFull(HWND hwnd)
1663 {
1664 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITIONFULL(hwnd:%p)\n"),
1665 MSGDUMP_PREFIX, (void *)hwnd);
1666 }
1667
1668 static __inline void MSGDUMP_API
1669 MD_OnImeSelect(HWND hwnd, BOOL fSelect, HKL hKL)
1670 {
1671 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SELECT(hwnd:%p, fSelect:%d, hKL:%p)\n"),
1672 MSGDUMP_PREFIX, (void *)hwnd, fSelect, (void *)hKL);
1673 }
1674
1675 static __inline void MSGDUMP_API
1676 MD_OnImeChar(HWND hwnd, WORD wCharCode, LONG lKeyData)
1677 {
1678 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CHAR(hwnd:%p, wCharCode:%u, lKeyData:%ld)\n"),
1679 MSGDUMP_PREFIX, (void *)hwnd, wCharCode, lKeyData);
1680 }
1681
1682 static __inline LRESULT MSGDUMP_API
1683 MD_OnImeRequest(HWND hwnd, WPARAM wParam, LPARAM lParam)
1684 {
1685 MSGDUMP_TPRINTF(TEXT("%sWM_IME_REQUEST(hwnd:%p, wParam:%p, lParam:%p)\n"),
1686 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1687 return 0;
1688 }
1689
1690 static __inline void MSGDUMP_API
1691 MD_OnImeKey(HWND hwnd, BOOL fDown, UINT nVirtKey, LONG lKeyData)
1692 {
1693 if (fDown)
1694 {
1695 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYDOWN(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1696 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1697 }
1698 else
1699 {
1700 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYUP(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1701 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1702 }
1703 }
1704
1705 static __inline void MSGDUMP_API
1706 MD_OnMouseHover(HWND hwnd, UINT nFlags, INT xPos, INT yPos)
1707 {
1708 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEHOVER(hwnd:%p, nFlags:%u, xPos:%d, yPos:%d)\n"),
1709 MSGDUMP_PREFIX, (void *)hwnd, nFlags, xPos, yPos);
1710 }
1711
1712 static __inline void MSGDUMP_API
1713 MD_OnMouseLeave(HWND hwnd)
1714 {
1715 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSELEAVE(hwnd:%p)\n"),
1716 MSGDUMP_PREFIX, (void *)hwnd);
1717 }
1718
1719 static __inline void MSGDUMP_API
1720 MD_OnNCMouseHover(HWND hwnd, UINT nHitTest, INT xPos, INT yPos)
1721 {
1722 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEHOVER(hwnd:%p, nHitTest:%u, xPos:%d, yPos:%d)\n"),
1723 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, xPos, yPos);
1724 }
1725
1726 static __inline void MSGDUMP_API
1727 MD_OnNCMouseLeave(HWND hwnd)
1728 {
1729 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSELEAVE(hwnd:%p)\n"),
1730 MSGDUMP_PREFIX, (void *)hwnd);
1731 }
1732
1733 static __inline void MSGDUMP_API
1734 MD_OnPrint(HWND hwnd, HDC hDC, UINT uFlags)
1735 {
1736 MSGDUMP_TPRINTF(TEXT("%sWM_PRINT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1737 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1738 }
1739
1740 static __inline void MSGDUMP_API
1741 MD_OnPrintClient(HWND hwnd, HDC hDC, UINT uFlags)
1742 {
1743 MSGDUMP_TPRINTF(TEXT("%sWM_PRINTCLIENT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1744 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1745 }
1746
1747 static __inline BOOL MSGDUMP_API
1748 MD_OnAppCommand(HWND hwnd, HWND hwndTarget, UINT cmd, UINT nDevice, UINT nKey)
1749 {
1750 MSGDUMP_TPRINTF(TEXT("%sWM_APPCOMMAND(hwnd:%p, hwndTarget:%p, cmd:%u, nDevice:%u, nKey:%u)\n"),
1751 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, cmd, nDevice, nKey);
1752 return FALSE;
1753 }
1754
1755 static __inline LONG MSGDUMP_API
1756 MD_Edit_OnGetSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
1757 {
1758 MSGDUMP_TPRINTF(TEXT("%sEM_GETSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
1759 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
1760 return 0;
1761 }
1762
1763 static __inline void MSGDUMP_API
1764 MD_Edit_OnSetSel(HWND hwnd, INT nStart, INT nEnd)
1765 {
1766 MSGDUMP_TPRINTF(TEXT("%sEM_SETSEL(hwnd:%p, nStart:%d, nEnd:%d)\n"),
1767 MSGDUMP_PREFIX, (void *)hwnd, nStart, nEnd);
1768 }
1769
1770 static __inline void MSGDUMP_API
1771 MD_Edit_OnGetRect(HWND hwnd, LPRECT prc)
1772 {
1773 MSGDUMP_TPRINTF(TEXT("%sEM_GETRECT(hwnd:%p, prc:%p)\n"),
1774 MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
1775 }
1776
1777 static __inline void MSGDUMP_API
1778 MD_Edit_OnSetRect(HWND hwnd, LPCRECT prc)
1779 {
1780 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1781 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECT(hwnd:%p, prc:%s)\n"),
1782 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1783 }
1784
1785 static __inline void MSGDUMP_API
1786 MD_Edit_OnSetRectNP(HWND hwnd, LPCRECT prc)
1787 {
1788 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1789 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECTNP(hwnd:%p, prc:%s)\n"),
1790 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1791 }
1792
1793 static __inline DWORD MSGDUMP_API
1794 MD_Edit_OnScroll(HWND hwnd, INT nScroll)
1795 {
1796 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLL(hwnd:%p, nScroll:%d)\n"),
1797 MSGDUMP_PREFIX, (void *)hwnd, nScroll);
1798 return 0;
1799 }
1800
1801 static __inline BOOL MSGDUMP_API
1802 MD_Edit_OnLineScroll(HWND hwnd, INT cxScroll, INT cyScroll)
1803 {
1804 MSGDUMP_TPRINTF(TEXT("%sEM_LINESCROLL(hwnd:%p, cxScroll:%d, cyScroll:%d)\n"),
1805 MSGDUMP_PREFIX, (void *)hwnd, cxScroll, cyScroll);
1806 return FALSE;
1807 }
1808
1809 static __inline BOOL MSGDUMP_API
1810 MD_Edit_OnScrollCaret(HWND hwnd)
1811 {
1812 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLLCARET(hwnd:%p)\n"),
1813 MSGDUMP_PREFIX, (void *)hwnd);
1814 return FALSE;
1815 }
1816
1817 static __inline BOOL MSGDUMP_API
1818 MD_Edit_OnGetModify(HWND hwnd)
1819 {
1820 MSGDUMP_TPRINTF(TEXT("%sEM_GETMODIFY(hwnd:%p)\n"),
1821 MSGDUMP_PREFIX, (void *)hwnd);
1822 return FALSE;
1823 }
1824
1825 static __inline void MSGDUMP_API
1826 MD_Edit_OnSetModify(HWND hwnd, BOOL fModified)
1827 {
1828 MSGDUMP_TPRINTF(TEXT("%sEM_SETMODIFY(hwnd:%p, fModified:%d)\n"),
1829 MSGDUMP_PREFIX, (void *)hwnd, fModified);
1830 }
1831
1832 static __inline INT MSGDUMP_API
1833 MD_Edit_OnGetLineCount(HWND hwnd)
1834 {
1835 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINECOUNT(hwnd:%p)\n"),
1836 MSGDUMP_PREFIX, (void *)hwnd);
1837 return 0;
1838 }
1839
1840 static __inline INT MSGDUMP_API
1841 MD_Edit_OnLineIndex(HWND hwnd, INT line)
1842 {
1843 MSGDUMP_TPRINTF(TEXT("%sEM_LINEINDEX(hwnd:%p, line:%d)\n"),
1844 MSGDUMP_PREFIX, (void *)hwnd, line);
1845 return 0;
1846 }
1847
1848 static __inline void MSGDUMP_API
1849 MD_Edit_OnSetHandle(HWND hwnd, HLOCAL hloc)
1850 {
1851 MSGDUMP_TPRINTF(TEXT("%sEM_SETHANDLE(hwnd:%p, hloc:%p)\n"),
1852 MSGDUMP_PREFIX, (void *)hwnd, (void *)hloc);
1853 }
1854
1855 static __inline HLOCAL MSGDUMP_API
1856 MD_Edit_OnGetHandle(HWND hwnd)
1857 {
1858 MSGDUMP_TPRINTF(TEXT("%sEM_GETHANDLE(hwnd:%p)\n"),
1859 MSGDUMP_PREFIX, (void *)hwnd);
1860 return NULL;
1861 }
1862
1863 static __inline INT MSGDUMP_API
1864 MD_Edit_OnGetThumb(HWND hwnd)
1865 {
1866 MSGDUMP_TPRINTF(TEXT("%sEM_GETTHUMB(hwnd:%p)\n"),
1867 MSGDUMP_PREFIX, (void *)hwnd);
1868 return 0;
1869 }
1870
1871 static __inline INT MSGDUMP_API
1872 MD_Edit_OnLineLength(HWND hwnd, INT ich)
1873 {
1874 MSGDUMP_TPRINTF(TEXT("%sEM_LINELENGTH(hwnd:%p, ich:%d)\n"),
1875 MSGDUMP_PREFIX, (void *)hwnd, ich);
1876 return 0;
1877 }
1878
1879 static __inline void MSGDUMP_API
1880 MD_Edit_OnReplaceSel(HWND hwnd, BOOL fCanUndo, LPCTSTR lpszReplace)
1881 {
1882 if (IsWindowUnicode(hwnd))
1883 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %ls)\n"),
1884 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCWSTR)lpszReplace);
1885 else
1886 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %hs)\n"),
1887 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCSTR)lpszReplace);
1888 }
1889
1890 static __inline INT MSGDUMP_API
1891 MD_Edit_OnGetLine(HWND hwnd, INT line, LPCTSTR lpch)
1892 {
1893 if (IsWindowUnicode(hwnd))
1894 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%ls)\n"),
1895 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCWSTR)lpch);
1896 else
1897 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%hs)\n"),
1898 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCSTR)lpch);
1899 return 0;
1900 }
1901
1902 static __inline BOOL MSGDUMP_API
1903 MD_Edit_OnCanUndo(HWND hwnd)
1904 {
1905 MSGDUMP_TPRINTF(TEXT("%sEM_CANUNDO(hwnd:%p)\n"),
1906 MSGDUMP_PREFIX, (void *)hwnd);
1907 return FALSE;
1908 }
1909
1910 static __inline BOOL MSGDUMP_API
1911 MD_Edit_OnUndo(HWND hwnd)
1912 {
1913 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p)\n"),
1914 MSGDUMP_PREFIX, (void *)hwnd);
1915 return FALSE;
1916 }
1917
1918 static __inline BOOL MSGDUMP_API
1919 MD_Edit_OnFmtLines(HWND hwnd, BOOL fAddEOL)
1920 {
1921 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p, fAddEOL:%d)\n"),
1922 MSGDUMP_PREFIX, (void *)hwnd, fAddEOL);
1923 return FALSE;
1924 }
1925
1926 static __inline INT MSGDUMP_API
1927 MD_Edit_OnLineFromChar(HWND hwnd, INT ich)
1928 {
1929 MSGDUMP_TPRINTF(TEXT("%sEM_LINEFROMCHAR(hwnd:%p, ich:%d)\n"),
1930 MSGDUMP_PREFIX, (void *)hwnd, ich);
1931 return 0;
1932 }
1933
1934 static __inline BOOL MSGDUMP_API
1935 MD_Edit_OnSetTabStops(HWND hwnd, INT cTabs, LPDWORD lpdwTabs)
1936 {
1937 MSGDUMP_TPRINTF(TEXT("%sEM_SETTABSTOPS(hwnd:%p, cTabs:%d, lpdwTabs:%p)\n"),
1938 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpdwTabs);
1939 return FALSE;
1940 }
1941
1942 static __inline void MSGDUMP_API
1943 MD_Edit_OnSetPasswordChar(HWND hwnd, UINT ch)
1944 {
1945 MSGDUMP_TPRINTF(TEXT("%sEM_SETPASSWORDCHAR(hwnd:%p, ch:%u)\n"),
1946 MSGDUMP_PREFIX, (void *)hwnd, ch);
1947 }
1948
1949 static __inline void MSGDUMP_API
1950 MD_Edit_OnEmptyUndoBuffer(HWND hwnd)
1951 {
1952 MSGDUMP_TPRINTF(TEXT("%sEM_EMPTYUNDOBUFFER(hwnd:%p)\n"),
1953 MSGDUMP_PREFIX, (void *)hwnd);
1954 }
1955
1956 static __inline INT MSGDUMP_API
1957 MD_Edit_OnGetFirstVisibleLine(HWND hwnd)
1958 {
1959 MSGDUMP_TPRINTF(TEXT("%sEM_GETFIRSTVISIBLELINE(hwnd:%p)\n"),
1960 MSGDUMP_PREFIX, (void *)hwnd);
1961 return 0;
1962 }
1963
1964 static __inline BOOL MSGDUMP_API
1965 MD_Edit_OnSetReadOnly(HWND hwnd, BOOL fReadOnly)
1966 {
1967 MSGDUMP_TPRINTF(TEXT("%sEM_SETREADONLY(hwnd:%p, fReadOnly:%d)\n"),
1968 MSGDUMP_PREFIX, (void *)hwnd, fReadOnly);
1969 return FALSE;
1970 }
1971
1972 static __inline void MSGDUMP_API
1973 MD_Edit_OnSetWordBreakProc(HWND hwnd, EDITWORDBREAKPROC ewbprc)
1974 {
1975 MSGDUMP_TPRINTF(TEXT("%sEM_SETWORDBREAKPROC(hwnd:%p, ewbprc:%p)\n"),
1976 MSGDUMP_PREFIX, (void *)hwnd, *(void **)&ewbprc);
1977 }
1978
1979 static __inline EDITWORDBREAKPROC MSGDUMP_API
1980 MD_Edit_OnGetWordBreakProc(HWND hwnd)
1981 {
1982 MSGDUMP_TPRINTF(TEXT("%sEM_GETWORDBREAKPROC(hwnd:%p)\n"),
1983 MSGDUMP_PREFIX, (void *)hwnd);
1984 return NULL;
1985 }
1986
1987 static __inline UINT MSGDUMP_API
1988 MD_Edit_OnGetPasswordChar(HWND hwnd)
1989 {
1990 MSGDUMP_TPRINTF(TEXT("%sEM_GETPASSWORDCHAR(hwnd:%p)\n"),
1991 MSGDUMP_PREFIX, (void *)hwnd);
1992 return 0;
1993 }
1994
1995 static __inline void MSGDUMP_API
1996 MD_Edit_OnSetMargins(HWND hwnd, UINT fwMargin, WORD wLeft, WORD wRight)
1997 {
1998 MSGDUMP_TPRINTF(TEXT("%sEM_SETMARGINS(hwnd:%p, fwMargin:%u, wLeft:%d, wRight:%d)\n"),
1999 MSGDUMP_PREFIX, (void *)hwnd, fwMargin, wLeft, wRight);
2000 }
2001
2002 static __inline DWORD MSGDUMP_API
2003 MD_Edit_OnGetMargins(HWND hwnd)
2004 {
2005 MSGDUMP_TPRINTF(TEXT("%sEM_GETMARGINS(hwnd:%p)\n"),
2006 MSGDUMP_PREFIX, (void *)hwnd);
2007 return 0;
2008 }
2009
2010 static __inline void MSGDUMP_API
2011 MD_Edit_OnSetLimitText(HWND hwnd, DWORD cbMax)
2012 {
2013 MSGDUMP_TPRINTF(TEXT("%sEM_SETLIMITTEXT(hwnd:%p, cbMax:%ld)\n"),
2014 MSGDUMP_PREFIX, (void *)hwnd, cbMax);
2015 }
2016
2017 static __inline DWORD MSGDUMP_API
2018 MD_Edit_OnGetLimitText(HWND hwnd)
2019 {
2020 MSGDUMP_TPRINTF(TEXT("%sEM_GETLIMITTEXT(hwnd:%p)\n"),
2021 MSGDUMP_PREFIX, (void *)hwnd);
2022 return 0;
2023 }
2024
2025 static __inline void MSGDUMP_API
2026 MD_Edit_OnPosFromChar(HWND hwnd, LPPOINT lpPoint, UINT wCharIndex)
2027 {
2028 MSGDUMP_TPRINTF(TEXT("%sEM_POSFROMCHAR(hwnd:%p, lpPoint:%p, wCharIndex:%u)\n"),
2029 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpPoint, wCharIndex);
2030 }
2031
2032 static __inline LONG MSGDUMP_API
2033 MD_Edit_OnCharFromPos(HWND hwnd, INT x, INT y)
2034 {
2035 MSGDUMP_TPRINTF(TEXT("%sEM_CHARFROMPOS(hwnd:%p, x:%d, y:%d)\n"),
2036 MSGDUMP_PREFIX, (void *)hwnd, x, y);
2037 return 0;
2038 }
2039
2040 static __inline DWORD MSGDUMP_API
2041 MD_Edit_OnSetIMEStatus(HWND hwnd, UINT uType, DWORD dwFlags)
2042 {
2043 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u, dwFlags:0x%08lX)\n"),
2044 MSGDUMP_PREFIX, (void *)hwnd, uType, dwFlags);
2045 return 0;
2046 }
2047
2048 static __inline DWORD MSGDUMP_API
2049 MD_Edit_OnGetIMEStatus(HWND hwnd, UINT uType)
2050 {
2051 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u)\n"),
2052 MSGDUMP_PREFIX, (void *)hwnd, uType);
2053 return 0;
2054 }
2055
2056 static __inline HICON MSGDUMP_API
2057 MD_Static_OnSetIcon(HWND hwnd, HICON hIcon)
2058 {
2059 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p, hIcon:%p)\n"),
2060 MSGDUMP_PREFIX, (void *)hwnd, (void *)hIcon);
2061 return NULL;
2062 }
2063
2064 static __inline HICON MSGDUMP_API
2065 MD_Static_OnGetIcon(HWND hwnd)
2066 {
2067
2068 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p)\n"),
2069 MSGDUMP_PREFIX, (void *)hwnd);
2070 return NULL;
2071 }
2072
2073 static __inline HANDLE MSGDUMP_API
2074 MD_Static_OnSetImage(HWND hwnd, UINT fImageType, HANDLE hImage)
2075 {
2076 MSGDUMP_TPRINTF(TEXT("%sSTM_SETIMAGE(hwnd:%p, fImageType:%u, hImage:%p)\n"),
2077 MSGDUMP_PREFIX, (void *)hwnd, fImageType, (void *)hImage);
2078 return NULL;
2079 }
2080
2081 static __inline HANDLE MSGDUMP_API
2082 MD_Static_OnGetImage(HWND hwnd, UINT fImageType)
2083 {
2084 MSGDUMP_TPRINTF(TEXT("%sSTM_GETIMAGE(hwnd:%p, fImageType:%u)\n"),
2085 MSGDUMP_PREFIX, (void *)hwnd, fImageType);
2086 return NULL;
2087 }
2088
2089 static __inline INT MSGDUMP_API
2090 MD_ListBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
2091 {
2092 if (IsWindowUnicode(hwnd))
2093 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2094 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2095 else
2096 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2097 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2098 return 0;
2099 }
2100
2101 static __inline INT MSGDUMP_API
2102 MD_ListBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
2103 {
2104 if (IsWindowUnicode(hwnd))
2105 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2106 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2107 else
2108 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2109 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2110 return 0;
2111 }
2112
2113 static __inline INT MSGDUMP_API
2114 MD_ListBox_OnDeleteString(HWND hwnd, INT index)
2115 {
2116 MSGDUMP_TPRINTF(TEXT("%sLB_DELETESTRING(hwnd:%p, index:%d)\n"),
2117 MSGDUMP_PREFIX, (void *)hwnd, index);
2118 return 0;
2119 }
2120
2121 static __inline INT MSGDUMP_API
2122 MD_ListBox_OnSelItemRangeEx(HWND hwnd, UINT wFirst, UINT wLast)
2123 {
2124 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGEEX(hwnd:%p, wFirst:%u, wLast:%u)\n"),
2125 MSGDUMP_PREFIX, (void *)hwnd, wFirst, wLast);
2126 return 0;
2127 }
2128
2129 static __inline void MSGDUMP_API
2130 MD_ListBox_OnResetContent(HWND hwnd)
2131 {
2132 MSGDUMP_TPRINTF(TEXT("%sLB_RESETCONTENT(hwnd:%p)\n"),
2133 MSGDUMP_PREFIX, (void *)hwnd);
2134 }
2135
2136 static __inline INT MSGDUMP_API
2137 MD_ListBox_OnSetSel(HWND hwnd, BOOL fSelect, UINT index)
2138 {
2139 MSGDUMP_TPRINTF(TEXT("%sLB_SETSEL(hwnd:%p, fSelect:%d, index:%u)\n"),
2140 MSGDUMP_PREFIX, (void *)hwnd, fSelect, index);
2141 return 0;
2142 }
2143
2144 static __inline INT MSGDUMP_API
2145 MD_ListBox_OnSetCurSel(HWND hwnd, INT index)
2146 {
2147 MSGDUMP_TPRINTF(TEXT("%sLB_SETCURSEL(hwnd:%p, index:%d)\n"),
2148 MSGDUMP_PREFIX, (void *)hwnd, index);
2149 return 0;
2150 }
2151
2152 static __inline INT MSGDUMP_API
2153 MD_ListBox_OnGetSel(HWND hwnd, INT index)
2154 {
2155 MSGDUMP_TPRINTF(TEXT("%sLB_GETSEL(hwnd:%p, index:%d)\n"),
2156 MSGDUMP_PREFIX, (void *)hwnd, index);
2157 return 0;
2158 }
2159
2160 static __inline INT MSGDUMP_API
2161 MD_ListBox_OnGetCurSel(HWND hwnd)
2162 {
2163 MSGDUMP_TPRINTF(TEXT("%sLB_GETCURSEL(hwnd:%p)\n"),
2164 MSGDUMP_PREFIX, (void *)hwnd);
2165 return 0;
2166 }
2167
2168 static __inline INT MSGDUMP_API
2169 MD_ListBox_OnGetText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2170 {
2171 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXT(hwnd:%p, lpszBuffer:%p)\n"),
2172 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpszBuffer);
2173 return 0;
2174 }
2175
2176 static __inline INT MSGDUMP_API
2177 MD_ListBox_OnGetTextLen(HWND hwnd, INT index)
2178 {
2179 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXTLEN(hwnd:%p, index:%d)\n"),
2180 MSGDUMP_PREFIX, (void *)hwnd, index);
2181 return 0;
2182 }
2183
2184 static __inline INT MSGDUMP_API
2185 MD_ListBox_OnGetCount(HWND hwnd)
2186 {
2187 MSGDUMP_TPRINTF(TEXT("%sLB_GETCOUNT(hwnd:%p)\n"),
2188 MSGDUMP_PREFIX, (void *)hwnd);
2189 return 0;
2190 }
2191
2192 static __inline INT MSGDUMP_API
2193 MD_ListBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2194 {
2195 if (IsWindowUnicode(hwnd))
2196 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2197 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2198 else
2199 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2200 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2201 return 0;
2202 }
2203
2204 static __inline INT MSGDUMP_API
2205 MD_ListBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2206 {
2207 if (IsWindowUnicode(hwnd))
2208 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2209 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2210 else
2211 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%hs)\n"),
2212 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2213 return 0;
2214 }
2215
2216 static __inline INT MSGDUMP_API
2217 MD_ListBox_OnGetTopIndex(HWND hwnd)
2218 {
2219 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p)\n"),
2220 MSGDUMP_PREFIX, (void *)hwnd);
2221 return 0;
2222 }
2223
2224 static __inline INT MSGDUMP_API
2225 MD_ListBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2226 {
2227 if (IsWindowUnicode(hwnd))
2228 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2229 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2230 else
2231 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2232 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2233 return 0;
2234 }
2235
2236 static __inline INT MSGDUMP_API
2237 MD_ListBox_OnGetSelCount(HWND hwnd)
2238 {
2239 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELCOUNT(hwnd:%p)\n"),
2240 MSGDUMP_PREFIX, (void *)hwnd);
2241 return 0;
2242 }
2243
2244 static __inline INT MSGDUMP_API
2245 MD_ListBox_OnGetSelItems(HWND hwnd, UINT cItems, LPINT lpnItems)
2246 {
2247 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELITEMS(hwnd:%p, cItems:%u, lpnItems:%p)\n"),
2248 MSGDUMP_PREFIX, (void *)hwnd, cItems, (void *)lpnItems);
2249 return 0;
2250 }
2251
2252 static __inline BOOL MSGDUMP_API
2253 MD_ListBox_OnSetTabStops(HWND hwnd, UINT cTabs, LPINT lpnTabs)
2254 {
2255 MSGDUMP_TPRINTF(TEXT("%sLB_SETTABSTOPS(hwnd:%p, cTabs:%u, lpnTabs:%p)\n"),
2256 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpnTabs);
2257 return FALSE;
2258 }
2259
2260 static __inline INT MSGDUMP_API
2261 MD_ListBox_OnGetHorizontalExtent(HWND hwnd)
2262 {
2263 MSGDUMP_TPRINTF(TEXT("%sLB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2264 MSGDUMP_PREFIX, (void *)hwnd);
2265 return 0;
2266 }
2267
2268 static __inline void MSGDUMP_API
2269 MD_ListBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2270 {
2271 MSGDUMP_TPRINTF(TEXT("%sLB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2272 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2273 }
2274
2275 static __inline void MSGDUMP_API
2276 MD_ListBox_OnSetColumnWidth(HWND hwnd, INT cxColumn)
2277 {
2278 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOLUMNWIDTH(hwnd:%p, cxColumn:%d)\n"),
2279 MSGDUMP_PREFIX, (void *)hwnd, cxColumn);
2280 }
2281
2282 static __inline INT MSGDUMP_API
2283 MD_ListBox_OnAddFile(HWND hwnd, LPCTSTR lpszFilename)
2284 {
2285 if (IsWindowUnicode(hwnd))
2286 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2287 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszFilename);
2288 else
2289 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2290 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszFilename);
2291 return 0;
2292 }
2293
2294 static __inline INT MSGDUMP_API
2295 MD_ListBox_OnSetTopIndex(HWND hwnd, INT index)
2296 {
2297 MSGDUMP_TPRINTF(TEXT("%sLB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2298 MSGDUMP_PREFIX, (void *)hwnd, index);
2299 return 0;
2300 }
2301
2302 static __inline INT MSGDUMP_API
2303 MD_ListBox_OnGetItemRect(HWND hwnd, INT index, RECT FAR *lprc)
2304 {
2305 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMRECT(hwnd:%p, index:%d, lprc:%p)\n"),
2306 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lprc);
2307 return 0;
2308 }
2309
2310 static __inline INT_PTR MSGDUMP_API
2311 MD_ListBox_OnGetItemData(HWND hwnd, INT index)
2312 {
2313 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2314 MSGDUMP_PREFIX, (void *)hwnd, index);
2315 return 0;
2316 }
2317
2318 static __inline INT_PTR MSGDUMP_API
2319 MD_ListBox_OnSetItemData(HWND hwnd, INT index, LPARAM dwData)
2320 {
2321 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2322 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2323 return 0;
2324 }
2325
2326 static __inline INT MSGDUMP_API
2327 MD_ListBox_OnSelItemRange(HWND hwnd, BOOL fSelect, UINT wFirst, UINT wLast)
2328 {
2329 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGE(hwnd:%p, fSelect:%d, wFirst:%u, wLast:%u)\n"),
2330 MSGDUMP_PREFIX, (void *)hwnd, fSelect, wFirst, wLast);
2331 return 0;
2332 }
2333
2334 static __inline INT MSGDUMP_API
2335 MD_ListBox_OnSetAnchorIndex(HWND hwnd, INT index)
2336 {
2337 MSGDUMP_TPRINTF(TEXT("%sLB_SETANCHORINDEX(hwnd:%p, index:%d)\n"),
2338 MSGDUMP_PREFIX, (void *)hwnd, index);
2339 return 0;
2340 }
2341
2342 static __inline INT MSGDUMP_API
2343 MD_ListBox_OnGetAnchorIndex(HWND hwnd)
2344 {
2345 MSGDUMP_TPRINTF(TEXT("%sLB_GETANCHORINDEX(hwnd:%p)\n"),
2346 MSGDUMP_PREFIX, (void *)hwnd);
2347 return 0;
2348 }
2349
2350 static __inline INT MSGDUMP_API
2351 MD_ListBox_OnSetCaretIndex(HWND hwnd, INT index, BOOL fScroll)
2352 {
2353 MSGDUMP_TPRINTF(TEXT("%sLB_SETCARETINDEX(hwnd:%p, index:%d, fScroll:%d)\n"),
2354 MSGDUMP_PREFIX, (void *)hwnd, index, fScroll);
2355 return 0;
2356 }
2357
2358 static __inline INT MSGDUMP_API
2359 MD_ListBox_OnGetCaretIndex(HWND hwnd)
2360 {
2361 MSGDUMP_TPRINTF(TEXT("%sLB_GETCARETINDEX(hwnd:%p)\n"),
2362 MSGDUMP_PREFIX, (void *)hwnd);
2363 return 0;
2364 }
2365
2366 static __inline INT MSGDUMP_API
2367 MD_ListBox_OnSetItemHeight(HWND hwnd, INT index, INT cyItem)
2368 {
2369 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMHEIGHT(hwnd:%p, index:%d, cyItem:%d)\n"),
2370 MSGDUMP_PREFIX, (void *)hwnd, index, cyItem);
2371 return 0;
2372 }
2373
2374 static __inline INT MSGDUMP_API
2375 MD_ListBox_OnGetItemHeight(HWND hwnd, INT index)
2376 {
2377 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2378 MSGDUMP_PREFIX, (void *)hwnd, index);
2379 return 0;
2380 }
2381
2382 static __inline INT MSGDUMP_API
2383 MD_ListBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2384 {
2385 if (IsWindowUnicode(hwnd))
2386 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2387 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2388 else
2389 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2390 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2391 return 0;
2392 }
2393
2394 static __inline LCID MSGDUMP_API
2395 MD_ListBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2396 {
2397 MSGDUMP_TPRINTF(TEXT("%sLB_SETLOCALE(hwnd:%p, wLocaleID:0x%08X)\n"),
2398 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2399 return 0;
2400 }
2401
2402 static __inline LCID MSGDUMP_API
2403 MD_ListBox_OnGetLocale(HWND hwnd)
2404 {
2405 MSGDUMP_TPRINTF(TEXT("%sLB_GETLOCALE(hwnd:%p)\n"),
2406 MSGDUMP_PREFIX, (void *)hwnd);
2407 return 0;
2408 }
2409
2410 static __inline INT MSGDUMP_API
2411 MD_ListBox_OnSetCount(HWND hwnd, INT cItems)
2412 {
2413 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOUNT(hwnd:%p, cItems:%d)\n"),
2414 MSGDUMP_PREFIX, (void *)hwnd, cItems);
2415 return 0;
2416 }
2417
2418 static __inline DWORD MSGDUMP_API
2419 MD_ListBox_OnInitStorage(HWND hwnd, UINT cItems, DWORD cb)
2420 {
2421 MSGDUMP_TPRINTF(TEXT("%sLB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2422 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2423 return 0;
2424 }
2425
2426 static __inline DWORD MSGDUMP_API
2427 MD_ListBox_OnItemFromPoint(HWND hwnd, INT xPos, INT yPos)
2428 {
2429 MSGDUMP_TPRINTF(TEXT("%sLB_ITEMFROMPOINT(hwnd:%p, xPos:%d, yPos:%d)\n"),
2430 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos);
2431 return 0;
2432 }
2433
2434 static __inline DWORD MSGDUMP_API
2435 MD_ComboBox_OnGetEditSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
2436 {
2437 MSGDUMP_TPRINTF(TEXT("%sCB_GETEDITSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
2438 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
2439 return 0;
2440 }
2441
2442 static __inline void MSGDUMP_API
2443 MD_ComboBox_OnLimitText(HWND hwnd, UINT cchLimit)
2444 {
2445 MSGDUMP_TPRINTF(TEXT("%sCB_LIMITTEXT(hwnd:%p, cchLimit:%u)\n"),
2446 MSGDUMP_PREFIX, (void *)hwnd, cchLimit);
2447 }
2448
2449 static __inline INT MSGDUMP_API
2450 MD_ComboBox_OnSetEditSel(HWND hwnd, INT ichStart, INT ichEnd)
2451 {
2452 MSGDUMP_TPRINTF(TEXT("%sCB_SETEDITSEL(hwnd:%p, ichStart:%d, ichEnd:%d)\n"),
2453 MSGDUMP_PREFIX, (void *)hwnd, ichStart, ichEnd);
2454 return 0;
2455 }
2456
2457 static __inline INT MSGDUMP_API
2458 MD_ComboBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
2459 {
2460 if (IsWindowUnicode(hwnd))
2461 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2462 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2463 else
2464 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2465 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2466 return 0;
2467 }
2468
2469 static __inline INT MSGDUMP_API
2470 MD_ComboBox_OnDeleteString(HWND hwnd, INT index)
2471 {
2472 MSGDUMP_TPRINTF(TEXT("%sCB_DELETESTRING(hwnd:%p, index:%d)\n"),
2473 MSGDUMP_PREFIX, (void *)hwnd, index);
2474 return 0;
2475 }
2476
2477 static __inline INT MSGDUMP_API
2478 MD_ComboBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2479 {
2480 if (IsWindowUnicode(hwnd))
2481 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2482 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2483 else
2484 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2485 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2486 return 0;
2487 }
2488
2489 static __inline INT MSGDUMP_API
2490 MD_ComboBox_OnGetCount(HWND hwnd)
2491 {
2492 MSGDUMP_TPRINTF(TEXT("%sCB_GETCOUNT(hwnd:%p)\n"),
2493 MSGDUMP_PREFIX, (void *)hwnd);
2494 return 0;
2495 }
2496
2497 static __inline INT MSGDUMP_API
2498 MD_ComboBox_GetCurSel(HWND hwnd)
2499 {
2500 MSGDUMP_TPRINTF(TEXT("%sCB_GETCURSEL(hwnd:%p)\n"),
2501 MSGDUMP_PREFIX, (void *)hwnd);
2502 return 0;
2503 }
2504
2505 static __inline INT MSGDUMP_API
2506 MD_ComboBox_GetLBText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2507 {
2508 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXT(hwnd:%p, index:%d, lpszBuffer:%p)\n"),
2509 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lpszBuffer);
2510 return 0;
2511 }
2512
2513 static __inline INT MSGDUMP_API
2514 MD_ComboBox_OnGetLBTextLen(HWND hwnd, INT index)
2515 {
2516 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXTLEN(hwnd:%p, index:%d)\n"),
2517 MSGDUMP_PREFIX, (void *)hwnd, index);
2518 return 0;
2519 }
2520
2521 static __inline INT MSGDUMP_API
2522 MD_ComboBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
2523 {
2524 if (IsWindowUnicode(hwnd))
2525 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2526 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2527 else
2528 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2529 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2530 return 0;
2531 }
2532
2533 static __inline void MSGDUMP_API
2534 MD_ComboBox_OnResetContent(HWND hwnd)
2535 {
2536 MSGDUMP_TPRINTF(TEXT("%sCB_RESETCONTENT(hwnd:%p)\n"),
2537 MSGDUMP_PREFIX, (void *)hwnd);
2538 }
2539
2540 static __inline INT MSGDUMP_API
2541 MD_ComboBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2542 {
2543 if (IsWindowUnicode(hwnd))
2544 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2545 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2546 else
2547 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2548 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2549 return 0;
2550 }
2551
2552 static __inline INT MSGDUMP_API
2553 MD_ComboBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszSelect)
2554 {
2555 if (IsWindowUnicode(hwnd))
2556 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%ls)\n"),
2557 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszSelect);
2558 else
2559 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%hs)\n"),
2560 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszSelect);
2561 return 0;
2562 }
2563
2564 static __inline INT MSGDUMP_API
2565 MD_ComboBox_OnSetCurSel(HWND hwnd, INT index)
2566 {
2567 MSGDUMP_TPRINTF(TEXT("%sCB_SETCURSEL(hwnd:%p, index:%d)\n"),
2568 MSGDUMP_PREFIX, (void *)hwnd, index);
2569 return 0;
2570 }
2571
2572 static __inline BOOL MSGDUMP_API
2573 MD_ComboBox_OnShowDropDown(HWND hwnd, BOOL fShow)
2574 {
2575 MSGDUMP_TPRINTF(TEXT("%sCB_SHOWDROPDOWN(hwnd:%p, fShow:%d)\n"),
2576 MSGDUMP_PREFIX, (void *)hwnd, fShow);
2577 return FALSE;
2578 }
2579
2580 static __inline INT_PTR MSGDUMP_API
2581 MD_ComboBox_OnGetItemData(HWND hwnd, INT index)
2582 {
2583 MSGDUMP_TPRINTF(TEXT("%sCB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2584 MSGDUMP_PREFIX, (void *)hwnd, index);
2585 return 0;
2586 }
2587
2588 static __inline INT_PTR MSGDUMP_API
2589 MD_ComboBox_OnSetItemData(HWND hwnd, INT index, DWORD_PTR dwData)
2590 {
2591 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2592 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2593 return 0;
2594 }
2595
2596 static __inline void MSGDUMP_API
2597 MD_ComboBox_OnGetDroppedControlRect(HWND hwnd, RECT FAR *lprc)
2598 {
2599 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDCONTROLRECT(hwnd:%p, lprc:%p)\n"),
2600 MSGDUMP_PREFIX, (void *)hwnd, (void *)lprc);
2601 }
2602
2603 static __inline INT MSGDUMP_API
2604 MD_ComboBox_OnSetItemHeight(HWND hwnd, INT index, INT height)
2605 {
2606 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d, height:%d)\n"),
2607 MSGDUMP_PREFIX, (void *)hwnd, index, height);
2608 return 0;
2609 }
2610
2611 static __inline INT MSGDUMP_API
2612 MD_ComboBox_OnGetItemHeight(HWND hwnd, INT index)
2613 {
2614 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2615 MSGDUMP_PREFIX, (void *)hwnd, index);
2616 return 0;
2617 }
2618
2619 static __inline INT MSGDUMP_API
2620 MD_ComboBox_OnSetExtendedUI(HWND hwnd, BOOL fExtended)
2621 {
2622 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p, fExtended:%d)\n"),
2623 MSGDUMP_PREFIX, (void *)hwnd, fExtended);
2624 return 0;
2625 }
2626
2627 static __inline BOOL MSGDUMP_API
2628 MD_ComboBox_OnGetExtendedUI(HWND hwnd)
2629 {
2630 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p)\n"),
2631 MSGDUMP_PREFIX, (void *)hwnd);
2632 return FALSE;
2633 }
2634
2635 static __inline BOOL MSGDUMP_API
2636 MD_ComboBox_OnGetDroppedState(HWND hwnd)
2637 {
2638 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDSTATE(hwnd:%p)\n"),
2639 MSGDUMP_PREFIX, (void *)hwnd);
2640 return FALSE;
2641 }
2642
2643 static __inline INT MSGDUMP_API
2644 MD_ComboBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2645 {
2646 if (IsWindowUnicode(hwnd))
2647 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2648 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2649 else
2650 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2651 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2652 return 0;
2653 }
2654
2655 static __inline LCID MSGDUMP_API
2656 MD_ComboBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2657 {
2658 MSGDUMP_TPRINTF(TEXT("%sCB_SETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2659 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2660 return 0;
2661 }
2662
2663 static __inline LCID MSGDUMP_API
2664 MD_ComboBox_OnGetLocale(HWND hwnd)
2665 {
2666 MSGDUMP_TPRINTF(TEXT("%sCB_GETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2667 MSGDUMP_PREFIX, (void *)hwnd);
2668 return 0;
2669 }
2670
2671 static __inline INT MSGDUMP_API
2672 MD_ComboBox_OnGetTopIndex(HWND hwnd)
2673 {
2674 MSGDUMP_TPRINTF(TEXT("%sCB_GETTOPINDEX(hwnd:%p)\n"),
2675 MSGDUMP_PREFIX, (void *)hwnd);
2676 return 0;
2677 }
2678
2679 static __inline INT MSGDUMP_API
2680 MD_ComboBox_OnSetTopIndex(HWND hwnd, INT index)
2681 {
2682 MSGDUMP_TPRINTF(TEXT("%sCB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2683 MSGDUMP_PREFIX, (void *)hwnd, index);
2684 return 0;
2685 }
2686
2687 static __inline INT MSGDUMP_API
2688 MD_ComboBox_OnGetHorizontalExtent(HWND hwnd)
2689 {
2690 MSGDUMP_TPRINTF(TEXT("%sCB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2691 MSGDUMP_PREFIX, (void *)hwnd);
2692 return 0;
2693 }
2694
2695 static __inline void MSGDUMP_API
2696 MD_ComboBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2697 {
2698 MSGDUMP_TPRINTF(TEXT("%sCB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2699 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2700 }
2701
2702 static __inline INT MSGDUMP_API
2703 MD_ComboBox_OnGetDroppedWidth(HWND hwnd)
2704 {
2705 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDWIDTH(hwnd:%p)\n"),
2706 MSGDUMP_PREFIX, (void *)hwnd);
2707 return 0;
2708 }
2709
2710 static __inline INT MSGDUMP_API
2711 MD_ComboBox_OnSetDroppedWidth(HWND hwnd, INT wWidth)
2712 {
2713 MSGDUMP_TPRINTF(TEXT("%sCB_SETDROPPEDWIDTH(hwnd:%p, wWidth:%d)\n"),
2714 MSGDUMP_PREFIX, (void *)hwnd, wWidth);
2715 return 0;
2716 }
2717
2718 static __inline INT MSGDUMP_API
2719 MD_ComboBox_OnInitStorage(HWND hwnd, INT cItems, DWORD cb)
2720 {
2721 MSGDUMP_TPRINTF(TEXT("%sCB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2722 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2723 return 0;
2724 }
2725
2726 static __inline INT MSGDUMP_API
2727 MD_ScrollBar_OnSetPos(HWND hwnd, INT nPos, BOOL fRedraw)
2728 {
2729 MSGDUMP_TPRINTF(TEXT("%sSBM_SETPOS(hwnd:%p, nPos:%d, fRedraw:%d)\n"),
2730 MSGDUMP_PREFIX, (void *)hwnd, nPos, fRedraw);
2731 return 0;
2732 }
2733
2734 static __inline INT MSGDUMP_API
2735 MD_ScrollBar_OnGetPos(HWND hwnd)
2736 {
2737 MSGDUMP_TPRINTF(TEXT("%sSBM_GETPOS(hwnd:%p)\n"),
2738 MSGDUMP_PREFIX, (void *)hwnd);
2739 return 0;
2740 }
2741
2742 static __inline INT MSGDUMP_API
2743 MD_ScrollBar_OnSetRange(HWND hwnd, INT nMinPos, INT nMaxPos)
2744 {
2745 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGE(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2746 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2747 return 0;
2748 }
2749
2750 static __inline INT MSGDUMP_API
2751 MD_ScrollBar_OnSetRangeRedraw(HWND hwnd, INT nMinPos, INT nMaxPos)
2752 {
2753 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2754 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2755 return 0;
2756 }
2757
2758 static __inline void MSGDUMP_API
2759 MD_ScrollBar_OnGetRange(HWND hwnd, LPINT lpnMinPos, LPINT lpnMaxPos)
2760 {
2761 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, lpnMinPos:%p, lpnMaxPos:%p)\n"),
2762 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpnMinPos, (void *)lpnMaxPos);
2763 }
2764
2765 static __inline BOOL MSGDUMP_API
2766 MD_ScrollBar_OnEnableArrows(HWND hwnd, UINT fuArrowFlags)
2767 {
2768 MSGDUMP_TPRINTF(TEXT("%sSBM_ENABLE_ARROWS(hwnd:%p, fuArrowFlags:%u)\n"),
2769 MSGDUMP_PREFIX, (void *)hwnd, fuArrowFlags);
2770 return FALSE;
2771 }
2772
2773 static __inline INT MSGDUMP_API
2774 MD_ScrollBar_OnSetScrollInfo(HWND hwnd, BOOL fRedraw, LPSCROLLINFO lpsi)
2775 {
2776 MSGDUMP_TPRINTF(TEXT("%sSBM_SETSCROLLINFO(hwnd:%p, fRedraw:%d, lpsi:%p)\n"),
2777 MSGDUMP_PREFIX, (void *)hwnd, fRedraw, (void *)lpsi);
2778 return 0;
2779 }
2780
2781 static __inline BOOL MSGDUMP_API
2782 MD_ScrollBar_OnGetScrollInfo(HWND hwnd, LPSCROLLINFO lpsi)
2783 {
2784 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLINFO(hwnd:%p, lpsi:%p)\n"),
2785 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsi);
2786 return FALSE;
2787 }
2788
2789 static __inline BOOL MSGDUMP_API
2790 MD_ScrollBar_OnGetScrollBarInfo(HWND hwnd, LPSCROLLBARINFO lpsbi)
2791 {
2792 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLBARINFO(hwnd:%p, lpsbi:%p)\n"),
2793 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsbi);
2794 return FALSE;
2795 }
2796
2797 static __inline COLORREF MSGDUMP_API
2798 MD_ListView_OnGetBkColor(HWND hwnd)
2799 {
2800 MSGDUMP_TPRINTF(TEXT("%sLVM_GETBKCOLOR(hwnd:%p)\n"),
2801 MSGDUMP_PREFIX, (void *)hwnd);
2802 return 0;
2803 }
2804
2805 static __inline BOOL MSGDUMP_API
2806 MD_ListView_OnSetBkColor(HWND hwnd, COLORREF clrBk)
2807 {
2808 MSGDUMP_TPRINTF(TEXT("%sLVM_SETBKCOLOR(hwnd:%p, clrBk:0x%08lX)\n"),
2809 MSGDUMP_PREFIX, (void *)hwnd, clrBk);
2810 return FALSE;
2811 }
2812
2813 static __inline HIMAGELIST MSGDUMP_API
2814 MD_ListView_OnGetImageList(HWND hwnd, INT iImageList)
2815 {
2816 MSGDUMP_TPRINTF(TEXT("%sLVM_GETIMAGELIST(hwnd:%p, iImageList:%d)\n"),
2817 MSGDUMP_PREFIX, (void *)hwnd, iImageList);
2818 return NULL;
2819 }
2820
2821 static __inline HIMAGELIST MSGDUMP_API
2822 MD_ListView_OnSetImageList(HWND hwnd, INT iImageList, HIMAGELIST himl)
2823 {
2824 MSGDUMP_TPRINTF(TEXT("%sLVM_SETIMAGELIST(hwnd:%p, iImageList:%d, himl:%p)\n"),
2825 MSGDUMP_PREFIX, (void *)hwnd, iImageList, (void *)himl);
2826 return NULL;
2827 }
2828
2829 static __inline INT MSGDUMP_API
2830 MD_ListView_OnGetItemCount(HWND hwnd)
2831 {
2832 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMCOUNT(hwnd:%p)\n"),
2833 MSGDUMP_PREFIX, (void *)hwnd);
2834 return 0;
2835 }
2836
2837 static __inline BOOL MSGDUMP_API
2838 MD_ListView_OnGetItemA(HWND hwnd, LV_ITEMA *pitem)
2839 {
2840 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMA(hwnd:%p, pitem:%p)\n"),
2841 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2842 return FALSE;
2843 }
2844
2845 static __inline BOOL MSGDUMP_API
2846 MD_ListView_OnSetItemA(HWND hwnd, const LV_ITEMA *pitem)
2847 {
2848 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMA(hwnd:%p, pitem:%p)\n"),
2849 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2850 return FALSE;
2851 }
2852
2853 static __inline INT MSGDUMP_API
2854 MD_ListView_OnInsertItemA(HWND hwnd, const LV_ITEMA *pitem)
2855 {
2856 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTITEMA(hwnd:%p, pitem:%p)\n"),
2857 MSGDUMP_PREFIX, (void *)hwnd, (void *)pitem);
2858 return 0;
2859 }
2860
2861 static __inline BOOL MSGDUMP_API
2862 MD_ListView_OnDeleteItem(HWND hwnd, INT i)
2863 {
2864 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEITEM(hwnd:%p, i:%d)\n"),
2865 MSGDUMP_PREFIX, (void *)hwnd, i);
2866 return FALSE;
2867 }
2868
2869 static __inline BOOL MSGDUMP_API
2870 MD_ListView_OnDeleteAllItems(HWND hwnd)
2871 {
2872 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETEALLITEMS(hwnd:%p)\n"),
2873 MSGDUMP_PREFIX, (void *)hwnd);
2874 return FALSE;
2875 }
2876
2877 static __inline BOOL MSGDUMP_API
2878 MD_ListView_OnGetCallbackMask(HWND hwnd)
2879 {
2880 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCALLBACKMASK(hwnd:%p)\n"),
2881 MSGDUMP_PREFIX, (void *)hwnd);
2882 return FALSE;
2883 }
2884
2885 static __inline BOOL MSGDUMP_API
2886 MD_ListView_OnSetCallbackMask(HWND hwnd, UINT mask)
2887 {
2888 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCALLBACKMASK(hwnd:%p, mask:%u)\n"),
2889 MSGDUMP_PREFIX, (void *)hwnd, mask);
2890 return FALSE;
2891 }
2892
2893 static __inline INT MSGDUMP_API
2894 MD_ListView_OnGetNextItem(HWND hwnd, INT i, UINT flags)
2895 {
2896 MSGDUMP_TPRINTF(TEXT("%sLVM_GETNEXTITEM(hwnd:%p, i:%d, flags:%u)\n"),
2897 MSGDUMP_PREFIX, (void *)hwnd, i, flags);
2898 return 0;
2899 }
2900
2901 static __inline INT MSGDUMP_API
2902 MD_ListView_OnFindItemA(HWND hwnd, INT iStart, const LV_FINDINFOA *plvfi)
2903 {
2904 MSGDUMP_TPRINTF(TEXT("%sLVM_FINDITEMA(hwnd:%p, iStart:%d, plvfi:%p)\n"),
2905 MSGDUMP_PREFIX, (void *)hwnd, iStart, (void *)plvfi);
2906 return 0;
2907 }
2908
2909 static __inline BOOL MSGDUMP_API
2910 MD_ListView_OnGetItemRect(HWND hwnd, INT i, RECT *prc)
2911 {
2912 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMRECT(hwnd:%p, i:%d, prc:%p)\n"),
2913 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)prc);
2914 return FALSE;
2915 }
2916
2917 static __inline BOOL MSGDUMP_API
2918 MD_ListView_OnSetItemPosition(HWND hwnd, INT i, INT x, INT y)
2919 {
2920 MSGDUMP_TPRINTF(TEXT("%sLVM_SETITEMPOSITION(hwnd:%p, i:%d, x:%d, y:%d)\n"),
2921 MSGDUMP_PREFIX, (void *)hwnd, i, x, y);
2922 return FALSE;
2923 }
2924
2925 static __inline BOOL MSGDUMP_API
2926 MD_ListView_OnGetItemPosition(HWND hwnd, INT i, POINT *ppt)
2927 {
2928 MSGDUMP_TPRINTF(TEXT("%sLVM_GETITEMPOSITION(hwnd:%p, i:%d, ppt:%p)\n"),
2929 MSGDUMP_PREFIX, (void *)hwnd, i, (void *)ppt);
2930 return FALSE;
2931 }
2932
2933 static __inline INT MSGDUMP_API
2934 MD_ListView_OnGetStringWidthA(HWND hwnd, LPCSTR psz)
2935 {
2936 MSGDUMP_TPRINTF(TEXT("%sLVM_GETSTRINGWIDTHA(hwnd:%p, psz:%p)\n"),
2937 MSGDUMP_PREFIX, (void *)hwnd, (void *)psz);
2938 return 0;
2939 }
2940
2941 static __inline INT MSGDUMP_API
2942 MD_ListView_OnHitTest(HWND hwnd, LV_HITTESTINFO *pinfo)
2943 {
2944 MSGDUMP_TPRINTF(TEXT("%sLVM_HITTEST(hwnd:%p, pinfo:%p)\n"),
2945 MSGDUMP_PREFIX, (void *)hwnd, (void *)pinfo);
2946 return 0;
2947 }
2948
2949 static __inline BOOL MSGDUMP_API
2950 MD_ListView_OnEnsureVisible(HWND hwnd, INT i, BOOL fPartialOK)
2951 {
2952 MSGDUMP_TPRINTF(TEXT("%sLVM_ENSUREVISIBLE(hwnd:%p, i:%d, fPartialOK:%d)\n"),
2953 MSGDUMP_PREFIX, (void *)hwnd, i, fPartialOK);
2954 return FALSE;
2955 }
2956
2957 static __inline BOOL MSGDUMP_API
2958 MD_ListView_OnScroll(HWND hwnd, INT dx, INT dy)
2959 {
2960 MSGDUMP_TPRINTF(TEXT("%sLVM_SCROLL(hwnd:%p, dx:%d, dy:%d)\n"),
2961 MSGDUMP_PREFIX, (void *)hwnd, dx, dy);
2962 return FALSE;
2963 }
2964
2965 static __inline BOOL MSGDUMP_API
2966 MD_ListView_OnRedrawItems(HWND hwnd, INT iFirst, INT iLast)
2967 {
2968 MSGDUMP_TPRINTF(TEXT("%sLVM_REDRAWITEMS(hwnd:%p, iFirst:%d, iLast:%d)\n"),
2969 MSGDUMP_PREFIX, (void *)hwnd, iFirst, iLast);
2970 return FALSE;
2971 }
2972
2973 static __inline BOOL MSGDUMP_API
2974 MD_ListView_OnArrange(HWND hwnd, UINT code)
2975 {
2976 MSGDUMP_TPRINTF(TEXT("%sLVM_ARRANGE(hwnd:%p, code:%u)\n"),
2977 MSGDUMP_PREFIX, (void *)hwnd, code);
2978 return FALSE;
2979 }
2980
2981 static __inline HWND MSGDUMP_API
2982 MD_ListView_OnEditLabelA(HWND hwnd, INT i)
2983 {
2984 MSGDUMP_TPRINTF(TEXT("%sLVM_EDITLABELA(hwnd:%p, i:%d)\n"),
2985 MSGDUMP_PREFIX, (void *)hwnd, i);
2986 return NULL;
2987 }
2988
2989 static __inline HWND MSGDUMP_API
2990 MD_ListView_OnGetEditControl(HWND hwnd)
2991 {
2992 MSGDUMP_TPRINTF(TEXT("%sLVM_GETEDITCONTROL(hwnd:%p)\n"),
2993 MSGDUMP_PREFIX, (void *)hwnd);
2994 return NULL;
2995 }
2996
2997 static __inline BOOL MSGDUMP_API
2998 MD_ListView_OnGetColumnA(HWND hwnd, INT iCol, LV_COLUMNA *pcol)
2999 {
3000 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
3001 MSGDUMP_PREFIX, (void *)hwnd, iCol, (void *)pcol);
3002 return FALSE;
3003 }
3004
3005 static __inline BOOL MSGDUMP_API
3006 MD_ListView_OnSetColumnA(HWND hwnd, INT iCol, const LV_COLUMNA *pcol)
3007 {
3008 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
3009 MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3010 return FALSE;
3011 }
3012
3013 static __inline INT MSGDUMP_API
3014 MD_ListView_OnInsertColumnA(HWND hwnd, INT iCol, const LV_COLUMNA *pcol)
3015 {
3016 MSGDUMP_TPRINTF(TEXT("%sLVM_INSERTCOLUMNA(hwnd:%p, iCol:%d, pcol:%p)\n"),
3017 MSGDUMP_PREFIX, (void *)hwnd, iCol, (const void *)pcol);
3018 return 0;
3019 }
3020
3021 static __inline BOOL MSGDUMP_API
3022 MD_ListView_OnDeleteColumn(HWND hwnd, INT iCol)
3023 {
3024 MSGDUMP_TPRINTF(TEXT("%sLVM_DELETECOLUMN(hwnd:%p, iCol:%d)\n"),
3025 MSGDUMP_PREFIX, (void *)hwnd, iCol);
3026 return FALSE;
3027 }
3028
3029 static __inline INT MSGDUMP_API
3030 MD_ListView_OnGetColumnWidth(HWND hwnd, INT iCol)
3031 {
3032 MSGDUMP_TPRINTF(TEXT("%sLVM_GETCOLUMNWIDTH(hwnd:%p, iCol:%d)\n"),
3033 MSGDUMP_PREFIX, (void *)hwnd, iCol);
3034 return 0;
3035 }
3036
3037 static __inline BOOL MSGDUMP_API
3038 MD_ListView_OnSetColumnWidth(HWND hwnd, INT iCol, INT cx)
3039 {
3040 MSGDUMP_TPRINTF(TEXT("%sLVM_SETCOLUMNWIDTH(hwnd:%p, iCol:%d, cx:%d)\n"),
3041 MSGDUMP_PREFIX, (void *)hwnd, iCol, cx);
3042 return FALSE;
3043 }
3044
3045 static __inline HWND MSGDUMP_API
3046 MD_ListView_OnGetHeader(HWND hwnd)
3047 {
3048 MSGDUMP_TPRINTF(TEXT("%sLVM_GETHEADER(hwnd:%p)\n"),
3049 MSGDUMP_PREFIX, (void *)hwnd);
3050 return NULL;
3051 }