25#ifndef MSGDUMP_TPRINTF
26 #error Please define MSGDUMP_TPRINTF macro before #include "msgdump.h".
30 #define MSGDUMP_API WINAPI
34 #define MSGDUMP_PREFIX TEXT("")
47#define MSGDUMP_MAX_RECT_TEXT 64
68 if (0xC000 <= uMsg && uMsg <= 0xFFFF &&
139 MSGDUMP_TPRINTF(
TEXT(
"%sWM_ACTIVATE(hwnd:%p, state:%u, hwndActDeact:%p, fMinimized:%d)\n"),
322 MSGDUMP_TPRINTF(
TEXT(
"%sWM_MOUSEACTIVATE(hwnd:%p, hwndTopLevel:%p, codeHitTest:%u, msg:%u)\n"),
486 TCHAR szClass[24], sz[2];
487 static TCHAR s_szText[64];
499#if (_WIN32_IE >= 0x0300)
503#if (_WIN32_IE >= 0x0400)
510#if (_WIN32_IE >= 0x0401)
513#if (_WIN32_IE >= 0x0500)
547#if _RICHEDIT_VER >= 0x0800
548 case EN_CLIPFORMAT:
return TEXT(
"EN_CLIPFORMAT");
549 case EN_STARTCOMPOSITION:
return TEXT(
"EN_STARTCOMPOSITION");
550 case EN_ENDCOMPOSITION:
return TEXT(
"EN_ENDCOMPOSITION");
586#if NTDDI_VERSION >= 0x06000000
587 case LVN_COLUMNDROPDOWN:
return TEXT(
"LVN_COLUMNDROPDOWN");
588 case LVN_COLUMNOVERFLOWCLICK:
return TEXT(
"LVN_COLUMNOVERFLOWCLICK");
592#if NTDDI_VERSION >= 0x06000000
593 case LVN_LINKCLICK:
return TEXT(
"LVN_LINKCLICK");
594 case LVN_GETEMPTYMARKUP:
return TEXT(
"LVN_GETEMPTYMARKUP");
628#ifdef TVN_ITEMCHANGINGA
629 case TVN_ITEMCHANGINGA:
return TEXT(
"TVN_ITEMCHANGINGA");
630 case TVN_ITEMCHANGINGW:
return TEXT(
"TVN_ITEMCHANGINGW");
631 case TVN_ITEMCHANGEDA:
return TEXT(
"TVN_ITEMCHANGEDA");
632 case TVN_ITEMCHANGEDW:
return TEXT(
"TVN_ITEMCHANGEDW");
633 case TVN_ASYNCDRAW:
return TEXT(
"TVN_ASYNCDRAW");
645 MSGDUMP_TPRINTF(
TEXT(
"%sWM_NOTIFY(hwnd:%p, idFrom:%d, pnmhdr:%p, hwndFrom:%p, pnmhdr->idFrom:%d, code:%s)\n"),
662 MSGDUMP_TPRINTF(
TEXT(
"%sWM_DISPLAYCHANGE(hwnd:%p, bitsPerPixel:%u, cxScreen:%u, cyScreen:%u)\n"),
707 MSGDUMP_TPRINTF(
TEXT(
"%sWM_NCACTIVATE(hwnd:%p, fActive:%d, hwndActDeact:%p, fMinimized:%d)\n"),
911 MSGDUMP_TPRINTF(
TEXT(
"%sWM_MENUSELECT(hwnd:%p, hmenu:%p, item:%d, hmenuPopup:%p, flags:%u)\n"),
1014 MSGDUMP_TPRINTF(
TEXT(
"%sWM_MOUSEWHEEL(hwnd:%p, xPos:%d, yPos:%d, zDelta:%d, fwKeys:%u)\n"),
1051 MSGDUMP_TPRINTF(
TEXT(
"%sWM_MDIACTIVATE(hwnd:%p, fActive:%d, hwndActivate:%p, hwndDeactivate:%p)\n"),
1052 MSGDUMP_PREFIX, (
void *)
hwnd, fActive, (
void *)hwndActivate, (
void *)hwndDeactivate);
1161 MSGDUMP_TPRINTF(
TEXT(
"%sWM_MDISETMENU(hwnd:%p, fRefresh:%d, hmenuFrame:%p, hmenuWindow:%p)\n"),
1240 MSGDUMP_TPRINTF(
TEXT(
"%sWM_PAINTCLIPBOARD(hwnd:%p, hwndCBViewer:%p, lpPaintStruct:%p)\n"),
1247 MSGDUMP_TPRINTF(
TEXT(
"%sWM_VSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1277 MSGDUMP_TPRINTF(
TEXT(
"%sWM_HSCROLLCLIPBOARD(hwnd:%p, hwndCBViewer:%p, code:%u, pos:%d)\n"),
1434 MSGDUMP_TPRINTF(
TEXT(
"%sWM_NCXBUTTONDBLCLK(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1439 MSGDUMP_TPRINTF(
TEXT(
"%sWM_NCXBUTTONDOWN(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1447 MSGDUMP_TPRINTF(
TEXT(
"%sWM_NCXBUTTONUP(hwnd:%p, nHitTest:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1536 MSGDUMP_TPRINTF(
TEXT(
"%sWM_XBUTTONDBLCLK(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1541 MSGDUMP_TPRINTF(
TEXT(
"%sWM_XBUTTONDOWN(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1549 MSGDUMP_TPRINTF(
TEXT(
"%sWM_XBUTTONUP(hwnd:%p, fwKeys:%u, fwButton:%u, xPos:%d, yPos:%d)\n"),
1740 MSGDUMP_TPRINTF(
TEXT(
"%sWM_APPCOMMAND(hwnd:%p, hwndTarget:%p, cmd:%u, nDevice:%u, nKey:%u)\n"),
3212 MSGDUMP_TPRINTF(
TEXT(
"%sLVM_SETEXTENDEDLISTVIEWSTYLE(hwnd:%p, dwMask:0x%08lX, dw:0x%08lX)\n"),
3292 MSGDUMP_TPRINTF(
TEXT(
"%sLVM_APPROXIMATEVIEWRECT(hwnd:%p, iWidth:%d, iHeight:%d, iCount:%d)\n"),
3433#if NTDDI_VERSION >= 0x06000000
3437 MSGDUMP_TPRINTF(
TEXT(
"%sLVM_GETGROUPSTATE(hwnd:%p, dwGroupId:0x%08lX, dwMask:0x%08lX)\n"),
3443 MD_ListView_OnGetFocusedGroup(
HWND hwnd)