[SDK][INCLUDE] msgdump.h registered message support
[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 5 /* Version 5 */
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 #include <strsafe.h>
21
22 #ifndef MSGDUMP_TPRINTF
23 #error Please define MSGDUMP_TPRINTF macro before #include "msgdump.h".
24 #endif
25
26 #ifndef MSGDUMP_API
27 #define MSGDUMP_API WINAPI
28 #endif
29
30 #ifndef MSGDUMP_PREFIX
31 #define MSGDUMP_PREFIX TEXT("")
32 #endif
33
34 /* MD_msgdump function */
35 static __inline LRESULT MSGDUMP_API
36 MD_msgdump(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
37
38 /* MD_msgresult function */
39 static __inline LRESULT MSGDUMP_API
40 MD_msgresult(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT lResult);
41
42 /*---- The below codes are boring details of MD_msgdump and MD_msgresult implementation. ----*/
43
44 #define MSGDUMP_MAX_RECT_TEXT 64
45
46 static __inline const TCHAR * MSGDUMP_API
47 MD_rect_text(TCHAR *buf, size_t bufsize, const RECT *prc)
48 {
49 if (prc == NULL)
50 {
51 StringCbCopy(buf, bufsize, TEXT("(null)"));
52 }
53 else
54 {
55 StringCbPrintf(buf, bufsize, TEXT("(%ld, %ld, %ld, %ld)"),
56 prc->left, prc->top, prc->right, prc->bottom);
57 }
58 return buf;
59 }
60
61 static __inline LRESULT MSGDUMP_API
62 MD_OnUnknown(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
63 {
64 TCHAR szName[64];
65 if (0xC000 <= uMsg && uMsg <= 0xFFFF &&
66 GlobalGetAtomName(uMsg, szName, ARRAYSIZE(szName)))
67 {
68 // RegisterWindowMessage'd message
69 MSGDUMP_TPRINTF(TEXT("%s'%s'(%u)(hwnd:%p, wParam:%p, lParam:%p)\n"),
70 MSGDUMP_PREFIX, szName, uMsg, (void *)hwnd, (void *)wParam,
71 (void *)lParam);
72 return 0;
73 }
74
75 MSGDUMP_TPRINTF(TEXT("%sWM_%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
76 MSGDUMP_PREFIX, uMsg, (void *)hwnd, (void *)wParam, (void *)lParam);
77 return 0;
78 }
79
80 static __inline LRESULT MSGDUMP_API
81 MD_OnUser(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
82 {
83 MSGDUMP_TPRINTF(TEXT("%sWM_USER+%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
84 MSGDUMP_PREFIX, uMsg - WM_USER, (void *)hwnd, (void *)wParam, (void *)lParam);
85 return 0;
86 }
87
88 static __inline LRESULT MSGDUMP_API
89 MD_OnApp(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
90 {
91 MSGDUMP_TPRINTF(TEXT("%sWM_APP+%u(hwnd:%p, wParam:%p, lParam:%p)\n"),
92 MSGDUMP_PREFIX, uMsg - WM_APP, (void *)hwnd, (void *)wParam, (void *)lParam);
93 return 0;
94 }
95
96 static __inline LRESULT MSGDUMP_API
97 MD_OnNull(HWND hwnd)
98 {
99 MSGDUMP_TPRINTF(TEXT("%sWM_NULL(hwnd:%p)\n"),
100 MSGDUMP_PREFIX, (void *)hwnd);
101 return 0;
102 }
103
104 static __inline BOOL MSGDUMP_API
105 MD_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
106 {
107 MSGDUMP_TPRINTF(TEXT("%sWM_CREATE(hwnd:%p, lpCreateStruct:%p)\n"),
108 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
109 return TRUE;
110 }
111
112 static __inline void MSGDUMP_API
113 MD_OnDestroy(HWND hwnd)
114 {
115 MSGDUMP_TPRINTF(TEXT("%sWM_DESTROY(hwnd:%p)\n"),
116 MSGDUMP_PREFIX, (void *)hwnd);
117 }
118
119 static __inline void MSGDUMP_API
120 MD_OnMove(HWND hwnd, int x, int y)
121 {
122 MSGDUMP_TPRINTF(TEXT("%sWM_MOVE(hwnd:%p, x:%d, y:%d)\n"),
123 MSGDUMP_PREFIX, (void *)hwnd, x, y);
124 }
125
126 static __inline void MSGDUMP_API
127 MD_OnSize(HWND hwnd, UINT state, int cx, int cy)
128 {
129 MSGDUMP_TPRINTF(TEXT("%sWM_SIZE(hwnd:%p, state:%u, cx:%d, cy:%d)\n"),
130 MSGDUMP_PREFIX, (void *)hwnd, state, cx, cy);
131 }
132
133 static __inline void MSGDUMP_API
134 MD_OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized)
135 {
136 MSGDUMP_TPRINTF(TEXT("%sWM_ACTIVATE(hwnd:%p, state:%u, hwndActDeact:%p, fMinimized:%d)\n"),
137 MSGDUMP_PREFIX, (void *)hwnd, state, (void *)hwndActDeact, fMinimized);
138 }
139
140 static __inline void MSGDUMP_API
141 MD_OnSetFocus(HWND hwnd, HWND hwndOldFocus)
142 {
143 MSGDUMP_TPRINTF(TEXT("%sWM_SETFOCUS(hwnd:%p, hwndOldFocus:%p)\n"),
144 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndOldFocus);
145 }
146
147 static __inline void MSGDUMP_API
148 MD_OnKillFocus(HWND hwnd, HWND hwndNewFocus)
149 {
150 MSGDUMP_TPRINTF(TEXT("%sWM_KILLFOCUS(hwnd:%p, hwndNewFocus:%p)\n"),
151 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewFocus);
152 }
153
154 static __inline void MSGDUMP_API
155 MD_OnEnable(HWND hwnd, BOOL fEnable)
156 {
157 MSGDUMP_TPRINTF(TEXT("%sWM_ENABLE(hwnd:%p, fEnable:%d)\n"),
158 MSGDUMP_PREFIX, (void *)hwnd, fEnable);
159 }
160
161 static __inline void MSGDUMP_API
162 MD_OnSetRedraw(HWND hwnd, BOOL fRedraw)
163 {
164 MSGDUMP_TPRINTF(TEXT("%sWM_SETREDRAW(hwnd:%p, fRedraw:%d)\n"),
165 MSGDUMP_PREFIX, (void *)hwnd, fRedraw);
166 }
167
168 static __inline void MSGDUMP_API
169 MD_OnSetText(HWND hwnd, LPCTSTR lpszText)
170 {
171 if (IsWindowUnicode(hwnd))
172 MSGDUMP_TPRINTF(TEXT("%sWM_SETTEXT(hwnd:%p, lpszText:%ls)\n"),
173 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszText);
174 else
175 MSGDUMP_TPRINTF(TEXT("%sWM_SETTEXT(hwnd:%p, lpszText:%hs)\n"),
176 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszText);
177 }
178
179 static __inline INT MSGDUMP_API
180 MD_OnGetText(HWND hwnd, int cchTextMax, LPTSTR lpszText)
181 {
182 MSGDUMP_TPRINTF(TEXT("%sWM_GETTEXT(hwnd:%p, cchTextMax:%d, lpszText:%p)\n"),
183 MSGDUMP_PREFIX, (void *)hwnd, cchTextMax, (void *)lpszText);
184 return 0;
185 }
186
187 static __inline INT MSGDUMP_API
188 MD_OnGetTextLength(HWND hwnd)
189 {
190 MSGDUMP_TPRINTF(TEXT("%sWM_GETTEXTLENGTH(hwnd:%p)\n"),
191 MSGDUMP_PREFIX, (void *)hwnd);
192 return 0;
193 }
194
195 static __inline void MSGDUMP_API
196 MD_OnPaint(HWND hwnd)
197 {
198 MSGDUMP_TPRINTF(TEXT("%sWM_PAINT(hwnd:%p)\n"),
199 MSGDUMP_PREFIX, (void *)hwnd);
200 }
201
202 static __inline void MSGDUMP_API
203 MD_OnClose(HWND hwnd)
204 {
205 MSGDUMP_TPRINTF(TEXT("%sWM_CLOSE(hwnd:%p)\n"),
206 MSGDUMP_PREFIX, (void *)hwnd);
207 }
208
209 static __inline BOOL MSGDUMP_API
210 MD_OnQueryEndSession(HWND hwnd)
211 {
212 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYENDSESSION(hwnd:%p)\n"),
213 MSGDUMP_PREFIX, (void *)hwnd);
214 return FALSE;
215 }
216
217 static __inline BOOL MSGDUMP_API
218 MD_OnQueryOpen(HWND hwnd)
219 {
220 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYOPEN(hwnd:%p)\n"),
221 MSGDUMP_PREFIX, (void *)hwnd);
222 return FALSE;
223 }
224
225 static __inline void MSGDUMP_API
226 MD_OnEndSession(HWND hwnd, BOOL fEnding)
227 {
228 MSGDUMP_TPRINTF(TEXT("%sWM_ENDSESSION(hwnd:%p, fEnding:%d)\n"),
229 MSGDUMP_PREFIX, (void *)hwnd, fEnding);
230 }
231
232 static __inline void MSGDUMP_API
233 MD_OnQuit(HWND hwnd, int exitCode)
234 {
235 MSGDUMP_TPRINTF(TEXT("%sWM_QUIT(hwnd:%p, exitCode:%d)\n"),
236 MSGDUMP_PREFIX, (void *)hwnd, exitCode);
237 }
238
239 static __inline BOOL MSGDUMP_API
240 MD_OnEraseBkgnd(HWND hwnd, HDC hdc)
241 {
242 MSGDUMP_TPRINTF(TEXT("%sWM_ERASEBKGND(hwnd:%p, hdc:%p)\n"),
243 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc);
244 return FALSE;
245 }
246
247 static __inline void MSGDUMP_API
248 MD_OnSysColorChange(HWND hwnd)
249 {
250 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOLORCHANGE(hwnd:%p)\n"),
251 MSGDUMP_PREFIX, (void *)hwnd);
252 }
253
254 static __inline void MSGDUMP_API
255 MD_OnShowWindow(HWND hwnd, BOOL fShow, UINT status)
256 {
257 MSGDUMP_TPRINTF(TEXT("%sWM_SHOWWINDOW(hwnd:%p, fShow:%d, status:%u)\n"),
258 MSGDUMP_PREFIX, (void *)hwnd, fShow, status);
259 }
260
261 static __inline void MSGDUMP_API
262 MD_OnWinIniChange(HWND hwnd, LPCTSTR lpszSectionName)
263 {
264 if (IsWindowUnicode(hwnd))
265 MSGDUMP_TPRINTF(TEXT("%sWM_WININICHANGE(hwnd:%p, lpszSectionName:%ls)\n"),
266 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszSectionName);
267 else
268 MSGDUMP_TPRINTF(TEXT("%sWM_WININICHANGE(hwnd:%p, lpszSectionName:%hs)\n"),
269 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszSectionName);
270 }
271
272 static __inline void MSGDUMP_API
273 MD_OnSettingChange(HWND hwnd, WPARAM wParam, LPARAM lParam)
274 {
275 MSGDUMP_TPRINTF(TEXT("%sWM_SETTINGCHANGE(hwnd:%p)\n"),
276 MSGDUMP_PREFIX, (void *)hwnd);
277 }
278
279 static __inline void MSGDUMP_API
280 MD_OnDevModeChange(HWND hwnd, LPCTSTR lpszDeviceName)
281 {
282 if (IsWindowUnicode(hwnd))
283 MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%ls)\n"),
284 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszDeviceName);
285 else
286 MSGDUMP_TPRINTF(TEXT("%sWM_DEVMODECHANGE(hwnd:%p, lpszDeviceName:%hs)\n"),
287 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszDeviceName);
288 }
289
290 static __inline void MSGDUMP_API
291 MD_OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId)
292 {
293 MSGDUMP_TPRINTF(TEXT("%sWM_ACTIVATEAPP(hwnd:%p, fActivate:%d, dwThreadId:0x%08lX)\n"),
294 MSGDUMP_PREFIX, (void *)hwnd, fActivate, dwThreadId);
295 }
296
297 static __inline void MSGDUMP_API
298 MD_OnFontChange(HWND hwnd)
299 {
300 MSGDUMP_TPRINTF(TEXT("%sWM_FONTCHANGE(hwnd:%p)\n"),
301 MSGDUMP_PREFIX, (void *)hwnd);
302 }
303
304 static __inline void MSGDUMP_API
305 MD_OnTimeChange(HWND hwnd)
306 {
307 MSGDUMP_TPRINTF(TEXT("%sWM_TIMECHANGE(hwnd:%p)\n"),
308 MSGDUMP_PREFIX, (void *)hwnd);
309 }
310
311 static __inline void MSGDUMP_API
312 MD_OnCancelMode(HWND hwnd)
313 {
314 MSGDUMP_TPRINTF(TEXT("%sWM_CANCELMODE(hwnd:%p)\n"),
315 MSGDUMP_PREFIX, (void *)hwnd);
316 }
317
318 static __inline BOOL MSGDUMP_API
319 MD_OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg)
320 {
321 MSGDUMP_TPRINTF(TEXT("%sWM_SETCURSOR(hwnd:%p, hwndCursor:%p, codeHitTest:%u, msg:%u)\n"),
322 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCursor, codeHitTest, msg);
323 return FALSE;
324 }
325
326 static __inline int MSGDUMP_API
327 MD_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg)
328 {
329 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEACTIVATE(hwnd:%p, hwndTopLevel:%p, codeHitTest:%u, msg:%u)\n"),
330 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTopLevel, codeHitTest, msg);
331 return 0;
332 }
333
334 static __inline void MSGDUMP_API
335 MD_OnChildActivate(HWND hwnd)
336 {
337 MSGDUMP_TPRINTF(TEXT("%sWM_CHILDACTIVATE(hwnd:%p)\n"),
338 MSGDUMP_PREFIX, (void *)hwnd);
339 }
340
341 static __inline void MSGDUMP_API
342 MD_OnQueueSync(HWND hwnd)
343 {
344 MSGDUMP_TPRINTF(TEXT("%sWM_QUEUESYNC(hwnd:%p)\n"),
345 MSGDUMP_PREFIX, (void *)hwnd);
346 }
347
348 static __inline void MSGDUMP_API
349 MD_OnGetMinMaxInfo(HWND hwnd, LPMINMAXINFO lpMinMaxInfo)
350 {
351 MSGDUMP_TPRINTF(TEXT("%sWM_GETMINMAXINFO(hwnd:%p, lpMinMaxInfo:%p)\n"),
352 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMinMaxInfo);
353 }
354
355 static __inline BOOL MSGDUMP_API
356 MD_OnIconEraseBkgnd(HWND hwnd, HDC hdc)
357 {
358 MSGDUMP_TPRINTF(TEXT("%sWM_ICONERASEBKGND(hwnd:%p, hdc:%p)\n"),
359 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc);
360 return FALSE;
361 }
362
363 static __inline HWND MSGDUMP_API
364 MD_OnNextDlgCtl(HWND hwnd, HWND hwndSetFocus, BOOL fNext)
365 {
366 MSGDUMP_TPRINTF(TEXT("%sWM_NEXTDLGCTL(hwnd:%p, hwndSetFocus:%p, fNext:%d)\n"),
367 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndSetFocus, fNext);
368 return NULL;
369 }
370
371 static __inline void MSGDUMP_API
372 MD_OnSpoolerStatus(HWND hwnd, UINT status, int cJobInQueue)
373 {
374 MSGDUMP_TPRINTF(TEXT("%sWM_SPOOLERSTATUS(hwnd:%p, status:%u, cJobInQueue:%d)\n"),
375 MSGDUMP_PREFIX, (void *)hwnd, status, cJobInQueue);
376 }
377
378 static __inline void MSGDUMP_API
379 MD_OnDrawItem(HWND hwnd, const DRAWITEMSTRUCT * lpDrawItem)
380 {
381 MSGDUMP_TPRINTF(TEXT("%sWM_DRAWITEM(hwnd:%p, lpDrawItem:%p)\n"),
382 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDrawItem);
383 }
384
385 static __inline void MSGDUMP_API
386 MD_OnMeasureItem(HWND hwnd, MEASUREITEMSTRUCT * lpMeasureItem)
387 {
388 MSGDUMP_TPRINTF(TEXT("%sWM_MEASUREITEM(hwnd:%p, lpMeasureItem:%p)\n"),
389 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpMeasureItem);
390 }
391
392 static __inline void MSGDUMP_API
393 MD_OnDeleteItem(HWND hwnd, const DELETEITEMSTRUCT * lpDeleteItem)
394 {
395 MSGDUMP_TPRINTF(TEXT("%sWM_DELETEITEM(hwnd:%p, lpDeleteItem:%p)\n"),
396 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpDeleteItem);
397 }
398
399 static __inline int MSGDUMP_API
400 MD_OnVkeyToItem(HWND hwnd, UINT vk, HWND hwndListbox, int iCaret)
401 {
402 MSGDUMP_TPRINTF(TEXT("%sWM_VKEYTOITEM(hwnd:%p, vk:%u, hwndListbox:%p, iCaret:%d)\n"),
403 MSGDUMP_PREFIX, (void *)hwnd, vk, (void *)hwndListbox, iCaret);
404 return 0;
405 }
406
407 static __inline int MSGDUMP_API
408 MD_OnCharToItem(HWND hwnd, UINT ch, HWND hwndListbox, int iCaret)
409 {
410 MSGDUMP_TPRINTF(TEXT("%sWM_CHARTOITEM(hwnd:%p, ch:%u, hwndListbox:%p, iCaret:%d)\n"),
411 MSGDUMP_PREFIX, (void *)hwnd, ch, (void *)hwndListbox, iCaret);
412 return 0;
413 }
414
415 static __inline void MSGDUMP_API
416 MD_OnSetFont(HWND hwnd, HFONT hfont, BOOL fRedraw)
417 {
418 MSGDUMP_TPRINTF(TEXT("%sWM_SETFONT(hwnd:%p, hfont:%p, fRedraw:%d)\n"),
419 MSGDUMP_PREFIX, (void *)hwnd, (void *)hfont, fRedraw);
420 }
421
422 static __inline HFONT MSGDUMP_API
423 MD_OnGetFont(HWND hwnd)
424 {
425 MSGDUMP_TPRINTF(TEXT("%sWM_GETFONT(hwnd:%p)\n"),
426 MSGDUMP_PREFIX, (void *)hwnd);
427 return NULL;
428 }
429
430 static __inline HICON MSGDUMP_API
431 MD_OnQueryDragIcon(HWND hwnd)
432 {
433 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDRAGICON(hwnd:%p)\n"),
434 MSGDUMP_PREFIX, (void *)hwnd);
435 return NULL;
436 }
437
438 static __inline int MSGDUMP_API
439 MD_OnCompareItem(HWND hwnd, const COMPAREITEMSTRUCT * lpCompareItem)
440 {
441 MSGDUMP_TPRINTF(TEXT("%sWM_COMPAREITEM(hwnd:%p, lpCompareItem:%p)\n"),
442 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCompareItem);
443 return 0;
444 }
445
446 static __inline void MSGDUMP_API
447 MD_OnCompacting(HWND hwnd, UINT compactRatio)
448 {
449 MSGDUMP_TPRINTF(TEXT("%sWM_COMPACTING(hwnd:%p, compactRatio:%u)\n"),
450 MSGDUMP_PREFIX, (void *)hwnd, compactRatio);
451 }
452
453 static __inline void MSGDUMP_API
454 MD_OnCommNotify(HWND hwnd, int cid, UINT flags)
455 {
456 MSGDUMP_TPRINTF(TEXT("%sWM_COMMNOTIFY(hwnd:%p, cid:%d, flags:%u)\n"),
457 MSGDUMP_PREFIX, (void *)hwnd, cid, flags);
458 }
459
460 static __inline BOOL MSGDUMP_API
461 MD_OnWindowPosChanging(HWND hwnd, LPWINDOWPOS lpwpos)
462 {
463 MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGING(hwnd:%p, lpwpos:%p)\n"),
464 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
465 return FALSE;
466 }
467
468 static __inline void MSGDUMP_API
469 MD_OnWindowPosChanged(HWND hwnd, const LPWINDOWPOS lpwpos)
470 {
471 MSGDUMP_TPRINTF(TEXT("%sWM_WINDOWPOSCHANGED(hwnd:%p, lpwpos:%p)\n"),
472 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpwpos);
473 }
474
475 static __inline void MSGDUMP_API
476 MD_OnPower(HWND hwnd, int code)
477 {
478 MSGDUMP_TPRINTF(TEXT("%sWM_POWER(hwnd:%p, code:%d)\n"),
479 MSGDUMP_PREFIX, (void *)hwnd, code);
480 }
481
482 static __inline BOOL MSGDUMP_API
483 MD_OnCopyData(HWND hwnd, HWND hwndFrom, PCOPYDATASTRUCT pcds)
484 {
485 MSGDUMP_TPRINTF(TEXT("%sWM_COPYDATA(hwnd:%p, hwndFrom:%p, pcds:%p)\n"),
486 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFrom, (void *)pcds);
487 return FALSE;
488 }
489
490 static __inline LRESULT MSGDUMP_API
491 MD_OnNotify(HWND hwnd, int idFrom, LPNMHDR pnmhdr)
492 {
493 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFY(hwnd:%p, idFrom:%d, pnmhdr:%p)\n"),
494 MSGDUMP_PREFIX, (void *)hwnd, idFrom, (void *)pnmhdr);
495 return 0;
496 }
497
498 static __inline void MSGDUMP_API
499 MD_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos)
500 {
501 MSGDUMP_TPRINTF(TEXT("%sWM_CONTEXTMENU(hwnd:%p, hwndContext:%p, xPos:%u, yPos:%u)\n"),
502 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndContext, xPos, yPos);
503 }
504
505 static __inline void MSGDUMP_API
506 MD_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen)
507 {
508 MSGDUMP_TPRINTF(TEXT("%sWM_DISPLAYCHANGE(hwnd:%p, bitsPerPixel:%u, cxScreen:%u, cyScreen:%u)\n"),
509 MSGDUMP_PREFIX, (void *)hwnd, bitsPerPixel, cxScreen, cyScreen);
510 }
511
512 static __inline BOOL MSGDUMP_API
513 MD_OnNCCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
514 {
515 MSGDUMP_TPRINTF(TEXT("%sWM_NCCREATE(hwnd:%p, lpCreateStruct:%p)\n"),
516 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpCreateStruct);
517 return FALSE;
518 }
519
520 static __inline void MSGDUMP_API
521 MD_OnNCDestroy(HWND hwnd)
522 {
523 MSGDUMP_TPRINTF(TEXT("%sWM_NCDESTROY(hwnd:%p)\n"),
524 MSGDUMP_PREFIX, (void *)hwnd);
525 }
526
527 static __inline UINT MSGDUMP_API
528 MD_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp)
529 {
530 MSGDUMP_TPRINTF(TEXT("%sWM_NCCALCSIZE(hwnd:%p, fCalcValidRects:%d, lpcsp:%p)\n"),
531 MSGDUMP_PREFIX, (void *)hwnd, fCalcValidRects, (void *)lpcsp);
532 return 0;
533 }
534
535 static __inline UINT MSGDUMP_API
536 MD_OnNCHitTest(HWND hwnd, int x, int y)
537 {
538 MSGDUMP_TPRINTF(TEXT("%sWM_NCHITTEST(hwnd:%p, x:%d, y:%d)\n"),
539 MSGDUMP_PREFIX, (void *)hwnd, x, y);
540 return 0;
541 }
542
543 static __inline void MSGDUMP_API
544 MD_OnNCPaint(HWND hwnd, HRGN hrgn)
545 {
546 MSGDUMP_TPRINTF(TEXT("%sWM_NCPAINT(hwnd:%p, hrgn:%p)\n"),
547 MSGDUMP_PREFIX, (void *)hwnd, (void *)hrgn);
548 }
549
550 static __inline BOOL MSGDUMP_API
551 MD_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized)
552 {
553 MSGDUMP_TPRINTF(TEXT("%sWM_NCACTIVATE(hwnd:%p, fActive:%d, hwndActDeact:%p, fMinimized:%d)\n"),
554 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActDeact, fMinimized);
555 return FALSE;
556 }
557
558 static __inline UINT MSGDUMP_API
559 MD_OnGetDlgCode(HWND hwnd, LPMSG lpmsg)
560 {
561 MSGDUMP_TPRINTF(TEXT("%sWM_GETDLGCODE(hwnd:%p, lpmsg:%p)\n"),
562 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmsg);
563 return 0;
564 }
565
566 static __inline void MSGDUMP_API
567 MD_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest)
568 {
569 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEMOVE(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
570 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
571 }
572
573 static __inline void MSGDUMP_API
574 MD_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
575 {
576 if (fDoubleClick)
577 {
578 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
579 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
580 }
581 else
582 {
583 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
584 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
585 }
586 }
587
588 static __inline void MSGDUMP_API
589 MD_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
590 {
591 MSGDUMP_TPRINTF(TEXT("%sWM_NCLBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
592 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
593 }
594
595 static __inline void MSGDUMP_API
596 MD_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
597 {
598 if (fDoubleClick)
599 {
600 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
601 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
602 }
603 else
604 {
605 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
606 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
607 }
608 }
609
610 static __inline void MSGDUMP_API
611 MD_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
612 {
613 MSGDUMP_TPRINTF(TEXT("%sWM_NCRBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
614 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
615 }
616
617 static __inline void MSGDUMP_API
618 MD_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest)
619 {
620 if (fDoubleClick)
621 {
622 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
623 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
624 }
625 else
626 {
627 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONDOWN(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
628 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
629 }
630 }
631
632 static __inline void MSGDUMP_API
633 MD_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest)
634 {
635 MSGDUMP_TPRINTF(TEXT("%sWM_NCMBUTTONUP(hwnd:%p, x:%d, y:%d, codeHitTest:%u)\n"),
636 MSGDUMP_PREFIX, (void *)hwnd, x, y, codeHitTest);
637 }
638
639 static __inline void MSGDUMP_API
640 MD_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
641 {
642 if (fDown)
643 {
644 MSGDUMP_TPRINTF(TEXT("%sWM_KEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
645 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
646 }
647 else
648 {
649 MSGDUMP_TPRINTF(TEXT("%sWM_KEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
650 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
651 }
652 }
653
654 static __inline void MSGDUMP_API
655 MD_OnChar(HWND hwnd, TCHAR ch, int cRepeat)
656 {
657 MSGDUMP_TPRINTF(TEXT("%sWM_CHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
658 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
659 }
660
661 static __inline void MSGDUMP_API
662 MD_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
663 {
664 MSGDUMP_TPRINTF(TEXT("%sWM_DEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
665 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
666 }
667
668 static __inline void MSGDUMP_API
669 MD_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
670 {
671 if (fDown)
672 {
673 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYDOWN(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
674 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
675 }
676 else
677 {
678 MSGDUMP_TPRINTF(TEXT("%sWM_SYSKEYUP(hwnd:%p, vk:%u, cRepeat:%d, flags:%u)\n"),
679 MSGDUMP_PREFIX, (void *)hwnd, vk, cRepeat, flags);
680 }
681 }
682
683 static __inline void MSGDUMP_API
684 MD_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat)
685 {
686 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
687 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
688 }
689
690 static __inline void MSGDUMP_API
691 MD_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat)
692 {
693 MSGDUMP_TPRINTF(TEXT("%sWM_SYSDEADCHAR(hwnd:%p, ch:%u, cRepeat:%d)\n"),
694 MSGDUMP_PREFIX, (void *)hwnd, ch, cRepeat);
695 }
696
697 static __inline BOOL MSGDUMP_API
698 MD_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
699 {
700 MSGDUMP_TPRINTF(TEXT("%sWM_INITDIALOG(hwnd:%p, hwndFocus:%p, lParam:%p)\n"),
701 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndFocus, (void *)lParam);
702 return FALSE;
703 }
704
705 static __inline void MSGDUMP_API
706 MD_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
707 {
708 MSGDUMP_TPRINTF(TEXT("%sWM_COMMAND(hwnd:%p, id:%d, hwndCtl:%p, codeNotify:%u)\n"),
709 MSGDUMP_PREFIX, (void *)hwnd, id, (void *)hwndCtl, codeNotify);
710 }
711
712 static __inline void MSGDUMP_API
713 MD_OnSysCommand(HWND hwnd, UINT cmd, int x, int y)
714 {
715 MSGDUMP_TPRINTF(TEXT("%sWM_SYSCOMMAND(hwnd:%p, cmd:%u, x:%d, y:%d)\n"),
716 MSGDUMP_PREFIX, (void *)hwnd, cmd, x, y);
717 }
718
719 static __inline void MSGDUMP_API
720 MD_OnTimer(HWND hwnd, UINT id)
721 {
722 MSGDUMP_TPRINTF(TEXT("%sWM_TIMER(hwnd:%p, id:%u)\n"),
723 MSGDUMP_PREFIX, (void *)hwnd, id);
724 }
725
726 static __inline void MSGDUMP_API
727 MD_OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
728 {
729 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
730 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
731 }
732
733 static __inline void MSGDUMP_API
734 MD_OnVScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos)
735 {
736 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLL(hwnd:%p, hwndCtl:%p, code:%u, pos:%d)\n"),
737 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCtl, code, pos);
738 }
739
740 static __inline void MSGDUMP_API
741 MD_OnInitMenu(HWND hwnd, HMENU hMenu)
742 {
743 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENU(hwnd:%p, hMenu:%p)\n"),
744 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu);
745 }
746
747 static __inline void MSGDUMP_API
748 MD_OnInitMenuPopup(HWND hwnd, HMENU hMenu, UINT item, BOOL fSystemMenu)
749 {
750 MSGDUMP_TPRINTF(TEXT("%sWM_INITMENUPOPUP(hwnd:%p, hMenu:%p, item:%u, fSystemMenu:%d)\n"),
751 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, item, fSystemMenu);
752 }
753
754 static __inline void MSGDUMP_API
755 MD_OnMenuSelect(HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags)
756 {
757 MSGDUMP_TPRINTF(TEXT("%sWM_MENUSELECT(hwnd:%p, hmenu:%p, item:%d, hmenuPopup:%p, flags:%u)\n"),
758 MSGDUMP_PREFIX, (void *)hwnd, (void *)hmenu, item, (void *)hmenuPopup, flags);
759 }
760
761 static __inline DWORD MSGDUMP_API
762 MD_OnMenuChar(HWND hwnd, UINT ch, UINT flags, HMENU hmenu)
763 {
764 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCHAR(hwnd:%p, ch:%u, flags:%u, hmenu:%p)\n"),
765 MSGDUMP_PREFIX, (void *)hwnd, ch, flags, (void *)hmenu);
766 return 0;
767 }
768
769 static __inline void MSGDUMP_API
770 MD_OnEnterIdle(HWND hwnd, UINT source, HWND hwndSource)
771 {
772 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERIDLE(hwnd:%p, source:%u, hwndSource:%p)\n"),
773 MSGDUMP_PREFIX, (void *)hwnd, source, (void *)hwndSource);
774 }
775
776 static __inline HBRUSH MSGDUMP_API
777 MD_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type)
778 {
779 MSGDUMP_TPRINTF(TEXT("%sWM_CTLCOLOR(hwnd:%p, hdc:%p, hwndChild:%p, type:%d)\n"),
780 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdc, (void *)hwndChild, type);
781 return NULL;
782 }
783
784 static __inline void MSGDUMP_API
785 MD_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags)
786 {
787 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEMOVE(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
788 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
789 }
790
791 static __inline void MSGDUMP_API
792 MD_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
793 {
794 if (fDoubleClick)
795 {
796 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
797 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
798 }
799 else
800 {
801 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
802 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
803 }
804 }
805
806 static __inline void MSGDUMP_API
807 MD_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags)
808 {
809 MSGDUMP_TPRINTF(TEXT("%sWM_LBUTTONUP(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
810 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
811 }
812
813 static __inline void MSGDUMP_API
814 MD_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
815 {
816 if (fDoubleClick)
817 {
818 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
819 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
820 }
821 else
822 {
823 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
824 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
825 }
826 }
827
828 static __inline void MSGDUMP_API
829 MD_OnRButtonUp(HWND hwnd, int x, int y, UINT flags)
830 {
831 MSGDUMP_TPRINTF(TEXT("%sWM_RBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
832 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
833 }
834
835 static __inline void MSGDUMP_API
836 MD_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
837 {
838 if (fDoubleClick)
839 {
840 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDBLCLK(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
841 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
842 }
843 else
844 {
845 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONDOWN(hwnd:%p, x:%d, y:%d, keyFlags:%u)\n"),
846 MSGDUMP_PREFIX, (void *)hwnd, x, y, keyFlags);
847 }
848 }
849
850 static __inline void MSGDUMP_API
851 MD_OnMButtonUp(HWND hwnd, int x, int y, UINT flags)
852 {
853 MSGDUMP_TPRINTF(TEXT("%sWM_MBUTTONUP(hwnd:%p, x:%d, y:%d, flags:%u)\n"),
854 MSGDUMP_PREFIX, (void *)hwnd, x, y, flags);
855 }
856
857 static __inline void MSGDUMP_API
858 MD_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys)
859 {
860 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEWHEEL(hwnd:%p, xPos:%d, yPos:%d, zDelta:%d, fwKeys:%u)\n"),
861 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos, zDelta, fwKeys);
862 }
863
864 static __inline void MSGDUMP_API
865 MD_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild)
866 {
867 MSGDUMP_TPRINTF(TEXT("%sWM_PARENTNOTIFY(hwnd:%p, msg:%u, hwndChild:%p, idChild:%d)\n"),
868 MSGDUMP_PREFIX, (void *)hwnd, msg, (void *)hwndChild, idChild);
869 }
870
871 static __inline BOOL MSGDUMP_API
872 MD_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData)
873 {
874 MSGDUMP_TPRINTF(TEXT("%sWM_DEVICECHANGE(hwnd:%p, uEvent:%u, dwEventData:0x%08lX)\n"),
875 MSGDUMP_PREFIX, (void *)hwnd, uEvent, dwEventData);
876 return FALSE;
877 }
878
879 static __inline HWND MSGDUMP_API
880 MD_MDICreate(HWND hwnd, const LPMDICREATESTRUCT lpmcs)
881 {
882 MSGDUMP_TPRINTF(TEXT("%sWM_MDICREATE(hwnd:%p, lpmcs:%p)\n"),
883 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpmcs);
884 return NULL;
885 }
886
887 static __inline void MSGDUMP_API
888 MD_MDIDestroy(HWND hwnd, HWND hwndDestroy)
889 {
890 MSGDUMP_TPRINTF(TEXT("%sWM_MDIDESTROY(hwnd:%p, hwndDestroy:%p)\n"),
891 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndDestroy);
892 }
893
894 static __inline void MSGDUMP_API
895 MD_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate)
896 {
897 MSGDUMP_TPRINTF(TEXT("%sWM_MDIACTIVATE(hwnd:%p, fActive:%d, hwndActivate:%p, hwndDeactivate:%p)\n"),
898 MSGDUMP_PREFIX, (void *)hwnd, fActive, (void *)hwndActivate, (void *)hwndDeactivate);
899 }
900
901 static __inline void MSGDUMP_API
902 MD_MDIRestore(HWND hwnd, HWND hwndRestore)
903 {
904 MSGDUMP_TPRINTF(TEXT("%sWM_MDIRESTORE(hwnd:%p, hwndRestore:%p)\n"),
905 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRestore);
906 }
907
908 static __inline HWND MSGDUMP_API
909 MD_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev)
910 {
911 MSGDUMP_TPRINTF(TEXT("%sWM_MDINEXT(hwnd:%p, hwndCur:%p, fPrev:%d)\n"),
912 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCur, fPrev);
913 return NULL;
914 }
915
916 static __inline void MSGDUMP_API
917 MD_MDIMaximize(HWND hwnd, HWND hwndMaximize)
918 {
919 MSGDUMP_TPRINTF(TEXT("%sWM_MDIMAXIMIZE(hwnd:%p, hwndMaximize:%p)\n"),
920 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndMaximize);
921 }
922
923 static __inline BOOL MSGDUMP_API
924 MD_MDITile(HWND hwnd, UINT cmd)
925 {
926 MSGDUMP_TPRINTF(TEXT("%sWM_MDITILE(hwnd:%p, cmd:%u)\n"),
927 MSGDUMP_PREFIX, (void *)hwnd, cmd);
928 return FALSE;
929 }
930
931 static __inline BOOL MSGDUMP_API
932 MD_MDICascade(HWND hwnd, UINT cmd)
933 {
934 MSGDUMP_TPRINTF(TEXT("%sWM_MDICASCADE(hwnd:%p, cmd:%u)\n"),
935 MSGDUMP_PREFIX, (void *)hwnd, cmd);
936 return FALSE;
937 }
938
939 static __inline void MSGDUMP_API
940 MD_MDIIconArrange(HWND hwnd)
941 {
942 MSGDUMP_TPRINTF(TEXT("%sWM_MDIICONARRANGE(hwnd:%p)\n"),
943 MSGDUMP_PREFIX, (void *)hwnd);
944 }
945
946 static __inline HWND MSGDUMP_API
947 MD_MDIGetActive(HWND hwnd)
948 {
949 MSGDUMP_TPRINTF(TEXT("%sWM_MDIGETACTIVE(hwnd:%p)\n"),
950 MSGDUMP_PREFIX, (void *)hwnd);
951 return NULL;
952 }
953
954 #ifdef _UNDOCUSER_H
955 static __inline LRESULT MSGDUMP_API
956 MD_OnDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
957 {
958 MSGDUMP_TPRINTF(TEXT("%sWM_DROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
959 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
960 return 0;
961 }
962
963 static __inline LRESULT MSGDUMP_API
964 MD_OnQueryDropObject(HWND hwnd, WPARAM wParam, LPARAM lParam)
965 {
966 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYDROPOBJECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
967 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
968 return 0;
969 }
970
971 static __inline LRESULT MSGDUMP_API
972 MD_OnBeginDrag(HWND hwnd, WPARAM wParam, LPARAM lParam)
973 {
974 MSGDUMP_TPRINTF(TEXT("%sWM_BEGINDRAG(hwnd:%p, wParam:%p, lParam:%p)\n"),
975 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
976 return 0;
977 }
978
979 static __inline LRESULT MSGDUMP_API
980 MD_OnDragLoop(HWND hwnd, WPARAM wParam, LPARAM lParam)
981 {
982 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGLOOP(hwnd:%p, wParam:%p, lParam:%p)\n"),
983 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
984 return 0;
985 }
986
987 static __inline LRESULT MSGDUMP_API
988 MD_OnDragSelect(HWND hwnd, WPARAM wParam, LPARAM lParam)
989 {
990 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGSELECT(hwnd:%p, wParam:%p, lParam:%p)\n"),
991 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
992 return 0;
993 }
994
995 static __inline LRESULT MSGDUMP_API
996 MD_OnDragMove(HWND hwnd, WPARAM wParam, LPARAM lParam)
997 {
998 MSGDUMP_TPRINTF(TEXT("%sWM_DRAGMOVE(hwnd:%p, wParam:%p, lParam:%p)\n"),
999 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1000 return 0;
1001 }
1002 #endif
1003
1004 static __inline HMENU MSGDUMP_API
1005 MD_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow)
1006 {
1007 MSGDUMP_TPRINTF(TEXT("%sWM_MDISETMENU(hwnd:%p, fRefresh:%d, hmenuFrame:%p, hmenuWindow:%p)\n"),
1008 MSGDUMP_PREFIX, (void *)hwnd, fRefresh, (void *)hmenuFrame, (void *)hmenuWindow);
1009 return NULL;
1010 }
1011
1012 static __inline void MSGDUMP_API
1013 MD_OnDropFiles(HWND hwnd, HDROP hdrop)
1014 {
1015 MSGDUMP_TPRINTF(TEXT("%sWM_DROPFILES(hwnd:%p, hdrop:%p)\n"),
1016 MSGDUMP_PREFIX, (void *)hwnd, (void *)hdrop);
1017 }
1018
1019 static __inline void MSGDUMP_API
1020 MD_OnCut(HWND hwnd)
1021 {
1022 MSGDUMP_TPRINTF(TEXT("%sWM_CUT(hwnd:%p)\n"),
1023 MSGDUMP_PREFIX, (void *)hwnd);
1024 }
1025
1026 static __inline void MSGDUMP_API
1027 MD_OnCopy(HWND hwnd)
1028 {
1029 MSGDUMP_TPRINTF(TEXT("%sWM_COPY(hwnd:%p)\n"),
1030 MSGDUMP_PREFIX, (void *)hwnd);
1031 }
1032
1033 static __inline void MSGDUMP_API
1034 MD_OnPaste(HWND hwnd)
1035 {
1036 MSGDUMP_TPRINTF(TEXT("%sWM_PASTE(hwnd:%p)\n"),
1037 MSGDUMP_PREFIX, (void *)hwnd);
1038 }
1039
1040 static __inline void MSGDUMP_API
1041 MD_OnClear(HWND hwnd)
1042 {
1043 MSGDUMP_TPRINTF(TEXT("%sWM_CLEAR(hwnd:%p)\n"),
1044 MSGDUMP_PREFIX, (void *)hwnd);
1045 }
1046
1047 static __inline void MSGDUMP_API
1048 MD_OnUndo(HWND hwnd)
1049 {
1050 MSGDUMP_TPRINTF(TEXT("%sWM_UNDO(hwnd:%p)\n"),
1051 MSGDUMP_PREFIX, (void *)hwnd);
1052 }
1053
1054 static __inline HANDLE MSGDUMP_API
1055 MD_OnRenderFormat(HWND hwnd, UINT fmt)
1056 {
1057 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERFORMAT(hwnd:%p, fmt:%u)\n"),
1058 MSGDUMP_PREFIX, (void *)hwnd, fmt);
1059 return NULL;
1060 }
1061
1062 static __inline void MSGDUMP_API
1063 MD_OnRenderAllFormats(HWND hwnd)
1064 {
1065 MSGDUMP_TPRINTF(TEXT("%sWM_RENDERALLFORMATS(hwnd:%p)\n"),
1066 MSGDUMP_PREFIX, (void *)hwnd);
1067 }
1068
1069 static __inline void MSGDUMP_API
1070 MD_OnDestroyClipboard(HWND hwnd)
1071 {
1072 MSGDUMP_TPRINTF(TEXT("%sWM_DESTROYCLIPBOARD(hwnd:%p)\n"),
1073 MSGDUMP_PREFIX, (void *)hwnd);
1074 }
1075
1076 static __inline void MSGDUMP_API
1077 MD_OnDrawClipboard(HWND hwnd)
1078 {
1079 MSGDUMP_TPRINTF(TEXT("%sWM_DRAWCLIPBOARD(hwnd:%p)\n"),
1080 MSGDUMP_PREFIX, (void *)hwnd);
1081 }
1082
1083 static __inline void MSGDUMP_API
1084 MD_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct)
1085 {
1086 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTCLIPBOARD(hwnd:%p, hwndCBViewer:%p, lpPaintStruct:%p)\n"),
1087 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, (void *)lpPaintStruct);
1088 }
1089
1090 static __inline void MSGDUMP_API
1091 MD_OnVScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1092 {
1093 MSGDUMP_TPRINTF(TEXT("%sWM_VSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1094 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1095 }
1096
1097 static __inline void MSGDUMP_API
1098 MD_OnSizeClipboard(HWND hwnd, HWND hwndCBViewer, const LPRECT lprc)
1099 {
1100 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1101 MSGDUMP_TPRINTF(TEXT("%sWM_SIZECLIPBOARD(hwnd:%p, hwndCBViewer:%p, lprc:%s)\n"),
1102 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer,
1103 MD_rect_text(buf, sizeof(buf), lprc));
1104 }
1105
1106 static __inline void MSGDUMP_API
1107 MD_OnAskCBFormatName(HWND hwnd, int cchMax, LPTSTR rgchName)
1108 {
1109 MSGDUMP_TPRINTF(TEXT("%sWM_ASKCBFORMATNAME(hwnd:%p, cchMax:%d, rgchName:%p)\n"),
1110 MSGDUMP_PREFIX, (void *)hwnd, cchMax, (void *)rgchName);
1111 }
1112
1113 static __inline void MSGDUMP_API
1114 MD_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext)
1115 {
1116 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGECBCHAIN(hwnd:%p, hwndRemove:%p, hwndNext:%p)\n"),
1117 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndRemove, (void *)hwndNext);
1118 }
1119
1120 static __inline void MSGDUMP_API
1121 MD_OnHScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos)
1122 {
1123 MSGDUMP_TPRINTF(TEXT("%sWM_HSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1124 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndCBViewer, code, pos);
1125 }
1126
1127 static __inline BOOL MSGDUMP_API
1128 MD_OnQueryNewPalette(HWND hwnd)
1129 {
1130 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYNEWPALETTE(hwnd:%p)\n"),
1131 MSGDUMP_PREFIX, (void *)hwnd);
1132 return FALSE;
1133 }
1134
1135 static __inline void MSGDUMP_API
1136 MD_OnPaletteIsChanging(HWND hwnd, HWND hwndPaletteChange)
1137 {
1138 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTEISCHANGING(hwnd:%p, hwndPaletteChange:%p)\n"),
1139 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1140 }
1141
1142 static __inline void MSGDUMP_API
1143 MD_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange)
1144 {
1145 MSGDUMP_TPRINTF(TEXT("%sWM_PALETTECHANGED(hwnd:%p, hwndPaletteChange:%p)\n"),
1146 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndPaletteChange);
1147 }
1148
1149 static __inline void MSGDUMP_API
1150 MD_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk)
1151 {
1152 MSGDUMP_TPRINTF(TEXT("%sWM_HOTKEY(hwnd:%p, idHotKey:%d, fuModifiers:%u, vk:%u)\n"),
1153 MSGDUMP_PREFIX, (void *)hwnd, idHotKey, fuModifiers, vk);
1154 }
1155
1156 static __inline INT MSGDUMP_API
1157 MD_OnSetHotKey(HWND hwnd, INT nCode, UINT nOptions)
1158 {
1159 MSGDUMP_TPRINTF(TEXT("%sWM_SETHOTKEY(hwnd:%p, nCode:%d, nOptions:%u)\n"),
1160 MSGDUMP_PREFIX, (void *)hwnd, nCode, nOptions);
1161 return 0;
1162 }
1163
1164 static __inline INT MSGDUMP_API
1165 MD_OnGetHotKey(HWND hwnd)
1166 {
1167 MSGDUMP_TPRINTF(TEXT("%sWM_GETHOTKEY(hwnd:%p)\n"),
1168 MSGDUMP_PREFIX, (void *)hwnd);
1169 return 0;
1170 }
1171
1172 static __inline void MSGDUMP_API
1173 MD_OnPaintIcon(HWND hwnd)
1174 {
1175 MSGDUMP_TPRINTF(TEXT("%sWM_PAINTICON(hwnd:%p)\n"),
1176 MSGDUMP_PREFIX, (void *)hwnd);
1177 }
1178
1179 static __inline LRESULT MSGDUMP_API
1180 MD_OnGetObject(HWND hwnd, WPARAM wParam, DWORD dwObjId)
1181 {
1182 MSGDUMP_TPRINTF(TEXT("%sWM_GETOBJECT(hwnd:%p, wParam:%p, dwObjId:0x%08lX)\n"),
1183 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, dwObjId);
1184 return 0;
1185 }
1186
1187 static __inline void MSGDUMP_API
1188 MD_OnCancelJournal(HWND hwnd)
1189 {
1190 MSGDUMP_TPRINTF(TEXT("%sWM_CANCELJOURNAL(hwnd:%p)\n"),
1191 MSGDUMP_PREFIX, (void *)hwnd);
1192 }
1193
1194 static __inline void MSGDUMP_API
1195 MD_OnInputLangChangeRequest(HWND hwnd, BOOL bFlag, HKL hKL)
1196 {
1197 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGEREQUEST(hwnd:%p, bFlag:%d, hKL:%p)\n"),
1198 MSGDUMP_PREFIX, (void *)hwnd, bFlag, (void *)hKL);
1199 }
1200
1201 static __inline void MSGDUMP_API
1202 MD_OnInputLangChange(HWND hwnd, DWORD dwCharSet, HKL hKL)
1203 {
1204 MSGDUMP_TPRINTF(TEXT("%sWM_INPUTLANGCHANGE(hwnd:%p, dwCharSet:0x%08lX, hKL:%p)\n"),
1205 MSGDUMP_PREFIX, (void *)hwnd, dwCharSet, (void *)hKL);
1206 }
1207
1208 static __inline void MSGDUMP_API
1209 MD_OnTCard(HWND hwnd, UINT idAction, DWORD dwActionData)
1210 {
1211 MSGDUMP_TPRINTF(TEXT("%sWM_TCARD(hwnd:%p, idAction:%u, dwActionData:0x%08lX)\n"),
1212 MSGDUMP_PREFIX, (void *)hwnd, idAction, dwActionData);
1213 }
1214
1215 static __inline void MSGDUMP_API
1216 MD_OnHelp(HWND hwnd, LPHELPINFO lpHelpInfo)
1217 {
1218 MSGDUMP_TPRINTF(TEXT("%sWM_HELP(hwnd:%p, lpHelpInfo:%p)\n"),
1219 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpHelpInfo);
1220 }
1221
1222 static __inline void MSGDUMP_API
1223 MD_OnUserChanged(HWND hwnd)
1224 {
1225 MSGDUMP_TPRINTF(TEXT("%sWM_USERCHANGED(hwnd:%p)\n"),
1226 MSGDUMP_PREFIX, (void *)hwnd);
1227 }
1228
1229 static __inline INT MSGDUMP_API
1230 MD_OnNotifyFormat(HWND hwnd, HWND hwndTarget, INT nCommand)
1231 {
1232 MSGDUMP_TPRINTF(TEXT("%sWM_NOTIFYFORMAT(hwnd:%p, hwndTarget:%p, nCommand:%d)\n"),
1233 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, nCommand);
1234 return 0;
1235 }
1236
1237 static __inline void MSGDUMP_API
1238 MD_OnStyleChanging(HWND hwnd, UINT nStyleType, LPSTYLESTRUCT lpStyleStruct)
1239 {
1240 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGING(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1241 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1242 }
1243
1244 static __inline void MSGDUMP_API
1245 MD_OnStyleChanged(HWND hwnd, UINT nStyleType, const STYLESTRUCT *lpStyleStruct)
1246 {
1247 MSGDUMP_TPRINTF(TEXT("%sWM_STYLECHANGED(hwnd:%p, nStyleType:%u, lpStyleStruct:%p)\n"),
1248 MSGDUMP_PREFIX, (void *)hwnd, nStyleType, (void *)lpStyleStruct);
1249 }
1250
1251 static __inline HICON MSGDUMP_API
1252 MD_OnGetIcon(HWND hwnd, UINT nType, LPARAM dpi)
1253 {
1254 MSGDUMP_TPRINTF(TEXT("%sWM_GETICON(hwnd:%p, nType:%u, dpi:%p)\n"),
1255 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)dpi);
1256 return NULL;
1257 }
1258
1259 static __inline HICON MSGDUMP_API
1260 MD_OnSetIcon(HWND hwnd, UINT nType, HICON hIcon)
1261 {
1262 MSGDUMP_TPRINTF(TEXT("%sWM_SETICON(hwnd:%p, nType:%u, hIcon:%p)\n"),
1263 MSGDUMP_PREFIX, (void *)hwnd, nType, (void *)hIcon);
1264 return NULL;
1265 }
1266
1267 static __inline void MSGDUMP_API
1268 MD_OnSyncPaint(HWND hwnd)
1269 {
1270 MSGDUMP_TPRINTF(TEXT("%sWM_SYNCPAINT(hwnd:%p)\n"),
1271 MSGDUMP_PREFIX, (void *)hwnd);
1272 }
1273
1274 static __inline void MSGDUMP_API
1275 MD_OnNCXButtonDown(HWND hwnd, BOOL fDoubleClick, UINT nHitTest, WORD fwButton,
1276 INT xPos, INT yPos)
1277 {
1278 if (fDoubleClick)
1279 {
1280 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDBLCLK(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1281 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1282 }
1283 else
1284 {
1285 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONDOWN(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1286 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1287 }
1288 }
1289
1290 static __inline void MSGDUMP_API
1291 MD_OnNCXButtonUp(HWND hwnd, UINT nHitTest, WORD fwButton, INT xPos, INT yPos)
1292 {
1293 MSGDUMP_TPRINTF(TEXT("%sWM_NCXBUTTONUP(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1294 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, fwButton, xPos, yPos);
1295 }
1296
1297 static __inline void MSGDUMP_API
1298 MD_OnImeStartComposition(HWND hwnd)
1299 {
1300 MSGDUMP_TPRINTF(TEXT("%sWM_IME_STARTCOMPOSITION(hwnd:%p)\n"),
1301 MSGDUMP_PREFIX, (void *)hwnd);
1302 }
1303
1304 static __inline void MSGDUMP_API
1305 MD_OnImeEndComposition(HWND hwnd)
1306 {
1307 MSGDUMP_TPRINTF(TEXT("%sWM_IME_ENDCOMPOSITION(hwnd:%p)\n"),
1308 MSGDUMP_PREFIX, (void *)hwnd);
1309 }
1310
1311 static __inline void MSGDUMP_API
1312 MD_OnImeComposition(HWND hwnd, WORD wChar, DWORD lAttribute)
1313 {
1314 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITION(hwnd:%p, wChar:%u, lAttribute:0x%08lX)\n"),
1315 MSGDUMP_PREFIX, (void *)hwnd, wChar, lAttribute);
1316 }
1317
1318 static __inline void MSGDUMP_API
1319 MD_OnMenuRButtonUp(HWND hwnd, UINT nPos, HMENU hMenu)
1320 {
1321 MSGDUMP_TPRINTF(TEXT("%sWM_MENURBUTTONUP(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1322 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1323 }
1324
1325 static __inline UINT MSGDUMP_API
1326 MD_OnMenuDrag(HWND hwnd, UINT nPos, HMENU hMenu)
1327 {
1328 MSGDUMP_TPRINTF(TEXT("%sWM_MENUDRAG(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1329 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1330 return 0;
1331 }
1332
1333 static __inline UINT MSGDUMP_API
1334 MD_OnMenuGetObject(HWND hwnd, MENUGETOBJECTINFO *pmgoi)
1335 {
1336 MSGDUMP_TPRINTF(TEXT("%sWM_MENUGETOBJECT(hwnd:%p, pmgoi:%p)\n"),
1337 MSGDUMP_PREFIX, (void *)hwnd, (void *)pmgoi);
1338 return 0;
1339 }
1340
1341 static __inline void MSGDUMP_API
1342 MD_OnUninitMenuPopup(HWND hwnd, HMENU hMenu, UINT nFlags)
1343 {
1344 MSGDUMP_TPRINTF(TEXT("%sWM_UNINITMENUPOPUP(hwnd:%p, hMenu:%p, nFlags:%u)\n"),
1345 MSGDUMP_PREFIX, (void *)hwnd, (void *)hMenu, nFlags);
1346 }
1347
1348 static __inline void MSGDUMP_API
1349 MD_OnMenuCommand(HWND hwnd, UINT nPos, HMENU hMenu)
1350 {
1351 MSGDUMP_TPRINTF(TEXT("%sWM_MENUCOMMAND(hwnd:%p, nPos:%u, hMenu:%p)\n"),
1352 MSGDUMP_PREFIX, (void *)hwnd, nPos, (void *)hMenu);
1353 }
1354
1355 static __inline void MSGDUMP_API
1356 MD_OnChangeUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1357 {
1358 MSGDUMP_TPRINTF(TEXT("%sWM_CHANGEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1359 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1360 }
1361
1362 static __inline void MSGDUMP_API
1363 MD_OnUpdateUIState(HWND hwnd, UINT nAction, UINT nUIElement)
1364 {
1365 MSGDUMP_TPRINTF(TEXT("%sWM_UPDATEUISTATE(hwnd:%p, nAction:%u, nUIElement:%u)\n"),
1366 MSGDUMP_PREFIX, (void *)hwnd, nAction, nUIElement);
1367 }
1368
1369 static __inline UINT MSGDUMP_API
1370 MD_OnQueryUIState(HWND hwnd)
1371 {
1372 MSGDUMP_TPRINTF(TEXT("%sWM_QUERYUISTATE(hwnd:%p)\n"),
1373 MSGDUMP_PREFIX, (void *)hwnd);
1374 return 0;
1375 }
1376
1377 static __inline void MSGDUMP_API
1378 MD_OnXButtonDown(HWND hwnd, BOOL fDoubleClick, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1379 {
1380 if (fDoubleClick)
1381 {
1382 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDBLCLK(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1383 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1384 }
1385 else
1386 {
1387 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONDOWN(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1388 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1389 }
1390 }
1391
1392 static __inline void MSGDUMP_API
1393 MD_OnXButtonUp(HWND hwnd, WORD fwKeys, WORD fwButton, INT xPos, INT yPos)
1394 {
1395 MSGDUMP_TPRINTF(TEXT("%sWM_XBUTTONUP(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1396 MSGDUMP_PREFIX, (void *)hwnd, fwKeys, fwButton, xPos, yPos);
1397 }
1398
1399 static __inline void MSGDUMP_API
1400 MD_OnEnterMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1401 {
1402 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1403 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1404 }
1405
1406 static __inline void MSGDUMP_API
1407 MD_OnExitMenuLoop(HWND hwnd, BOOL bIsTrackPopupMenu)
1408 {
1409 MSGDUMP_TPRINTF(TEXT("%sWM_EXITMENULOOP(hwnd:%p, bIsTrackPopupMenu:%d)\n"),
1410 MSGDUMP_PREFIX, (void *)hwnd, bIsTrackPopupMenu);
1411 }
1412
1413 static __inline void MSGDUMP_API
1414 MD_OnNextMenu(HWND hwnd, INT nCode, LPMDINEXTMENU lpMDINextMenu)
1415 {
1416 MSGDUMP_TPRINTF(TEXT("%sWM_NEXTMENU(hwnd:%p, nCode:%d, lpMDINextMenu:%p)\n"),
1417 MSGDUMP_PREFIX, (void *)hwnd, nCode, (void *)lpMDINextMenu);
1418 }
1419
1420 static __inline void MSGDUMP_API
1421 MD_OnSizing(HWND hwnd, UINT nSide, LPRECT lpRect)
1422 {
1423 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1424 MSGDUMP_TPRINTF(TEXT("%sWM_SIZING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1425 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1426 }
1427
1428 static __inline void MSGDUMP_API
1429 MD_OnCaptureChanged(HWND hwnd, HWND hwndNewCapture)
1430 {
1431 MSGDUMP_TPRINTF(TEXT("%sWM_CAPTURECHANGED(hwnd:%p, hwndNewCapture:%p)\n"),
1432 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndNewCapture);
1433 }
1434
1435 static __inline void MSGDUMP_API
1436 MD_OnMoving(HWND hwnd, UINT nSide, LPRECT lpRect)
1437 {
1438 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1439 MSGDUMP_TPRINTF(TEXT("%sWM_MOVING(hwnd:%p, nSide:%u, lpRect:%s)\n"),
1440 MSGDUMP_PREFIX, (void *)hwnd, nSide, MD_rect_text(buf, sizeof(buf), lpRect));
1441 }
1442
1443 static __inline LRESULT MSGDUMP_API
1444 MD_OnPowerBroadcast(HWND hwnd, UINT nPowerEvent, UINT nEventData)
1445 {
1446 MSGDUMP_TPRINTF(TEXT("%sWM_POWERBROADCAST(hwnd:%p, nPowerEvent:%u, nEventData:%u)\n"),
1447 MSGDUMP_PREFIX, (void *)hwnd, nPowerEvent, nEventData);
1448 return 0;
1449 }
1450
1451 static __inline void MSGDUMP_API
1452 MD_OnEnterSizeMove(HWND hwnd)
1453 {
1454 MSGDUMP_TPRINTF(TEXT("%sWM_ENTERSIZEMOVE(hwnd:%p)\n"),
1455 MSGDUMP_PREFIX, (void *)hwnd);
1456 }
1457
1458 static __inline void MSGDUMP_API
1459 MD_OnExitSizeMove(HWND hwnd)
1460 {
1461 MSGDUMP_TPRINTF(TEXT("%sWM_EXITSIZEMOVE(hwnd:%p)\n"),
1462 MSGDUMP_PREFIX, (void *)hwnd);
1463 }
1464
1465 static __inline HMENU MSGDUMP_API
1466 MD_MDIRefreshMenu(HWND hwnd)
1467 {
1468 MSGDUMP_TPRINTF(TEXT("%sWM_MDIREFRESHMENU(hwnd:%p)\n"),
1469 MSGDUMP_PREFIX, (void *)hwnd);
1470 return NULL;
1471 }
1472
1473 static __inline BOOL MSGDUMP_API
1474 MD_OnImeSetContext(HWND hwnd, BOOL fActive, DWORD dwShow)
1475 {
1476 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SETCONTEXT(hwnd:%p, fActive:%d, dwShow:0x%08lX)\n"),
1477 MSGDUMP_PREFIX, (void *)hwnd, fActive, dwShow);
1478 return FALSE;
1479 }
1480
1481 static __inline LRESULT MSGDUMP_API
1482 MD_OnImeNotify(HWND hwnd, WPARAM wSubMessage, LPARAM lParam)
1483 {
1484 MSGDUMP_TPRINTF(TEXT("%sWM_IME_NOTIFY(hwnd:%p, wSubMessage:%p, lParam:%p)\n"),
1485 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lParam);
1486 return 0;
1487 }
1488
1489 static __inline LRESULT MSGDUMP_API
1490 MD_OnImeControl(HWND hwnd, WPARAM wSubMessage, LPVOID lpData)
1491 {
1492 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CONTROL(hwnd:%p, wSubMessage:%p, lpData:%p)\n"),
1493 MSGDUMP_PREFIX, (void *)hwnd, (void *)wSubMessage, (void *)lpData);
1494 return 0;
1495 }
1496
1497 static __inline void MSGDUMP_API
1498 MD_OnImeCompositionFull(HWND hwnd)
1499 {
1500 MSGDUMP_TPRINTF(TEXT("%sWM_IME_COMPOSITIONFULL(hwnd:%p)\n"),
1501 MSGDUMP_PREFIX, (void *)hwnd);
1502 }
1503
1504 static __inline void MSGDUMP_API
1505 MD_OnImeSelect(HWND hwnd, BOOL fSelect, HKL hKL)
1506 {
1507 MSGDUMP_TPRINTF(TEXT("%sWM_IME_SELECT(hwnd:%p, fSelect:%d, hKL:%p)\n"),
1508 MSGDUMP_PREFIX, (void *)hwnd, fSelect, (void *)hKL);
1509 }
1510
1511 static __inline void MSGDUMP_API
1512 MD_OnImeChar(HWND hwnd, WORD wCharCode, LONG lKeyData)
1513 {
1514 MSGDUMP_TPRINTF(TEXT("%sWM_IME_CHAR(hwnd:%p, wCharCode:%u, lKeyData:%ld)\n"),
1515 MSGDUMP_PREFIX, (void *)hwnd, wCharCode, lKeyData);
1516 }
1517
1518 static __inline LRESULT MSGDUMP_API
1519 MD_OnImeRequest(HWND hwnd, WPARAM wParam, LPARAM lParam)
1520 {
1521 MSGDUMP_TPRINTF(TEXT("%sWM_IME_REQUEST(hwnd:%p, wParam:%p, lParam:%p)\n"),
1522 MSGDUMP_PREFIX, (void *)hwnd, (void *)wParam, (void *)lParam);
1523 return 0;
1524 }
1525
1526 static __inline void MSGDUMP_API
1527 MD_OnImeKey(HWND hwnd, BOOL fDown, UINT nVirtKey, LONG lKeyData)
1528 {
1529 if (fDown)
1530 {
1531 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYDOWN(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1532 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1533 }
1534 else
1535 {
1536 MSGDUMP_TPRINTF(TEXT("%sWM_IME_KEYUP(hwnd:%p, nVirtKey:%u, lKeyData:%ld)\n"),
1537 MSGDUMP_PREFIX, (void *)hwnd, nVirtKey, lKeyData);
1538 }
1539 }
1540
1541 static __inline void MSGDUMP_API
1542 MD_OnMouseHover(HWND hwnd, UINT nFlags, INT xPos, INT yPos)
1543 {
1544 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSEHOVER(hwnd:%p, nFlags:%u, xPos:%d, yPos:%d)\n"),
1545 MSGDUMP_PREFIX, (void *)hwnd, nFlags, xPos, yPos);
1546 }
1547
1548 static __inline void MSGDUMP_API
1549 MD_OnMouseLeave(HWND hwnd)
1550 {
1551 MSGDUMP_TPRINTF(TEXT("%sWM_MOUSELEAVE(hwnd:%p)\n"),
1552 MSGDUMP_PREFIX, (void *)hwnd);
1553 }
1554
1555 static __inline void MSGDUMP_API
1556 MD_OnNCMouseHover(HWND hwnd, UINT nHitTest, INT xPos, INT yPos)
1557 {
1558 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSEHOVER(hwnd:%p, nHitTest:%u, xPos:%d, yPos:%d)\n"),
1559 MSGDUMP_PREFIX, (void *)hwnd, nHitTest, xPos, yPos);
1560 }
1561
1562 static __inline void MSGDUMP_API
1563 MD_OnNCMouseLeave(HWND hwnd)
1564 {
1565 MSGDUMP_TPRINTF(TEXT("%sWM_NCMOUSELEAVE(hwnd:%p)\n"),
1566 MSGDUMP_PREFIX, (void *)hwnd);
1567 }
1568
1569 static __inline void MSGDUMP_API
1570 MD_OnPrint(HWND hwnd, HDC hDC, UINT uFlags)
1571 {
1572 MSGDUMP_TPRINTF(TEXT("%sWM_PRINT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1573 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1574 }
1575
1576 static __inline void MSGDUMP_API
1577 MD_OnPrintClient(HWND hwnd, HDC hDC, UINT uFlags)
1578 {
1579 MSGDUMP_TPRINTF(TEXT("%sWM_PRINTCLIENT(hwnd:%p, hDC:%p, uFlags:%u)\n"),
1580 MSGDUMP_PREFIX, (void *)hwnd, (void *)hDC, uFlags);
1581 }
1582
1583 static __inline BOOL MSGDUMP_API
1584 MD_OnAppCommand(HWND hwnd, HWND hwndTarget, UINT cmd, UINT nDevice, UINT nKey)
1585 {
1586 MSGDUMP_TPRINTF(TEXT("%sWM_APPCOMMAND(hwnd:%p, hwndTarget:%p, cmd:%u, nDevice:%u, nKey:%u)\n"),
1587 MSGDUMP_PREFIX, (void *)hwnd, (void *)hwndTarget, cmd, nDevice, nKey);
1588 return FALSE;
1589 }
1590
1591 static __inline LONG MSGDUMP_API
1592 MD_Edit_OnGetSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
1593 {
1594 MSGDUMP_TPRINTF(TEXT("%sEM_GETSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
1595 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
1596 return 0;
1597 }
1598
1599 static __inline void MSGDUMP_API
1600 MD_Edit_OnSetSel(HWND hwnd, INT nStart, INT nEnd)
1601 {
1602 MSGDUMP_TPRINTF(TEXT("%sEM_SETSEL(hwnd:%p, nStart:%d, nEnd:%d)\n"),
1603 MSGDUMP_PREFIX, (void *)hwnd, nStart, nEnd);
1604 }
1605
1606 static __inline void MSGDUMP_API
1607 MD_Edit_OnGetRect(HWND hwnd, LPRECT prc)
1608 {
1609 MSGDUMP_TPRINTF(TEXT("%sEM_GETRECT(hwnd:%p, prc:%p)\n"),
1610 MSGDUMP_PREFIX, (void *)hwnd, (void *)prc);
1611 }
1612
1613 static __inline void MSGDUMP_API
1614 MD_Edit_OnSetRect(HWND hwnd, LPCRECT prc)
1615 {
1616 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1617 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECT(hwnd:%p, prc:%s)\n"),
1618 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1619 }
1620
1621 static __inline void MSGDUMP_API
1622 MD_Edit_OnSetRectNP(HWND hwnd, LPCRECT prc)
1623 {
1624 TCHAR buf[MSGDUMP_MAX_RECT_TEXT];
1625 MSGDUMP_TPRINTF(TEXT("%sEM_SETRECTNP(hwnd:%p, prc:%s)\n"),
1626 MSGDUMP_PREFIX, (void *)hwnd, MD_rect_text(buf, sizeof(buf), prc));
1627 }
1628
1629 static __inline DWORD MSGDUMP_API
1630 MD_Edit_OnScroll(HWND hwnd, INT nScroll)
1631 {
1632 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLL(hwnd:%p, nScroll:%d)\n"),
1633 MSGDUMP_PREFIX, (void *)hwnd, nScroll);
1634 return 0;
1635 }
1636
1637 static __inline BOOL MSGDUMP_API
1638 MD_Edit_OnLineScroll(HWND hwnd, INT cxScroll, INT cyScroll)
1639 {
1640 MSGDUMP_TPRINTF(TEXT("%sEM_LINESCROLL(hwnd:%p, cxScroll:%d, cyScroll:%d)\n"),
1641 MSGDUMP_PREFIX, (void *)hwnd, cxScroll, cyScroll);
1642 return FALSE;
1643 }
1644
1645 static __inline BOOL MSGDUMP_API
1646 MD_Edit_OnScrollCaret(HWND hwnd)
1647 {
1648 MSGDUMP_TPRINTF(TEXT("%sEM_SCROLLCARET(hwnd:%p)\n"),
1649 MSGDUMP_PREFIX, (void *)hwnd);
1650 return FALSE;
1651 }
1652
1653 static __inline BOOL MSGDUMP_API
1654 MD_Edit_OnGetModify(HWND hwnd)
1655 {
1656 MSGDUMP_TPRINTF(TEXT("%sEM_GETMODIFY(hwnd:%p)\n"),
1657 MSGDUMP_PREFIX, (void *)hwnd);
1658 return FALSE;
1659 }
1660
1661 static __inline void MSGDUMP_API
1662 MD_Edit_OnSetModify(HWND hwnd, BOOL fModified)
1663 {
1664 MSGDUMP_TPRINTF(TEXT("%sEM_SETMODIFY(hwnd:%p, fModified:%d)\n"),
1665 MSGDUMP_PREFIX, (void *)hwnd, fModified);
1666 }
1667
1668 static __inline INT MSGDUMP_API
1669 MD_Edit_OnGetLineCount(HWND hwnd)
1670 {
1671 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINECOUNT(hwnd:%p)\n"),
1672 MSGDUMP_PREFIX, (void *)hwnd);
1673 return 0;
1674 }
1675
1676 static __inline INT MSGDUMP_API
1677 MD_Edit_OnLineIndex(HWND hwnd, INT line)
1678 {
1679 MSGDUMP_TPRINTF(TEXT("%sEM_LINEINDEX(hwnd:%p, line:%d)\n"),
1680 MSGDUMP_PREFIX, (void *)hwnd, line);
1681 return 0;
1682 }
1683
1684 static __inline void MSGDUMP_API
1685 MD_Edit_OnSetHandle(HWND hwnd, HLOCAL hloc)
1686 {
1687 MSGDUMP_TPRINTF(TEXT("%sEM_SETHANDLE(hwnd:%p, hloc:%p)\n"),
1688 MSGDUMP_PREFIX, (void *)hwnd, (void *)hloc);
1689 }
1690
1691 static __inline HLOCAL MSGDUMP_API
1692 MD_Edit_OnGetHandle(HWND hwnd)
1693 {
1694 MSGDUMP_TPRINTF(TEXT("%sEM_GETHANDLE(hwnd:%p)\n"),
1695 MSGDUMP_PREFIX, (void *)hwnd);
1696 return NULL;
1697 }
1698
1699 static __inline INT MSGDUMP_API
1700 MD_Edit_OnGetThumb(HWND hwnd)
1701 {
1702 MSGDUMP_TPRINTF(TEXT("%sEM_GETTHUMB(hwnd:%p)\n"),
1703 MSGDUMP_PREFIX, (void *)hwnd);
1704 return 0;
1705 }
1706
1707 static __inline INT MSGDUMP_API
1708 MD_Edit_OnLineLength(HWND hwnd, INT ich)
1709 {
1710 MSGDUMP_TPRINTF(TEXT("%sEM_LINELENGTH(hwnd:%p, ich:%d)\n"),
1711 MSGDUMP_PREFIX, (void *)hwnd, ich);
1712 return 0;
1713 }
1714
1715 static __inline void MSGDUMP_API
1716 MD_Edit_OnReplaceSel(HWND hwnd, BOOL fCanUndo, LPCTSTR lpszReplace)
1717 {
1718 if (IsWindowUnicode(hwnd))
1719 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %ls)\n"),
1720 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCWSTR)lpszReplace);
1721 else
1722 MSGDUMP_TPRINTF(TEXT("%sEM_REPLACESEL(hwnd:%p, fCanUndo:%d, %hs)\n"),
1723 MSGDUMP_PREFIX, (void *)hwnd, fCanUndo, (LPCSTR)lpszReplace);
1724 }
1725
1726 static __inline INT MSGDUMP_API
1727 MD_Edit_OnGetLine(HWND hwnd, INT line, LPCTSTR lpch)
1728 {
1729 if (IsWindowUnicode(hwnd))
1730 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%ls)\n"),
1731 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCWSTR)lpch);
1732 else
1733 MSGDUMP_TPRINTF(TEXT("%sEM_GETLINE(hwnd:%p, line:%d, lpch:%hs)\n"),
1734 MSGDUMP_PREFIX, (void *)hwnd, line, (LPCSTR)lpch);
1735 return 0;
1736 }
1737
1738 static __inline BOOL MSGDUMP_API
1739 MD_Edit_OnCanUndo(HWND hwnd)
1740 {
1741 MSGDUMP_TPRINTF(TEXT("%sEM_CANUNDO(hwnd:%p)\n"),
1742 MSGDUMP_PREFIX, (void *)hwnd);
1743 return FALSE;
1744 }
1745
1746 static __inline BOOL MSGDUMP_API
1747 MD_Edit_OnUndo(HWND hwnd)
1748 {
1749 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p)\n"),
1750 MSGDUMP_PREFIX, (void *)hwnd);
1751 return FALSE;
1752 }
1753
1754 static __inline BOOL MSGDUMP_API
1755 MD_Edit_OnFmtLines(HWND hwnd, BOOL fAddEOL)
1756 {
1757 MSGDUMP_TPRINTF(TEXT("%sEM_UNDO(hwnd:%p, fAddEOL:%d)\n"),
1758 MSGDUMP_PREFIX, (void *)hwnd, fAddEOL);
1759 return FALSE;
1760 }
1761
1762 static __inline INT MSGDUMP_API
1763 MD_Edit_OnLineFromChar(HWND hwnd, INT ich)
1764 {
1765 MSGDUMP_TPRINTF(TEXT("%sEM_LINEFROMCHAR(hwnd:%p, ich:%d)\n"),
1766 MSGDUMP_PREFIX, (void *)hwnd, ich);
1767 return 0;
1768 }
1769
1770 static __inline BOOL MSGDUMP_API
1771 MD_Edit_OnSetTabStops(HWND hwnd, INT cTabs, LPDWORD lpdwTabs)
1772 {
1773 MSGDUMP_TPRINTF(TEXT("%sEM_SETTABSTOPS(hwnd:%p, cTabs:%d, lpdwTabs:%p)\n"),
1774 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpdwTabs);
1775 return FALSE;
1776 }
1777
1778 static __inline void MSGDUMP_API
1779 MD_Edit_OnSetPasswordChar(HWND hwnd, UINT ch)
1780 {
1781 MSGDUMP_TPRINTF(TEXT("%sEM_SETPASSWORDCHAR(hwnd:%p, ch:%u)\n"),
1782 MSGDUMP_PREFIX, (void *)hwnd, ch);
1783 }
1784
1785 static __inline void MSGDUMP_API
1786 MD_Edit_OnEmptyUndoBuffer(HWND hwnd)
1787 {
1788 MSGDUMP_TPRINTF(TEXT("%sEM_EMPTYUNDOBUFFER(hwnd:%p)\n"),
1789 MSGDUMP_PREFIX, (void *)hwnd);
1790 }
1791
1792 static __inline INT MSGDUMP_API
1793 MD_Edit_OnGetFirstVisibleLine(HWND hwnd)
1794 {
1795 MSGDUMP_TPRINTF(TEXT("%sEM_GETFIRSTVISIBLELINE(hwnd:%p)\n"),
1796 MSGDUMP_PREFIX, (void *)hwnd);
1797 return 0;
1798 }
1799
1800 static __inline BOOL MSGDUMP_API
1801 MD_Edit_OnSetReadOnly(HWND hwnd, BOOL fReadOnly)
1802 {
1803 MSGDUMP_TPRINTF(TEXT("%sEM_SETREADONLY(hwnd:%p, fReadOnly:%d)\n"),
1804 MSGDUMP_PREFIX, (void *)hwnd, fReadOnly);
1805 return FALSE;
1806 }
1807
1808 static __inline void MSGDUMP_API
1809 MD_Edit_OnSetWordBreakProc(HWND hwnd, EDITWORDBREAKPROC ewbprc)
1810 {
1811 MSGDUMP_TPRINTF(TEXT("%sEM_SETWORDBREAKPROC(hwnd:%p, ewbprc:%p)\n"),
1812 MSGDUMP_PREFIX, (void *)hwnd, (void *)ewbprc);
1813 }
1814
1815 static __inline EDITWORDBREAKPROC MSGDUMP_API
1816 MD_Edit_OnGetWordBreakProc(HWND hwnd)
1817 {
1818 MSGDUMP_TPRINTF(TEXT("%sEM_GETWORDBREAKPROC(hwnd:%p)\n"),
1819 MSGDUMP_PREFIX, (void *)hwnd);
1820 return NULL;
1821 }
1822
1823 static __inline UINT MSGDUMP_API
1824 MD_Edit_OnGetPasswordChar(HWND hwnd)
1825 {
1826 MSGDUMP_TPRINTF(TEXT("%sEM_GETPASSWORDCHAR(hwnd:%p)\n"),
1827 MSGDUMP_PREFIX, (void *)hwnd);
1828 return 0;
1829 }
1830
1831 static __inline void MSGDUMP_API
1832 MD_Edit_OnSetMargins(HWND hwnd, UINT fwMargin, WORD wLeft, WORD wRight)
1833 {
1834 MSGDUMP_TPRINTF(TEXT("%sEM_SETMARGINS(hwnd:%p, fwMargin:%u, wLeft:%d, wRight:%d)\n"),
1835 MSGDUMP_PREFIX, (void *)hwnd, fwMargin, wLeft, wRight);
1836 }
1837
1838 static __inline DWORD MSGDUMP_API
1839 MD_Edit_OnGetMargins(HWND hwnd)
1840 {
1841 MSGDUMP_TPRINTF(TEXT("%sEM_GETMARGINS(hwnd:%p)\n"),
1842 MSGDUMP_PREFIX, (void *)hwnd);
1843 return 0;
1844 }
1845
1846 static __inline void MSGDUMP_API
1847 MD_Edit_OnSetLimitText(HWND hwnd, DWORD cbMax)
1848 {
1849 MSGDUMP_TPRINTF(TEXT("%sEM_SETLIMITTEXT(hwnd:%p, cbMax:%ld)\n"),
1850 MSGDUMP_PREFIX, (void *)hwnd, cbMax);
1851 }
1852
1853 static __inline DWORD MSGDUMP_API
1854 MD_Edit_OnGetLimitText(HWND hwnd)
1855 {
1856 MSGDUMP_TPRINTF(TEXT("%sEM_GETLIMITTEXT(hwnd:%p)\n"),
1857 MSGDUMP_PREFIX, (void *)hwnd);
1858 return 0;
1859 }
1860
1861 static __inline void MSGDUMP_API
1862 MD_Edit_OnPosFromChar(HWND hwnd, LPPOINT lpPoint, UINT wCharIndex)
1863 {
1864 MSGDUMP_TPRINTF(TEXT("%sEM_POSFROMCHAR(hwnd:%p, lpPoint:%p, wCharIndex:%u)\n"),
1865 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpPoint, wCharIndex);
1866 }
1867
1868 static __inline LONG MSGDUMP_API
1869 MD_Edit_OnCharFromPos(HWND hwnd, INT x, INT y)
1870 {
1871 MSGDUMP_TPRINTF(TEXT("%sEM_CHARFROMPOS(hwnd:%p, x:%d, y:%d)\n"),
1872 MSGDUMP_PREFIX, (void *)hwnd, x, y);
1873 return 0;
1874 }
1875
1876 static __inline DWORD MSGDUMP_API
1877 MD_Edit_OnSetIMEStatus(HWND hwnd, UINT uType, DWORD dwFlags)
1878 {
1879 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u, dwFlags:0x%08lX)\n"),
1880 MSGDUMP_PREFIX, (void *)hwnd, uType, dwFlags);
1881 return 0;
1882 }
1883
1884 static __inline DWORD MSGDUMP_API
1885 MD_Edit_OnGetIMEStatus(HWND hwnd, UINT uType)
1886 {
1887 MSGDUMP_TPRINTF(TEXT("%sEM_SETIMESTATUS(hwnd:%p, uType:%u)\n"),
1888 MSGDUMP_PREFIX, (void *)hwnd, uType);
1889 return 0;
1890 }
1891
1892 static __inline HICON MSGDUMP_API
1893 MD_Static_OnSetIcon(HWND hwnd, HICON hIcon)
1894 {
1895 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p, hIcon:%p)\n"),
1896 MSGDUMP_PREFIX, (void *)hwnd, (void *)hIcon);
1897 return NULL;
1898 }
1899
1900 static __inline HICON MSGDUMP_API
1901 MD_Static_OnGetIcon(HWND hwnd)
1902 {
1903
1904 MSGDUMP_TPRINTF(TEXT("%sSTM_SETICON(hwnd:%p)\n"),
1905 MSGDUMP_PREFIX, (void *)hwnd);
1906 return NULL;
1907 }
1908
1909 static __inline HANDLE MSGDUMP_API
1910 MD_Static_OnSetImage(HWND hwnd, UINT fImageType, HANDLE hImage)
1911 {
1912 MSGDUMP_TPRINTF(TEXT("%sSTM_SETIMAGE(hwnd:%p, fImageType:%u, hImage:%p)\n"),
1913 MSGDUMP_PREFIX, (void *)hwnd, fImageType, (void *)hImage);
1914 return NULL;
1915 }
1916
1917 static __inline HANDLE MSGDUMP_API
1918 MD_Static_OnGetImage(HWND hwnd, UINT fImageType)
1919 {
1920 MSGDUMP_TPRINTF(TEXT("%sSTM_GETIMAGE(hwnd:%p, fImageType:%u)\n"),
1921 MSGDUMP_PREFIX, (void *)hwnd, fImageType);
1922 return NULL;
1923 }
1924
1925 static __inline INT MSGDUMP_API
1926 MD_ListBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
1927 {
1928 if (IsWindowUnicode(hwnd))
1929 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
1930 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
1931 else
1932 MSGDUMP_TPRINTF(TEXT("%sLB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
1933 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
1934 return 0;
1935 }
1936
1937 static __inline INT MSGDUMP_API
1938 MD_ListBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
1939 {
1940 if (IsWindowUnicode(hwnd))
1941 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
1942 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
1943 else
1944 MSGDUMP_TPRINTF(TEXT("%sLB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
1945 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
1946 return 0;
1947 }
1948
1949 static __inline INT MSGDUMP_API
1950 MD_ListBox_OnDeleteString(HWND hwnd, INT index)
1951 {
1952 MSGDUMP_TPRINTF(TEXT("%sLB_DELETESTRING(hwnd:%p, index:%d)\n"),
1953 MSGDUMP_PREFIX, (void *)hwnd, index);
1954 return 0;
1955 }
1956
1957 static __inline INT MSGDUMP_API
1958 MD_ListBox_OnSelItemRangeEx(HWND hwnd, UINT wFirst, UINT wLast)
1959 {
1960 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGEEX(hwnd:%p, wFirst:%u, wLast:%u)\n"),
1961 MSGDUMP_PREFIX, (void *)hwnd, wFirst, wLast);
1962 return 0;
1963 }
1964
1965 static __inline void MSGDUMP_API
1966 MD_ListBox_OnResetContent(HWND hwnd)
1967 {
1968 MSGDUMP_TPRINTF(TEXT("%sLB_RESETCONTENT(hwnd:%p)\n"),
1969 MSGDUMP_PREFIX, (void *)hwnd);
1970 }
1971
1972 static __inline INT MSGDUMP_API
1973 MD_ListBox_OnSetSel(HWND hwnd, BOOL fSelect, UINT index)
1974 {
1975 MSGDUMP_TPRINTF(TEXT("%sLB_SETSEL(hwnd:%p, fSelect:%d, index:%u)\n"),
1976 MSGDUMP_PREFIX, (void *)hwnd, fSelect, index);
1977 return 0;
1978 }
1979
1980 static __inline INT MSGDUMP_API
1981 MD_ListBox_OnSetCurSel(HWND hwnd, INT index)
1982 {
1983 MSGDUMP_TPRINTF(TEXT("%sLB_SETCURSEL(hwnd:%p, index:%d)\n"),
1984 MSGDUMP_PREFIX, (void *)hwnd, index);
1985 return 0;
1986 }
1987
1988 static __inline INT MSGDUMP_API
1989 MD_ListBox_OnGetSel(HWND hwnd, INT index)
1990 {
1991 MSGDUMP_TPRINTF(TEXT("%sLB_GETSEL(hwnd:%p, index:%d)\n"),
1992 MSGDUMP_PREFIX, (void *)hwnd, index);
1993 return 0;
1994 }
1995
1996 static __inline INT MSGDUMP_API
1997 MD_ListBox_OnGetCurSel(HWND hwnd)
1998 {
1999 MSGDUMP_TPRINTF(TEXT("%sLB_GETCURSEL(hwnd:%p)\n"),
2000 MSGDUMP_PREFIX, (void *)hwnd);
2001 return 0;
2002 }
2003
2004 static __inline INT MSGDUMP_API
2005 MD_ListBox_OnGetText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2006 {
2007 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXT(hwnd:%p, lpszBuffer:%p)\n"),
2008 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpszBuffer);
2009 return 0;
2010 }
2011
2012 static __inline INT MSGDUMP_API
2013 MD_ListBox_OnGetTextLen(HWND hwnd, INT index)
2014 {
2015 MSGDUMP_TPRINTF(TEXT("%sLB_GETTEXTLEN(hwnd:%p, index:%d)\n"),
2016 MSGDUMP_PREFIX, (void *)hwnd, index);
2017 return 0;
2018 }
2019
2020 static __inline INT MSGDUMP_API
2021 MD_ListBox_OnGetCount(HWND hwnd)
2022 {
2023 MSGDUMP_TPRINTF(TEXT("%sLB_GETCOUNT(hwnd:%p)\n"),
2024 MSGDUMP_PREFIX, (void *)hwnd);
2025 return 0;
2026 }
2027
2028 static __inline INT MSGDUMP_API
2029 MD_ListBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2030 {
2031 if (IsWindowUnicode(hwnd))
2032 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2033 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2034 else
2035 MSGDUMP_TPRINTF(TEXT("%sLB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2036 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2037 return 0;
2038 }
2039
2040 static __inline INT MSGDUMP_API
2041 MD_ListBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2042 {
2043 if (IsWindowUnicode(hwnd))
2044 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2045 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2046 else
2047 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%hs)\n"),
2048 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2049 return 0;
2050 }
2051
2052 static __inline INT MSGDUMP_API
2053 MD_ListBox_OnGetTopIndex(HWND hwnd)
2054 {
2055 MSGDUMP_TPRINTF(TEXT("%sLB_DIR(hwnd:%p)\n"),
2056 MSGDUMP_PREFIX, (void *)hwnd);
2057 return 0;
2058 }
2059
2060 static __inline INT MSGDUMP_API
2061 MD_ListBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2062 {
2063 if (IsWindowUnicode(hwnd))
2064 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2065 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2066 else
2067 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2068 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2069 return 0;
2070 }
2071
2072 static __inline INT MSGDUMP_API
2073 MD_ListBox_OnGetSelCount(HWND hwnd)
2074 {
2075 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELCOUNT(hwnd:%p)\n"),
2076 MSGDUMP_PREFIX, (void *)hwnd);
2077 return 0;
2078 }
2079
2080 static __inline INT MSGDUMP_API
2081 MD_ListBox_OnGetSelItems(HWND hwnd, UINT cItems, LPINT lpnItems)
2082 {
2083 MSGDUMP_TPRINTF(TEXT("%sLB_GETSELITEMS(hwnd:%p, cItems:%u, lpnItems:%p)\n"),
2084 MSGDUMP_PREFIX, (void *)hwnd, cItems, (void *)lpnItems);
2085 return 0;
2086 }
2087
2088 static __inline BOOL MSGDUMP_API
2089 MD_ListBox_OnSetTabStops(HWND hwnd, UINT cTabs, LPINT lpnTabs)
2090 {
2091 MSGDUMP_TPRINTF(TEXT("%sLB_SETTABSTOPS(hwnd:%p, cTabs:%u, lpnTabs:%p)\n"),
2092 MSGDUMP_PREFIX, (void *)hwnd, cTabs, (void *)lpnTabs);
2093 return FALSE;
2094 }
2095
2096 static __inline INT MSGDUMP_API
2097 MD_ListBox_OnGetHorizontalExtent(HWND hwnd)
2098 {
2099 MSGDUMP_TPRINTF(TEXT("%sLB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2100 MSGDUMP_PREFIX, (void *)hwnd);
2101 return 0;
2102 }
2103
2104 static __inline void MSGDUMP_API
2105 MD_ListBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2106 {
2107 MSGDUMP_TPRINTF(TEXT("%sLB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2108 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2109 }
2110
2111 static __inline void MSGDUMP_API
2112 MD_ListBox_OnSetColumnWidth(HWND hwnd, INT cxColumn)
2113 {
2114 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOLUMNWIDTH(hwnd:%p, cxColumn:%d)\n"),
2115 MSGDUMP_PREFIX, (void *)hwnd, cxColumn);
2116 }
2117
2118 static __inline INT MSGDUMP_API
2119 MD_ListBox_OnAddFile(HWND hwnd, LPCTSTR lpszFilename)
2120 {
2121 if (IsWindowUnicode(hwnd))
2122 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2123 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpszFilename);
2124 else
2125 MSGDUMP_TPRINTF(TEXT("%sLB_ADDFILE(hwnd:%p, lpszFilename:%ls)\n"),
2126 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpszFilename);
2127 return 0;
2128 }
2129
2130 static __inline INT MSGDUMP_API
2131 MD_ListBox_OnSetTopIndex(HWND hwnd, INT index)
2132 {
2133 MSGDUMP_TPRINTF(TEXT("%sLB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2134 MSGDUMP_PREFIX, (void *)hwnd, index);
2135 return 0;
2136 }
2137
2138 static __inline INT MSGDUMP_API
2139 MD_ListBox_OnGetItemRect(HWND hwnd, INT index, RECT FAR *lprc)
2140 {
2141 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMRECT(hwnd:%p, index:%d, lprc:%p)\n"),
2142 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lprc);
2143 return 0;
2144 }
2145
2146 static __inline INT_PTR MSGDUMP_API
2147 MD_ListBox_OnGetItemData(HWND hwnd, INT index)
2148 {
2149 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2150 MSGDUMP_PREFIX, (void *)hwnd, index);
2151 return 0;
2152 }
2153
2154 static __inline INT_PTR MSGDUMP_API
2155 MD_ListBox_OnSetItemData(HWND hwnd, INT index, LPARAM dwData)
2156 {
2157 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2158 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2159 return 0;
2160 }
2161
2162 static __inline INT MSGDUMP_API
2163 MD_ListBox_OnSelItemRange(HWND hwnd, BOOL fSelect, UINT wFirst, UINT wLast)
2164 {
2165 MSGDUMP_TPRINTF(TEXT("%sLB_SELITEMRANGE(hwnd:%p, fSelect:%d, wFirst:%u, wLast:%u)\n"),
2166 MSGDUMP_PREFIX, (void *)hwnd, fSelect, wFirst, wLast);
2167 return 0;
2168 }
2169
2170 static __inline INT MSGDUMP_API
2171 MD_ListBox_OnSetAnchorIndex(HWND hwnd, INT index)
2172 {
2173 MSGDUMP_TPRINTF(TEXT("%sLB_SETANCHORINDEX(hwnd:%p, index:%d)\n"),
2174 MSGDUMP_PREFIX, (void *)hwnd, index);
2175 return 0;
2176 }
2177
2178 static __inline INT MSGDUMP_API
2179 MD_ListBox_OnGetAnchorIndex(HWND hwnd)
2180 {
2181 MSGDUMP_TPRINTF(TEXT("%sLB_GETANCHORINDEX(hwnd:%p)\n"),
2182 MSGDUMP_PREFIX, (void *)hwnd);
2183 return 0;
2184 }
2185
2186 static __inline INT MSGDUMP_API
2187 MD_ListBox_OnSetCaretIndex(HWND hwnd, INT index, BOOL fScroll)
2188 {
2189 MSGDUMP_TPRINTF(TEXT("%sLB_SETCARETINDEX(hwnd:%p, index:%d, fScroll:%d)\n"),
2190 MSGDUMP_PREFIX, (void *)hwnd, index, fScroll);
2191 return 0;
2192 }
2193
2194 static __inline INT MSGDUMP_API
2195 MD_ListBox_OnGetCaretIndex(HWND hwnd)
2196 {
2197 MSGDUMP_TPRINTF(TEXT("%sLB_GETCARETINDEX(hwnd:%p)\n"),
2198 MSGDUMP_PREFIX, (void *)hwnd);
2199 return 0;
2200 }
2201
2202 static __inline INT MSGDUMP_API
2203 MD_ListBox_OnSetItemHeight(HWND hwnd, INT index, INT cyItem)
2204 {
2205 MSGDUMP_TPRINTF(TEXT("%sLB_SETITEMHEIGHT(hwnd:%p, index:%d, cyItem:%d)\n"),
2206 MSGDUMP_PREFIX, (void *)hwnd, index, cyItem);
2207 return 0;
2208 }
2209
2210 static __inline INT MSGDUMP_API
2211 MD_ListBox_OnGetItemHeight(HWND hwnd, INT index)
2212 {
2213 MSGDUMP_TPRINTF(TEXT("%sLB_GETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2214 MSGDUMP_PREFIX, (void *)hwnd, index);
2215 return 0;
2216 }
2217
2218 static __inline INT MSGDUMP_API
2219 MD_ListBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2220 {
2221 if (IsWindowUnicode(hwnd))
2222 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2223 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2224 else
2225 MSGDUMP_TPRINTF(TEXT("%sLB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2226 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2227 return 0;
2228 }
2229
2230 static __inline LCID MSGDUMP_API
2231 MD_ListBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2232 {
2233 MSGDUMP_TPRINTF(TEXT("%sLB_SETLOCALE(hwnd:%p, wLocaleID:0x%08X)\n"),
2234 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2235 return 0;
2236 }
2237
2238 static __inline LCID MSGDUMP_API
2239 MD_ListBox_OnGetLocale(HWND hwnd)
2240 {
2241 MSGDUMP_TPRINTF(TEXT("%sLB_GETLOCALE(hwnd:%p)\n"),
2242 MSGDUMP_PREFIX, (void *)hwnd);
2243 return 0;
2244 }
2245
2246 static __inline INT MSGDUMP_API
2247 MD_ListBox_OnSetCount(HWND hwnd, INT cItems)
2248 {
2249 MSGDUMP_TPRINTF(TEXT("%sLB_SETCOUNT(hwnd:%p, cItems:%d)\n"),
2250 MSGDUMP_PREFIX, (void *)hwnd, cItems);
2251 return 0;
2252 }
2253
2254 static __inline DWORD MSGDUMP_API
2255 MD_ListBox_OnInitStorage(HWND hwnd, UINT cItems, DWORD cb)
2256 {
2257 MSGDUMP_TPRINTF(TEXT("%sLB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2258 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2259 return 0;
2260 }
2261
2262 static __inline DWORD MSGDUMP_API
2263 MD_ListBox_OnItemFromPoint(HWND hwnd, INT xPos, INT yPos)
2264 {
2265 MSGDUMP_TPRINTF(TEXT("%sLB_ITEMFROMPOINT(hwnd:%p, xPos:%d, yPos:%d)\n"),
2266 MSGDUMP_PREFIX, (void *)hwnd, xPos, yPos);
2267 return 0;
2268 }
2269
2270 static __inline DWORD MSGDUMP_API
2271 MD_ComboBox_OnGetEditSel(HWND hwnd, LPDWORD lpdwStart, LPDWORD lpdwEnd)
2272 {
2273 MSGDUMP_TPRINTF(TEXT("%sCB_GETEDITSEL(hwnd:%p, lpdwStart:%p, lpdwEnd:%p)\n"),
2274 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpdwStart, (void *)lpdwEnd);
2275 return 0;
2276 }
2277
2278 static __inline void MSGDUMP_API
2279 MD_ComboBox_OnLimitText(HWND hwnd, UINT cchLimit)
2280 {
2281 MSGDUMP_TPRINTF(TEXT("%sCB_LIMITTEXT(hwnd:%p, cchLimit:%u)\n"),
2282 MSGDUMP_PREFIX, (void *)hwnd, cchLimit);
2283 }
2284
2285 static __inline INT MSGDUMP_API
2286 MD_ComboBox_OnSetEditSel(HWND hwnd, INT ichStart, INT ichEnd)
2287 {
2288 MSGDUMP_TPRINTF(TEXT("%sCB_SETEDITSEL(hwnd:%p, ichStart:%d, ichEnd:%d)\n"),
2289 MSGDUMP_PREFIX, (void *)hwnd, ichStart, ichEnd);
2290 return 0;
2291 }
2292
2293 static __inline INT MSGDUMP_API
2294 MD_ComboBox_OnAddString(HWND hwnd, LPCTSTR lpsz)
2295 {
2296 if (IsWindowUnicode(hwnd))
2297 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%ls)\n"),
2298 MSGDUMP_PREFIX, (void *)hwnd, (LPCWSTR)lpsz);
2299 else
2300 MSGDUMP_TPRINTF(TEXT("%sCB_ADDSTRING(hwnd:%p, lpsz:%hs)\n"),
2301 MSGDUMP_PREFIX, (void *)hwnd, (LPCSTR)lpsz);
2302 return 0;
2303 }
2304
2305 static __inline INT MSGDUMP_API
2306 MD_ComboBox_OnDeleteString(HWND hwnd, INT index)
2307 {
2308 MSGDUMP_TPRINTF(TEXT("%sCB_DELETESTRING(hwnd:%p, index:%d)\n"),
2309 MSGDUMP_PREFIX, (void *)hwnd, index);
2310 return 0;
2311 }
2312
2313 static __inline INT MSGDUMP_API
2314 MD_ComboBox_OnDir(HWND hwnd, UINT uAttrs, LPCTSTR lpszFileSpec)
2315 {
2316 if (IsWindowUnicode(hwnd))
2317 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2318 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCWSTR)lpszFileSpec);
2319 else
2320 MSGDUMP_TPRINTF(TEXT("%sCB_DIR(hwnd:%p, uAttrs:%u, lpszFileSpec:%ls)\n"),
2321 MSGDUMP_PREFIX, (void *)hwnd, uAttrs, (LPCSTR)lpszFileSpec);
2322 return 0;
2323 }
2324
2325 static __inline INT MSGDUMP_API
2326 MD_ComboBox_OnGetCount(HWND hwnd)
2327 {
2328 MSGDUMP_TPRINTF(TEXT("%sCB_GETCOUNT(hwnd:%p)\n"),
2329 MSGDUMP_PREFIX, (void *)hwnd);
2330 return 0;
2331 }
2332
2333 static __inline INT MSGDUMP_API
2334 MD_ComboBox_GetCurSel(HWND hwnd)
2335 {
2336 MSGDUMP_TPRINTF(TEXT("%sCB_GETCURSEL(hwnd:%p)\n"),
2337 MSGDUMP_PREFIX, (void *)hwnd);
2338 return 0;
2339 }
2340
2341 static __inline INT MSGDUMP_API
2342 MD_ComboBox_GetLBText(HWND hwnd, INT index, LPTSTR lpszBuffer)
2343 {
2344 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXT(hwnd:%p, index:%d, lpszBuffer:%p)\n"),
2345 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)lpszBuffer);
2346 return 0;
2347 }
2348
2349 static __inline INT MSGDUMP_API
2350 MD_ComboBox_OnGetLBTextLen(HWND hwnd, INT index)
2351 {
2352 MSGDUMP_TPRINTF(TEXT("%sCB_GETLBTEXTLEN(hwnd:%p, index:%d)\n"),
2353 MSGDUMP_PREFIX, (void *)hwnd, index);
2354 return 0;
2355 }
2356
2357 static __inline INT MSGDUMP_API
2358 MD_ComboBox_OnInsertString(HWND hwnd, INT index, LPCTSTR lpsz)
2359 {
2360 if (IsWindowUnicode(hwnd))
2361 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%ls)\n"),
2362 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCWSTR)lpsz);
2363 else
2364 MSGDUMP_TPRINTF(TEXT("%sCB_INSERTSTRING(hwnd:%p, index:%d, lpsz:%hs)\n"),
2365 MSGDUMP_PREFIX, (void *)hwnd, index, (LPCSTR)lpsz);
2366 return 0;
2367 }
2368
2369 static __inline void MSGDUMP_API
2370 MD_ComboBox_OnResetContent(HWND hwnd)
2371 {
2372 MSGDUMP_TPRINTF(TEXT("%sCB_RESETCONTENT(hwnd:%p)\n"),
2373 MSGDUMP_PREFIX, (void *)hwnd);
2374 }
2375
2376 static __inline INT MSGDUMP_API
2377 MD_ComboBox_OnFindString(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2378 {
2379 if (IsWindowUnicode(hwnd))
2380 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2381 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2382 else
2383 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRING(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2384 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2385 return 0;
2386 }
2387
2388 static __inline INT MSGDUMP_API
2389 MD_ComboBox_OnSelectString(HWND hwnd, INT indexStart, LPCTSTR lpszSelect)
2390 {
2391 if (IsWindowUnicode(hwnd))
2392 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%ls)\n"),
2393 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszSelect);
2394 else
2395 MSGDUMP_TPRINTF(TEXT("%sCB_SELECTSTRING(hwnd:%p, indexStart:%d, lpszSelect:%hs)\n"),
2396 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszSelect);
2397 return 0;
2398 }
2399
2400 static __inline INT MSGDUMP_API
2401 MD_ComboBox_OnSetCurSel(HWND hwnd, INT index)
2402 {
2403 MSGDUMP_TPRINTF(TEXT("%sCB_SETCURSEL(hwnd:%p, index:%d)\n"),
2404 MSGDUMP_PREFIX, (void *)hwnd, index);
2405 return 0;
2406 }
2407
2408 static __inline BOOL MSGDUMP_API
2409 MD_ComboBox_OnShowDropDown(HWND hwnd, BOOL fShow)
2410 {
2411 MSGDUMP_TPRINTF(TEXT("%sCB_SHOWDROPDOWN(hwnd:%p, fShow:%d)\n"),
2412 MSGDUMP_PREFIX, (void *)hwnd, fShow);
2413 return FALSE;
2414 }
2415
2416 static __inline INT_PTR MSGDUMP_API
2417 MD_ComboBox_OnGetItemData(HWND hwnd, INT index)
2418 {
2419 MSGDUMP_TPRINTF(TEXT("%sCB_GETITEMDATA(hwnd:%p, index:%d)\n"),
2420 MSGDUMP_PREFIX, (void *)hwnd, index);
2421 return 0;
2422 }
2423
2424 static __inline INT_PTR MSGDUMP_API
2425 MD_ComboBox_OnSetItemData(HWND hwnd, INT index, DWORD_PTR dwData)
2426 {
2427 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMDATA(hwnd:%p, index:%d, dwData:%p)\n"),
2428 MSGDUMP_PREFIX, (void *)hwnd, index, (void *)dwData);
2429 return 0;
2430 }
2431
2432 static __inline void MSGDUMP_API
2433 MD_ComboBox_OnGetDroppedControlRect(HWND hwnd, RECT FAR *lprc)
2434 {
2435 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDCONTROLRECT(hwnd:%p, lprc:%p)\n"),
2436 MSGDUMP_PREFIX, (void *)hwnd, (void *)lprc);
2437 }
2438
2439 static __inline INT MSGDUMP_API
2440 MD_ComboBox_OnSetItemHeight(HWND hwnd, INT index, INT height)
2441 {
2442 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d, height:%d)\n"),
2443 MSGDUMP_PREFIX, (void *)hwnd, index, height);
2444 return 0;
2445 }
2446
2447 static __inline INT MSGDUMP_API
2448 MD_ComboBox_OnGetItemHeight(HWND hwnd, INT index)
2449 {
2450 MSGDUMP_TPRINTF(TEXT("%sCB_SETITEMHEIGHT(hwnd:%p, index:%d)\n"),
2451 MSGDUMP_PREFIX, (void *)hwnd, index);
2452 return 0;
2453 }
2454
2455 static __inline INT MSGDUMP_API
2456 MD_ComboBox_OnSetExtendedUI(HWND hwnd, BOOL fExtended)
2457 {
2458 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p, fExtended:%d)\n"),
2459 MSGDUMP_PREFIX, (void *)hwnd, fExtended);
2460 return 0;
2461 }
2462
2463 static __inline BOOL MSGDUMP_API
2464 MD_ComboBox_OnGetExtendedUI(HWND hwnd)
2465 {
2466 MSGDUMP_TPRINTF(TEXT("%sCB_SETEXTENDEDUI(hwnd:%p)\n"),
2467 MSGDUMP_PREFIX, (void *)hwnd);
2468 return FALSE;
2469 }
2470
2471 static __inline BOOL MSGDUMP_API
2472 MD_ComboBox_OnGetDroppedState(HWND hwnd)
2473 {
2474 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDSTATE(hwnd:%p)\n"),
2475 MSGDUMP_PREFIX, (void *)hwnd);
2476 return FALSE;
2477 }
2478
2479 static __inline INT MSGDUMP_API
2480 MD_ComboBox_OnFindStringExact(HWND hwnd, INT indexStart, LPCTSTR lpszFind)
2481 {
2482 if (IsWindowUnicode(hwnd))
2483 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%ls)\n"),
2484 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCWSTR)lpszFind);
2485 else
2486 MSGDUMP_TPRINTF(TEXT("%sCB_FINDSTRINGEXACT(hwnd:%p, indexStart:%d, lpszFind:%hs)\n"),
2487 MSGDUMP_PREFIX, (void *)hwnd, indexStart, (LPCSTR)lpszFind);
2488 return 0;
2489 }
2490
2491 static __inline LCID MSGDUMP_API
2492 MD_ComboBox_OnSetLocale(HWND hwnd, LCID wLocaleID)
2493 {
2494 MSGDUMP_TPRINTF(TEXT("%sCB_SETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2495 MSGDUMP_PREFIX, (void *)hwnd, wLocaleID);
2496 return 0;
2497 }
2498
2499 static __inline LCID MSGDUMP_API
2500 MD_ComboBox_OnGetLocale(HWND hwnd)
2501 {
2502 MSGDUMP_TPRINTF(TEXT("%sCB_GETLOCALE(hwnd:%p, wLocaleID:0x%08lX)\n"),
2503 MSGDUMP_PREFIX, (void *)hwnd);
2504 return 0;
2505 }
2506
2507 static __inline INT MSGDUMP_API
2508 MD_ComboBox_OnGetTopIndex(HWND hwnd)
2509 {
2510 MSGDUMP_TPRINTF(TEXT("%sCB_GETTOPINDEX(hwnd:%p)\n"),
2511 MSGDUMP_PREFIX, (void *)hwnd);
2512 return 0;
2513 }
2514
2515 static __inline INT MSGDUMP_API
2516 MD_ComboBox_OnSetTopIndex(HWND hwnd, INT index)
2517 {
2518 MSGDUMP_TPRINTF(TEXT("%sCB_SETTOPINDEX(hwnd:%p, index:%d)\n"),
2519 MSGDUMP_PREFIX, (void *)hwnd, index);
2520 return 0;
2521 }
2522
2523 static __inline INT MSGDUMP_API
2524 MD_ComboBox_OnGetHorizontalExtent(HWND hwnd)
2525 {
2526 MSGDUMP_TPRINTF(TEXT("%sCB_GETHORIZONTALEXTENT(hwnd:%p)\n"),
2527 MSGDUMP_PREFIX, (void *)hwnd);
2528 return 0;
2529 }
2530
2531 static __inline void MSGDUMP_API
2532 MD_ComboBox_OnSetHorizontalExtent(HWND hwnd, INT cxExtent)
2533 {
2534 MSGDUMP_TPRINTF(TEXT("%sCB_SETHORIZONTALEXTENT(hwnd:%p, cxExtent:%d)\n"),
2535 MSGDUMP_PREFIX, (void *)hwnd, cxExtent);
2536 }
2537
2538 static __inline INT MSGDUMP_API
2539 MD_ComboBox_OnGetDroppedWidth(HWND hwnd)
2540 {
2541 MSGDUMP_TPRINTF(TEXT("%sCB_GETDROPPEDWIDTH(hwnd:%p)\n"),
2542 MSGDUMP_PREFIX, (void *)hwnd);
2543 return 0;
2544 }
2545
2546 static __inline INT MSGDUMP_API
2547 MD_ComboBox_OnSetDroppedWidth(HWND hwnd, INT wWidth)
2548 {
2549 MSGDUMP_TPRINTF(TEXT("%sCB_SETDROPPEDWIDTH(hwnd:%p, wWidth:%d)\n"),
2550 MSGDUMP_PREFIX, (void *)hwnd, wWidth);
2551 return 0;
2552 }
2553
2554 static __inline INT MSGDUMP_API
2555 MD_ComboBox_OnInitStorage(HWND hwnd, INT cItems, DWORD cb)
2556 {
2557 MSGDUMP_TPRINTF(TEXT("%sCB_INITSTORAGE(hwnd:%p, cItems:%d, cb:%lu)\n"),
2558 MSGDUMP_PREFIX, (void *)hwnd, cItems, cb);
2559 return 0;
2560 }
2561
2562 static __inline INT MSGDUMP_API
2563 MD_ScrollBar_OnSetPos(HWND hwnd, INT nPos, BOOL fRedraw)
2564 {
2565 MSGDUMP_TPRINTF(TEXT("%sSBM_SETPOS(hwnd:%p, nPos:%d, fRedraw:%d)\n"),
2566 MSGDUMP_PREFIX, (void *)hwnd, nPos, fRedraw);
2567 return 0;
2568 }
2569
2570 static __inline INT MSGDUMP_API
2571 MD_ScrollBar_OnGetPos(HWND hwnd)
2572 {
2573 MSGDUMP_TPRINTF(TEXT("%sSBM_GETPOS(hwnd:%p)\n"),
2574 MSGDUMP_PREFIX, (void *)hwnd);
2575 return 0;
2576 }
2577
2578 static __inline INT MSGDUMP_API
2579 MD_ScrollBar_OnSetRange(HWND hwnd, INT nMinPos, INT nMaxPos)
2580 {
2581 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGE(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2582 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2583 return 0;
2584 }
2585
2586 static __inline INT MSGDUMP_API
2587 MD_ScrollBar_OnSetRangeRedraw(HWND hwnd, INT nMinPos, INT nMaxPos)
2588 {
2589 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, nMinPos:%d, nMaxPos:%d)\n"),
2590 MSGDUMP_PREFIX, (void *)hwnd, nMinPos, nMaxPos);
2591 return 0;
2592 }
2593
2594 static __inline void MSGDUMP_API
2595 MD_ScrollBar_OnGetRange(HWND hwnd, LPINT lpnMinPos, LPINT lpnMaxPos)
2596 {
2597 MSGDUMP_TPRINTF(TEXT("%sSBM_SETRANGEREDRAW(hwnd:%p, lpnMinPos:%p, lpnMaxPos:%p)\n"),
2598 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpnMinPos, (void *)lpnMaxPos);
2599 }
2600
2601 static __inline BOOL MSGDUMP_API
2602 MD_ScrollBar_OnEnableArrows(HWND hwnd, UINT fuArrowFlags)
2603 {
2604 MSGDUMP_TPRINTF(TEXT("%sSBM_ENABLE_ARROWS(hwnd:%p, fuArrowFlags:%u)\n"),
2605 MSGDUMP_PREFIX, (void *)hwnd, fuArrowFlags);
2606 return FALSE;
2607 }
2608
2609 static __inline INT MSGDUMP_API
2610 MD_ScrollBar_OnSetScrollInfo(HWND hwnd, BOOL fRedraw, LPSCROLLINFO lpsi)
2611 {
2612 MSGDUMP_TPRINTF(TEXT("%sSBM_SETSCROLLINFO(hwnd:%p, fRedraw:%d, lpsi:%p)\n"),
2613 MSGDUMP_PREFIX, (void *)hwnd, fRedraw, (void *)lpsi);
2614 return 0;
2615 }
2616
2617 static __inline BOOL MSGDUMP_API
2618 MD_ScrollBar_OnGetScrollInfo(HWND hwnd, LPSCROLLINFO lpsi)
2619 {
2620 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLINFO(hwnd:%p, lpsi:%p)\n"),
2621 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsi);
2622 return FALSE;
2623 }
2624
2625 static __inline BOOL MSGDUMP_API
2626 MD_ScrollBar_OnGetScrollBarInfo(HWND hwnd, LPSCROLLBARINFO lpsbi)
2627 {
2628 MSGDUMP_TPRINTF(TEXT("%sSBM_GETSCROLLBARINFO(hwnd:%p, lpsbi:%p)\n"),
2629 MSGDUMP_PREFIX, (void *)hwnd, (void *)lpsbi);
2630 return FALSE;
2631 }
2632
2633 static __inline LRESULT MSGDUMP_API
2634 MD_msgdump(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
2635 {
2636 TCHAR szClass[32];
2637 szClass[0] = 0;
2638 GetClassName(hwnd, szClass, ARRAYSIZE(szClass));
2639 if (lstrcmpi(szClass, TEXT("EDIT")) == 0)
2640 {
2641 switch (uMsg)
2642 {
2643 HANDLE_MSG(hwnd, EM_GETSEL, MD_Edit_OnGetSel);
2644 HANDLE_MSG(hwnd, EM_SETSEL, MD_Edit_OnSetSel);
2645 HANDLE_MSG(hwnd, EM_GETRECT, MD_Edit_OnGetRect);
2646 HANDLE_MSG(hwnd, EM_SETRECT, MD_Edit_OnSetRect);
2647 HANDLE_MSG(hwnd, EM_SETRECTNP, MD_Edit_OnSetRectNP);
2648 HANDLE_MSG(hwnd, EM_SCROLL, MD_Edit_OnScroll);
2649 HANDLE_MSG(hwnd, EM_LINESCROLL, MD_Edit_OnLineScroll);
2650 HANDLE_MSG(hwnd, EM_SCROLLCARET, MD_Edit_OnScrollCaret);
2651 HANDLE_MSG(hwnd, EM_GETMODIFY, MD_Edit_OnGetModify);
2652 HANDLE_MSG(hwnd, EM_SETMODIFY, MD_Edit_OnSetModify);
2653 HANDLE_MSG(hwnd, EM_GETLINECOUNT, MD_Edit_OnGetLineCount);
2654 HANDLE_MSG(hwnd, EM_LINEINDEX, MD_Edit_OnLineIndex);
2655 HANDLE_MSG(hwnd, EM_SETHANDLE, MD_Edit_OnSetHandle);
2656 HANDLE_MSG(hwnd, EM_GETHANDLE, MD_Edit_OnGetHandle);
2657 HANDLE_MSG(hwnd, EM_GETTHUMB, MD_Edit_OnGetThumb);
2658 HANDLE_MSG(hwnd, EM_LINELENGTH, MD_Edit_OnLineLength);
2659 HANDLE_MSG(hwnd, EM_REPLACESEL, MD_Edit_OnReplaceSel);
2660 HANDLE_MSG(hwnd, EM_GETLINE, MD_Edit_OnGetLine);
2661 HANDLE_MSG(hwnd, EM_CANUNDO, MD_Edit_OnCanUndo);
2662 HANDLE_MSG(hwnd, EM_UNDO, MD_Edit_OnUndo);
2663 HANDLE_MSG(hwnd, EM_FMTLINES, MD_Edit_OnFmtLines);
2664 HANDLE_MSG(hwnd, EM_LINEFROMCHAR, MD_Edit_OnLineFromChar);
2665 HANDLE_MSG(hwnd, EM_SETTABSTOPS, MD_Edit_OnSetTabStops);
2666 HANDLE_MSG(hwnd, EM_SETPASSWORDCHAR, MD_Edit_OnSetPasswordChar);
2667 HANDLE_MSG(hwnd, EM_EMPTYUNDOBUFFER, MD_Edit_OnEmptyUndoBuffer);
2668 HANDLE_MSG(hwnd, EM_GETFIRSTVISIBLELINE, MD_Edit_OnGetFirstVisibleLine);
2669 HANDLE_MSG(hwnd, EM_SETREADONLY, MD_Edit_OnSetReadOnly);
2670 HANDLE_MSG(hwnd, EM_SETWORDBREAKPROC, MD_Edit_OnSetWordBreakProc);
2671 HANDLE_MSG(hwnd, EM_GETWORDBREAKPROC, MD_Edit_OnGetWordBreakProc);
2672 HANDLE_MSG(hwnd, EM_GETPASSWORDCHAR, MD_Edit_OnGetPasswordChar);
2673 HANDLE_MSG(hwnd, EM_SETMARGINS, MD_Edit_OnSetMargins);
2674 HANDLE_MSG(hwnd, EM_GETMARGINS, MD_Edit_OnGetMargins);
2675 HANDLE_MSG(hwnd, EM_SETLIMITTEXT, MD_Edit_OnSetLimitText);
2676 HANDLE_MSG(hwnd, EM_GETLIMITTEXT, MD_Edit_OnGetLimitText);
2677 HANDLE_MSG(hwnd, EM_POSFROMCHAR, MD_Edit_OnPosFromChar);
2678 HANDLE_MSG(hwnd, EM_CHARFROMPOS, MD_Edit_OnCharFromPos);
2679 HANDLE_MSG(hwnd, EM_SETIMESTATUS, MD_Edit_OnSetIMEStatus);
2680 HANDLE_MSG(hwnd, EM_GETIMESTATUS, MD_Edit_OnGetIMEStatus);
2681 }
2682 }
2683 else if (lstrcmpi(szClass, TEXT("STATIC")) == 0)
2684 {
2685 switch (uMsg)
2686 {
2687 HANDLE_MSG(hwnd, STM_SETICON, MD_Static_OnSetIcon);
2688 HANDLE_MSG(hwnd, STM_GETICON, MD_Static_OnGetIcon);
2689 HANDLE_MSG(hwnd, STM_SETIMAGE, MD_Static_OnSetImage);
2690 HANDLE_MSG(hwnd, STM_GETIMAGE, MD_Static_OnGetImage);
2691 }
2692 }
2693 else if (lstrcmpi(szClass, TEXT("LISTBOX")) == 0)
2694 {
2695 switch (uMsg)
2696 {
2697 HANDLE_MSG(hwnd, LB_ADDSTRING, MD_ListBox_OnAddString);
2698 HANDLE_MSG(hwnd, LB_INSERTSTRING, MD_ListBox_OnInsertString);
2699 HANDLE_MSG(hwnd, LB_DELETESTRING, MD_ListBox_OnDeleteString);
2700 HANDLE_MSG(hwnd, LB_SELITEMRANGEEX, MD_ListBox_OnSelItemRangeEx);
2701 HANDLE_MSG(hwnd, LB_RESETCONTENT, MD_ListBox_OnResetContent);
2702 HANDLE_MSG(hwnd, LB_SETSEL, MD_ListBox_OnSetSel);
2703 HANDLE_MSG(hwnd, LB_SETCURSEL, MD_ListBox_OnSetCurSel);
2704 HANDLE_MSG(hwnd, LB_GETSEL, MD_ListBox_OnGetSel);
2705 HANDLE_MSG(hwnd, LB_GETCURSEL, MD_ListBox_OnGetCurSel);
2706 HANDLE_MSG(hwnd, LB_GETTEXT, MD_ListBox_OnGetText);
2707 HANDLE_MSG(hwnd, LB_GETTEXTLEN, MD_ListBox_OnGetTextLen);
2708 HANDLE_MSG(hwnd, LB_GETCOUNT, MD_ListBox_OnGetCount);
2709 HANDLE_MSG(hwnd, LB_SELECTSTRING, MD_ListBox_OnSelectString);
2710 HANDLE_MSG(hwnd, LB_DIR, MD_ListBox_OnDir);
2711 HANDLE_MSG(hwnd, LB_GETTOPINDEX, MD_ListBox_OnGetTopIndex);
2712 HANDLE_MSG(hwnd, LB_FINDSTRING, MD_ListBox_OnFindString);
2713 HANDLE_MSG(hwnd, LB_GETSELCOUNT, MD_ListBox_OnGetSelCount);
2714 HANDLE_MSG(hwnd, LB_GETSELITEMS, MD_ListBox_OnGetSelItems);
2715 HANDLE_MSG(hwnd, LB_SETTABSTOPS, MD_ListBox_OnSetTabStops);
2716 HANDLE_MSG(hwnd, LB_GETHORIZONTALEXTENT, MD_ListBox_OnGetHorizontalExtent);
2717 HANDLE_MSG(hwnd, LB_SETHORIZONTALEXTENT, MD_ListBox_OnSetHorizontalExtent);
2718 HANDLE_MSG(hwnd, LB_SETCOLUMNWIDTH, MD_ListBox_OnSetColumnWidth);
2719 HANDLE_MSG(hwnd, LB_ADDFILE, MD_ListBox_OnAddFile);
2720 HANDLE_MSG(hwnd, LB_SETTOPINDEX, MD_ListBox_OnSetTopIndex);
2721 HANDLE_MSG(hwnd, LB_GETITEMRECT, MD_ListBox_OnGetItemRect);
2722 HANDLE_MSG(hwnd, LB_GETITEMDATA, MD_ListBox_OnGetItemData);
2723 HANDLE_MSG(hwnd, LB_SETITEMDATA, MD_ListBox_OnSetItemData);
2724 HANDLE_MSG(hwnd, LB_SELITEMRANGE, MD_ListBox_OnSelItemRange);
2725 HANDLE_MSG(hwnd, LB_SETANCHORINDEX, MD_ListBox_OnSetAnchorIndex);
2726 HANDLE_MSG(hwnd, LB_GETANCHORINDEX, MD_ListBox_OnGetAnchorIndex);
2727 HANDLE_MSG(hwnd, LB_SETCARETINDEX, MD_ListBox_OnSetCaretIndex);
2728 HANDLE_MSG(hwnd, LB_GETCARETINDEX, MD_ListBox_OnGetCaretIndex);
2729 HANDLE_MSG(hwnd, LB_SETITEMHEIGHT, MD_ListBox_OnSetItemHeight);
2730 HANDLE_MSG(hwnd, LB_GETITEMHEIGHT, MD_ListBox_OnGetItemHeight);
2731 HANDLE_MSG(hwnd, LB_FINDSTRINGEXACT, MD_ListBox_OnFindStringExact);
2732 HANDLE_MSG(hwnd, LB_SETLOCALE, MD_ListBox_OnSetLocale);
2733 HANDLE_MSG(hwnd, LB_GETLOCALE, MD_ListBox_OnGetLocale);
2734 HANDLE_MSG(hwnd, LB_SETCOUNT, MD_ListBox_OnSetCount);
2735 HANDLE_MSG(hwnd, LB_INITSTORAGE, MD_ListBox_OnInitStorage);
2736 HANDLE_MSG(hwnd, LB_ITEMFROMPOINT, MD_ListBox_OnItemFromPoint);
2737 }
2738 }
2739 else if (lstrcmpi(szClass, TEXT("COMBOBOX")) == 0)
2740 {
2741 switch (uMsg)
2742 {
2743 HANDLE_MSG(hwnd, CB_GETEDITSEL, MD_ComboBox_OnGetEditSel);
2744 HANDLE_MSG(hwnd, CB_LIMITTEXT, MD_ComboBox_OnLimitText);
2745 HANDLE_MSG(hwnd, CB_SETEDITSEL, MD_ComboBox_OnSetEditSel);
2746 HANDLE_MSG(hwnd, CB_ADDSTRING, MD_ComboBox_OnAddString);
2747 HANDLE_MSG(hwnd, CB_DELETESTRING, MD_ComboBox_OnDeleteString);
2748 HANDLE_MSG(hwnd, CB_DIR, MD_ComboBox_OnDir);
2749 HANDLE_MSG(hwnd, CB_GETCOUNT, MD_ComboBox_OnGetCount);
2750 HANDLE_MSG(hwnd, CB_GETCURSEL, MD_ComboBox_GetCurSel);
2751 HANDLE_MSG(hwnd, CB_GETLBTEXT, MD_ComboBox_GetLBText);
2752 HANDLE_MSG(hwnd, CB_GETLBTEXTLEN, MD_ComboBox_OnGetLBTextLen);
2753 HANDLE_MSG(hwnd, CB_INSERTSTRING, MD_ComboBox_OnInsertString);
2754 HANDLE_MSG(hwnd, CB_RESETCONTENT, MD_ComboBox_OnResetContent);
2755 HANDLE_MSG(hwnd, CB_FINDSTRING, MD_ComboBox_OnFindString);
2756 HANDLE_MSG(hwnd, CB_SELECTSTRING, MD_ComboBox_OnSelectString);
2757 HANDLE_MSG(hwnd, CB_SETCURSEL, MD_ComboBox_OnSetCurSel);
2758 HANDLE_MSG(hwnd, CB_SHOWDROPDOWN, MD_ComboBox_OnShowDropDown);
2759 HANDLE_MSG(hwnd, CB_GETITEMDATA, MD_ComboBox_OnGetItemData);
2760 HANDLE_MSG(hwnd, CB_SETITEMDATA, MD_ComboBox_OnSetItemData);
2761 HANDLE_MSG(hwnd, CB_GETDROPPEDCONTROLRECT, MD_ComboBox_OnGetDroppedControlRect);
2762 HANDLE_MSG(hwnd, CB_SETITEMHEIGHT, MD_ComboBox_OnSetItemHeight);
2763 HANDLE_MSG(hwnd, CB_GETITEMHEIGHT, MD_ComboBox_OnGetItemHeight);
2764 HANDLE_MSG(hwnd, CB_SETEXTENDEDUI, MD_ComboBox_OnSetExtendedUI);
2765 HANDLE_MSG(hwnd, CB_GETEXTENDEDUI, MD_ComboBox_OnGetExtendedUI);
2766 HANDLE_MSG(hwnd, CB_GETDROPPEDSTATE, MD_ComboBox_OnGetDroppedState);
2767 HANDLE_MSG(hwnd, CB_FINDSTRINGEXACT, MD_ComboBox_OnFindStringExact);
2768 HANDLE_MSG(hwnd, CB_SETLOCALE, MD_ComboBox_OnSetLocale);
2769 HANDLE_MSG(hwnd, CB_GETLOCALE, MD_ComboBox_OnGetLocale);
2770 HANDLE_MSG(hwnd, CB_GETTOPINDEX, MD_ComboBox_OnGetTopIndex);
2771 HANDLE_MSG(hwnd, CB_SETTOPINDEX, MD_ComboBox_OnSetTopIndex);
2772 HANDLE_MSG(hwnd, CB_GETHORIZONTALEXTENT, MD_ComboBox_OnGetHorizontalExtent);
2773 HANDLE_MSG(hwnd, CB_SETHORIZONTALEXTENT, MD_ComboBox_OnSetHorizontalExtent);
2774 HANDLE_MSG(hwnd, CB_GETDROPPEDWIDTH, MD_ComboBox_OnGetDroppedWidth);
2775 HANDLE_MSG(hwnd, CB_SETDROPPEDWIDTH, MD_ComboBox_OnSetDroppedWidth);
2776 HANDLE_MSG(hwnd, CB_INITSTORAGE, MD_ComboBox_OnInitStorage);
2777 }
2778 }
2779 else if (lstrcmpi(szClass, TEXT("SCROLLBAR")) == 0)
2780 {
2781 switch (uMsg)
2782 {
2783 HANDLE_MSG(hwnd, SBM_SETPOS, MD_ScrollBar_OnSetPos);
2784 HANDLE_MSG(hwnd, SBM_GETPOS, MD_ScrollBar_OnGetPos);
2785 HANDLE_MSG(hwnd, SBM_SETRANGE, MD_ScrollBar_OnSetRange);
2786 HANDLE_MSG(hwnd, SBM_SETRANGEREDRAW, MD_ScrollBar_OnSetRangeRedraw);
2787 HANDLE_MSG(hwnd, SBM_GETRANGE, MD_ScrollBar_OnGetRange);
2788 HANDLE_MSG(hwnd, SBM_ENABLE_ARROWS, MD_ScrollBar_OnEnableArrows);
2789 HANDLE_MSG(hwnd, SBM_SETSCROLLINFO, MD_ScrollBar_OnSetScrollInfo);
2790 HANDLE_MSG(hwnd, SBM_GETSCROLLINFO, MD_ScrollBar_OnGetScrollInfo);
2791 HANDLE_MSG(hwnd, SBM_GETSCROLLBARINFO, MD_ScrollBar_OnGetScrollBarInfo);
2792 }
2793 }
2794 switch (uMsg)
2795 {
2796 HANDLE_MSG(hwnd, WM_NULL, MD_OnNull);
2797 HANDLE_MSG(hwnd, WM_CREATE, MD_OnCreate);
2798 HANDLE_MSG(hwnd, WM_DESTROY, MD_OnDestroy);
2799 HANDLE_MSG(hwnd, WM_MOVE, MD_OnMove);
2800 HANDLE_MSG(hwnd, WM_SIZE, MD_OnSize);
2801 HANDLE_MSG(hwnd, WM_ACTIVATE, MD_OnActivate);
2802 HANDLE_MSG(hwnd, WM_SETFOCUS, MD_OnSetFocus);
2803 HANDLE_MSG(hwnd, WM_KILLFOCUS, MD_OnKillFocus);
2804 HANDLE_MSG(hwnd, WM_ENABLE, MD_OnEnable);
2805 HANDLE_MSG(hwnd, WM_SETREDRAW, MD_OnSetRedraw);
2806 HANDLE_MSG(hwnd, WM_SETTEXT, MD_OnSetText);
2807 HANDLE_MSG(hwnd, WM_GETTEXT, MD_OnGetText);
2808 HANDLE_MSG(hwnd, WM_GETTEXTLENGTH, MD_OnGetTextLength);
2809 HANDLE_MSG(hwnd, WM_PAINT, MD_OnPaint);
2810 HANDLE_MSG(hwnd, WM_CLOSE, MD_OnClose);
2811 #ifndef _WIN32_WCE
2812 HANDLE_MSG(hwnd, WM_QUERYENDSESSION, MD_OnQueryEndSession);
2813 HANDLE_MSG(hwnd, WM_QUERYOPEN, MD_OnQueryOpen);
2814 HANDLE_MSG(hwnd, WM_ENDSESSION, MD_OnEndSession);
2815 #endif
2816 HANDLE_MSG(hwnd, WM_QUIT, MD_OnQuit);
2817 HANDLE_MSG(hwnd, WM_ERASEBKGND, MD_OnEraseBkgnd);
2818 HANDLE_MSG(hwnd, WM_SYSCOLORCHANGE, MD_OnSysColorChange);
2819 HANDLE_MSG(hwnd, WM_SHOWWINDOW, MD_OnShowWindow);
2820 HANDLE_MSG(hwnd, WM_WININICHANGE, MD_OnWinIniChange);
2821 /*HANDLE_MSG(hwnd, WM_SETTINGCHANGE, MD_OnSettingChange);*/
2822 /* WM_SETTINGCHANGE duplicates WM_WININICHANGE */
2823 HANDLE_MSG(hwnd, WM_DEVMODECHANGE, MD_OnDevModeChange);
2824 HANDLE_MSG(hwnd, WM_ACTIVATEAPP, MD_OnActivateApp);
2825 HANDLE_MSG(hwnd, WM_FONTCHANGE, MD_OnFontChange);
2826 HANDLE_MSG(hwnd, WM_TIMECHANGE, MD_OnTimeChange);
2827 HANDLE_MSG(hwnd, WM_CANCELMODE, MD_OnCancelMode);
2828 HANDLE_MSG(hwnd, WM_SETCURSOR, MD_OnSetCursor);
2829 HANDLE_MSG(hwnd, WM_MOUSEACTIVATE, MD_OnMouseActivate);
2830 HANDLE_MSG(hwnd, WM_CHILDACTIVATE, MD_OnChildActivate);
2831 HANDLE_MSG(hwnd, WM_QUEUESYNC, MD_OnQueueSync);
2832 HANDLE_MSG(hwnd, WM_GETMINMAXINFO, MD_OnGetMinMaxInfo);
2833 HANDLE_MSG(hwnd, WM_PAINTICON, MD_OnPaintIcon);
2834 HANDLE_MSG(hwnd, WM_ICONERASEBKGND, MD_OnIconEraseBkgnd);
2835 HANDLE_MSG(hwnd, WM_NEXTDLGCTL, MD_OnNextDlgCtl);
2836 HANDLE_MSG(hwnd, WM_SPOOLERSTATUS, MD_OnSpoolerStatus);
2837 HANDLE_MSG(hwnd, WM_DRAWITEM, MD_OnDrawItem);
2838 HANDLE_MSG(hwnd, WM_MEASUREITEM, MD_OnMeasureItem);
2839 HANDLE_MSG(hwnd, WM_DELETEITEM, MD_OnDeleteItem);
2840 HANDLE_MSG(hwnd, WM_VKEYTOITEM, MD_OnVkeyToItem);
2841 HANDLE_MSG(hwnd, WM_CHARTOITEM, MD_OnCharToItem);
2842 HANDLE_MSG(hwnd, WM_SETFONT, MD_OnSetFont);
2843 HANDLE_MSG(hwnd, WM_GETFONT, MD_OnGetFont);
2844 HANDLE_MSG(hwnd, WM_SETHOTKEY, MD_OnSetHotKey);
2845 HANDLE_MSG(hwnd, WM_GETHOTKEY, MD_OnGetHotKey);
2846 HANDLE_MSG(hwnd, WM_QUERYDRAGICON, MD_OnQueryDragIcon);
2847 HANDLE_MSG(hwnd, WM_COMPAREITEM, MD_OnCompareItem);
2848 #if WINVER >= 0x0500
2849 # ifndef _WIN32_WCE
2850 HANDLE_MSG(hwnd, WM_GETOBJECT, MD_OnGetObject);
2851 # endif
2852 #endif
2853 HANDLE_MSG(hwnd, WM_COMPACTING, MD_OnCompacting);
2854 HANDLE_MSG(hwnd, WM_COMMNOTIFY, MD_OnCommNotify);
2855 HANDLE_MSG(hwnd, WM_WINDOWPOSCHANGING, MD_OnWindowPosChanging);
2856 HANDLE_MSG(hwnd, WM_WINDOWPOSCHANGED, MD_OnWindowPosChanged);
2857 HANDLE_MSG(hwnd, WM_POWER, MD_OnPower);
2858 HANDLE_MSG(hwnd, WM_COPYDATA, MD_OnCopyData);
2859 HANDLE_MSG(hwnd, WM_CANCELJOURNAL, MD_OnCancelJournal);
2860 #if WINVER >= 0x0400
2861 HANDLE_MSG(hwnd, WM_NOTIFY, MD_OnNotify);
2862 HANDLE_MSG(hwnd, WM_INPUTLANGCHANGEREQUEST, MD_OnInputLangChangeRequest);
2863 HANDLE_MSG(hwnd, WM_INPUTLANGCHANGE, MD_OnInputLangChange);
2864 HANDLE_MSG(hwnd, WM_TCARD, MD_OnTCard);
2865 HANDLE_MSG(hwnd, WM_HELP, MD_OnHelp);
2866 HANDLE_MSG(hwnd, WM_USERCHANGED, MD_OnUserChanged);
2867 HANDLE_MSG(hwnd, WM_NOTIFYFORMAT, MD_OnNotifyFormat);
2868 HANDLE_MSG(hwnd, WM_CONTEXTMENU, MD_OnContextMenu);
2869 HANDLE_MSG(hwnd, WM_STYLECHANGING, MD_OnStyleChanging);
2870 HANDLE_MSG(hwnd, WM_STYLECHANGED, MD_OnStyleChanged);
2871 HANDLE_MSG(hwnd, WM_DISPLAYCHANGE, MD_OnDisplayChange);
2872 HANDLE_MSG(hwnd, WM_GETICON, MD_OnGetIcon);
2873 HANDLE_MSG(hwnd, WM_SETICON, MD_OnSetIcon);
2874 #endif
2875 HANDLE_MSG(hwnd, WM_NCCREATE, MD_OnNCCreate);
2876 HANDLE_MSG(hwnd, WM_NCDESTROY, MD_OnNCDestroy);
2877 HANDLE_MSG(hwnd, WM_NCCALCSIZE, MD_OnNCCalcSize);
2878 HANDLE_MSG(hwnd, WM_NCHITTEST, MD_OnNCHitTest);
2879 HANDLE_MSG(hwnd, WM_NCPAINT, MD_OnNCPaint);
2880 HANDLE_MSG(hwnd, WM_NCACTIVATE, MD_OnNCActivate);
2881 HANDLE_MSG(hwnd, WM_GETDLGCODE, MD_OnGetDlgCode);
2882 #ifndef _WIN32_WCE
2883 HANDLE_MSG(hwnd, WM_SYNCPAINT, MD_OnSyncPaint);
2884 #endif
2885 HANDLE_MSG(hwnd, WM_NCMOUSEMOVE, MD_OnNCMouseMove);
2886 HANDLE_MSG(hwnd, WM_NCLBUTTONDOWN, MD_OnNCLButtonDown);
2887 HANDLE_MSG(hwnd, WM_NCLBUTTONUP, MD_OnNCLButtonUp);
2888 HANDLE_MSG(hwnd, WM_NCLBUTTONDBLCLK, MD_OnNCLButtonDown);
2889 HANDLE_MSG(hwnd, WM_NCRBUTTONDOWN, MD_OnNCRButtonDown);
2890 HANDLE_MSG(hwnd, WM_NCRBUTTONUP, MD_OnNCRButtonUp);
2891 HANDLE_MSG(hwnd, WM_NCRBUTTONDBLCLK, MD_OnNCRButtonDown);
2892 HANDLE_MSG(hwnd, WM_NCMBUTTONDOWN, MD_OnNCMButtonDown);
2893 HANDLE_MSG(hwnd, WM_NCMBUTTONUP, MD_OnNCMButtonUp);
2894 HANDLE_MSG(hwnd, WM_NCMBUTTONDBLCLK, MD_OnNCMButtonDown);
2895 #if _WIN32_WINNT >= 0x0500
2896 HANDLE_MSG(hwnd, WM_NCXBUTTONDOWN, MD_OnNCXButtonDown);
2897 HANDLE_MSG(hwnd, WM_NCXBUTTONUP, MD_OnNCXButtonUp);
2898 HANDLE_MSG(hwnd, WM_NCXBUTTONDBLCLK, MD_OnNCXButtonDown);
2899 #endif
2900 HANDLE_MSG(hwnd, WM_KEYDOWN, MD_OnKey);
2901 HANDLE_MSG(hwnd, WM_KEYUP, MD_OnKey);
2902 HANDLE_MSG(hwnd, WM_CHAR, MD_OnChar);
2903 HANDLE_MSG(hwnd, WM_DEADCHAR, MD_OnDeadChar);
2904 HANDLE_MSG(hwnd, WM_SYSKEYDOWN, MD_OnSysKey);
2905 HANDLE_MSG(hwnd, WM_SYSKEYUP, MD_OnSysKey);
2906 HANDLE_MSG(hwnd, WM_SYSCHAR, MD_OnSysChar);
2907 HANDLE_MSG(hwnd, WM_SYSDEADCHAR, MD_OnSysDeadChar);
2908 #if WINVER >= 0x0400
2909 HANDLE_MSG(hwnd, WM_IME_STARTCOMPOSITION, MD_OnImeStartComposition);
2910 HANDLE_MSG(hwnd, WM_IME_ENDCOMPOSITION, MD_OnImeEndComposition);
2911 HANDLE_MSG(hwnd, WM_IME_COMPOSITION, MD_OnImeComposition);
2912 #endif
2913 HANDLE_MSG(hwnd, WM_INITDIALOG, MD_OnInitDialog);
2914 HANDLE_MSG(hwnd, WM_COMMAND, MD_OnCommand);
2915 HANDLE_MSG(hwnd, WM_SYSCOMMAND, MD_OnSysCommand);
2916 HANDLE_MSG(hwnd, WM_TIMER, MD_OnTimer);
2917 HANDLE_MSG(hwnd, WM_HSCROLL, MD_OnHScroll);
2918 HANDLE_MSG(hwnd, WM_VSCROLL, MD_OnVScroll);
2919 HANDLE_MSG(hwnd, WM_INITMENU, MD_OnInitMenu);
2920 HANDLE_MSG(hwnd, WM_INITMENUPOPUP, MD_OnInitMenuPopup);
2921 HANDLE_MSG(hwnd, WM_MENUSELECT, MD_OnMenuSelect);
2922 HANDLE_MSG(hwnd, WM_MENUCHAR, MD_OnMenuChar);
2923 HANDLE_MSG(hwnd, WM_ENTERIDLE, MD_OnEnterIdle);
2924 #if WINVER >= 0x0500
2925 # ifndef _WIN32_WCE
2926 HANDLE_MSG(hwnd, WM_MENURBUTTONUP, MD_OnMenuRButtonUp);
2927 HANDLE_MSG(hwnd, WM_MENUDRAG, MD_OnMenuDrag);
2928 HANDLE_MSG(hwnd, WM_MENUGETOBJECT, MD_OnMenuGetObject);
2929 HANDLE_MSG(hwnd, WM_UNINITMENUPOPUP, MD_OnUninitMenuPopup);
2930 HANDLE_MSG(hwnd, WM_MENUCOMMAND, MD_OnMenuCommand);
2931 # ifndef _WIN32_WCE
2932 # if _WIN32_WINNT >= 0x0500
2933 HANDLE_MSG(hwnd, WM_CHANGEUISTATE, MD_OnChangeUIState);
2934 HANDLE_MSG(hwnd, WM_UPDATEUISTATE, MD_OnUpdateUIState);
2935 HANDLE_MSG(hwnd, WM_QUERYUISTATE, MD_OnQueryUIState);
2936 # endif
2937 # endif
2938 # endif
2939 #endif
2940 HANDLE_MSG(hwnd, WM_CTLCOLORMSGBOX, MD_OnCtlColor);
2941 HANDLE_MSG(hwnd, WM_CTLCOLOREDIT, MD_OnCtlColor);
2942 HANDLE_MSG(hwnd, WM_CTLCOLORLISTBOX, MD_OnCtlColor);
2943 HANDLE_MSG(hwnd, WM_CTLCOLORBTN, MD_OnCtlColor);
2944 HANDLE_MSG(hwnd, WM_CTLCOLORDLG, MD_OnCtlColor);
2945 HANDLE_MSG(hwnd, WM_CTLCOLORSCROLLBAR, MD_OnCtlColor);
2946 HANDLE_MSG(hwnd, WM_CTLCOLORSTATIC, MD_OnCtlColor);
2947 HANDLE_MSG(hwnd, WM_MOUSEMOVE, MD_OnMouseMove);
2948 HANDLE_MSG(hwnd, WM_LBUTTONDOWN, MD_OnLButtonDown);
2949 HANDLE_MSG(hwnd, WM_LBUTTONUP, MD_OnLButtonUp);
2950 HANDLE_MSG(hwnd, WM_LBUTTONDBLCLK, MD_OnLButtonDown);
2951 HANDLE_MSG(hwnd, WM_RBUTTONDOWN, MD_OnRButtonDown);
2952 HANDLE_MSG(hwnd, WM_RBUTTONUP, MD_OnRButtonUp);
2953 HANDLE_MSG(hwnd, WM_RBUTTONDBLCLK, MD_OnRButtonDown);
2954 HANDLE_MSG(hwnd, WM_MBUTTONDOWN, MD_OnMButtonDown);
2955 HANDLE_MSG(hwnd, WM_MBUTTONUP, MD_OnMButtonUp);
2956 HANDLE_MSG(hwnd, WM_MBUTTONDBLCLK, MD_OnMButtonDown);
2957 #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
2958 HANDLE_MSG(hwnd, WM_MOUSEWHEEL, MD_OnMouseWheel);
2959 #endif
2960 #if _WIN32_WINNT >= 0x0500
2961 HANDLE_MSG(hwnd, WM_XBUTTONDOWN, MD_OnXButtonDown);
2962 HANDLE_MSG(hwnd, WM_XBUTTONUP, MD_OnXButtonUp);
2963 HANDLE_MSG(hwnd, WM_XBUTTONDBLCLK, MD_OnXButtonDown);
2964 #endif
2965 HANDLE_MSG(hwnd, WM_PARENTNOTIFY, MD_OnParentNotify);
2966 HANDLE_MSG(hwnd, WM_ENTERMENULOOP, MD_OnEnterMenuLoop);
2967 HANDLE_MSG(hwnd, WM_EXITMENULOOP, MD_OnExitMenuLoop);
2968 #if WINVER >= 0x0400
2969 HANDLE_MSG(hwnd, WM_NEXTMENU, MD_OnNextMenu);
2970 HANDLE_MSG(hwnd, WM_SIZING, MD_OnSizing);
2971 HANDLE_MSG(hwnd, WM_CAPTURECHANGED, MD_OnCaptureChanged);
2972 HANDLE_MSG(hwnd, WM_MOVING, MD_OnMoving);
2973 HANDLE_MSG(hwnd, WM_POWERBROADCAST, MD_OnPowerBroadcast);
2974 HANDLE_MSG(hwnd, WM_DEVICECHANGE, MD_OnDeviceChange);
2975 #endif
2976 HANDLE_MSG(hwnd, WM_MDICREATE, MD_MDICreate);
2977 HANDLE_MSG(hwnd, WM_MDIDESTROY, MD_MDIDestroy);
2978 HANDLE_MSG(hwnd, WM_MDIACTIVATE, MD_MDIActivate);
2979 HANDLE_MSG(hwnd, WM_MDIRESTORE, MD_MDIRestore);
2980 HANDLE_MSG(hwnd, WM_MDINEXT, MD_MDINext);
2981 HANDLE_MSG(hwnd, WM_MDIMAXIMIZE, MD_MDIMaximize);
2982 HANDLE_MSG(hwnd, WM_MDITILE, MD_MDITile);
2983 HANDLE_MSG(hwnd, WM_MDICASCADE, MD_MDICascade);
2984 HANDLE_MSG(hwnd, WM_MDIICONARRANGE, MD_MDIIconArrange);
2985 HANDLE_MSG(hwnd, WM_MDIGETACTIVE, MD_MDIGetActive);
2986 #ifdef _UNDOCUSER_H
2987 HANDLE_MSG(hwnd, WM_DROPOBJECT, MD_OnDropObject);
2988 HANDLE_MSG(hwnd, WM_QUERYDROPOBJECT, MD_OnQueryDropObject);
2989 HANDLE_MSG(hwnd, WM_BEGINDRAG, MD_OnBeginDrag);
2990 HANDLE_MSG(hwnd, WM_DRAGLOOP, MD_OnDragLoop);
2991 HANDLE_MSG(hwnd, WM_DRAGSELECT, MD_OnDragSelect);
2992 HANDLE_MSG(hwnd, WM_DRAGMOVE, MD_OnDragMove);
2993 #endif
2994 HANDLE_MSG(hwnd, WM_MDISETMENU, MD_MDISetMenu);
2995 HANDLE_MSG(hwnd, WM_ENTERSIZEMOVE, MD_OnEnterSizeMove);
2996 HANDLE_MSG(hwnd, WM_EXITSIZEMOVE, MD_OnExitSizeMove);
2997 HANDLE_MSG(hwnd, WM_DROPFILES, MD_OnDropFiles);
2998 HANDLE_MSG(hwnd, WM_MDIREFRESHMENU, MD_MDIRefreshMenu);
2999 #if WINVER >= 0x0400
3000 HANDLE_MSG(hwnd, WM_IME_SETCONTEXT, MD_OnImeSetContext);
3001 HANDLE_MSG(hwnd, WM_IME_NOTIFY, MD_OnImeNotify);
3002 HANDLE_MSG(hwnd, WM_IME_CONTROL, MD_OnImeControl);
3003 HANDLE_MSG(hwnd, WM_IME_COMPOSITIONFULL, MD_OnImeCompositionFull);
3004 HANDLE_MSG(hwnd, WM_IME_SELECT, MD_OnImeSelect);
3005 HANDLE_MSG(hwnd, WM_IME_CHAR, MD_OnImeChar);
3006 #endif
3007 #if WINVER >= 0x0500
3008 HANDLE_MSG(hwnd, WM_IME_REQUEST, MD_OnImeRequest);
3009 #endif
3010 #if WINVER >= 0x0400
3011 HANDLE_MSG(hwnd, WM_IME_KEYDOWN, MD_OnImeKey);
3012 HANDLE_MSG(hwnd, WM_IME_KEYUP, MD_OnImeKey);
3013 #endif
3014 #if (_WIN32_WINNT >= 0x0400) || (WINVER >= 0x0500)
3015 HANDLE_MSG(hwnd, WM_MOUSEHOVER, MD_OnMouseHover);
3016 HANDLE_MSG(hwnd, WM_MOUSELEAVE, MD_OnMouseLeave);
3017 #endif
3018 #if WINVER >= 0x0500
3019 HANDLE_MSG(hwnd, WM_NCMOUSEHOVER, MD_OnNCMouseHover);
3020 HANDLE_MSG(hwnd, WM_NCMOUSELEAVE, MD_OnNCMouseLeave);
3021 #endif
3022 HANDLE_MSG(hwnd, WM_CUT, MD_OnCut);
3023 HANDLE_MSG(hwnd, WM_COPY, MD_OnCopy);