MessageTypeNames 部分定義根據winuser.h和網上搜集而來。
static const char * const MessageTypeNames[WM_USER + 1] =
{
"WM_NULL",//0x0000
"WM_CREATE",//0x0001
"WM_DESTROY",//0x0002
"WM_MOVE",//0x0003
"WM_SIZEWAIT",//0x0004
"WM_SIZE",//0x0005
"WM_ACTIVATE",//0x0006
"WM_SETFOCUS",//0x0007
"WM_KILLFOCUS",//0x0008
"WM_SETVISIBLE",//0x0009
"WM_ENABLE",//0x000a
"WM_SETREDRAW",//0x000b
"WM_SETTEXT",//0x000c
"WM_GETTEXT",//0x000d
"WM_GETTEXTLENGTH",//0x000e
"WM_PAINT",//0x000f
"WM_CLOSE", /* 0x10 */
"WM_QUERYENDSESSION",//0x0011
"WM_QUIT",//0x0012
"WM_QUERYOPEN",//0x0013
"WM_ERASEBKGND",//0x0014
"WM_SYSCOLORCHANGE",//0x0015
"WM_ENDSESSION",//0x0016
"WM_SYSTEMERROR",//0x0017
"WM_SHOWWINDOW",//0x0018
"WM_CTLCOLOR",//0x0019
"WM_WININICHANGE",//0x001a
"WM_DEVMODECHANGE",//0x001b
"WM_ACTIVATEAPP",//0x001c
"WM_FONTCHANGE",//0x001d
"WM_TIMECHANGE",//0x001e
"WM_CANCELMODE",//0x001f
"WM_SETCURSOR", /* 0x20 */
"WM_MOUSEACTIVATE",//0x0021
"WM_CHILDACTIVATE",//0x0022
"WM_QUEUESYNC",//0x0023
"WM_GETMINMAXINFO",//0x0024
"WM_LOGOFF",//0x0025
"WM_PAINTICON",//0x0026
"WM_ICONERASEBKGND",//0x0027
"WM_NEXTDLGCTL",//0x0028
"WM_ALTTABACTIVE",//0x0029
"WM_SPOOLERSTATUS",//0x002a
"WM_DRAWITEM",//0x002b
"WM_MEASUREITEM",//0x002c
"WM_DELETEITEM",//0x002d
"WM_VKEYTOITEM",//0x002e
"WM_CHARTOITEM",//0x002f
"WM_SETFONT", /* 0x30 */
"WM_GETFONT",//0x0031
"WM_SETHOTKEY",//0x0032
"WM_GETHOTKEY",//0x0033
"WM_FILESYSCHANGE",//0x0034
"WM_ISACTIVEICON",//0x0035
"WM_QUERYPARKICON",//0x0036
"WM_QUERYDRAGICON",//0x0037
"WM_WINHELP",//0x0038
"WM_COMPAREITEM",//0x0039
"WM_FULLSCREEN",//0x003a
"WM_CLIENTSHUTDOWN",//0x003b
"WM_DDEMLEVENT",//0x003c
"WM_GETOBJECT",//0x003d
NULL,//0x003e
"WM_CALCSCROLL",//0x003f
"WM_TESTING", /* 0x40 */
"WM_COMPACTING",//0x0041
"WM_OTHERWINDOWCREATED",//0x0042
"WM_OTHERWINDOWDESTROYED",//0x0043
"WM_COMMNOTIFY",//0x0044
"WM_MEDIASTATUSCHANGE",//0x0045
"WM_WINDOWPOSCHANGING", /* 0x0046 */
"WM_WINDOWPOSCHANGED", /* 0x0047 */
"WM_POWER",//0x0048
"WM_COPYGLOBALDATA",//0x0049
"WM_COPYDATA",//0x004a
"WM_CANCELJOURNAL",//0x004b
"WM_LOGONNOTIFY",//0x004c
"WM_KEYF1",//0x004d
"WM_NOTIFY",//0x004e
"WM_ACCESS_WINDOW",//0x004f
"WM_INPUTLANGCHANGEREQUEST",/* 0x0050 */
"WM_INPUTLANGCHANGE",//0x0051
"WM_TCARD",//0x0052
"WM_HELP",//0x0053
"WM_USERCHANGED",//0x0054
"WM_NOTIFYFORMAT",//0x0055
NULL,//0x0056
NULL,//0x0057
NULL,//0x0058
NULL,//0x0059
NULL,//0x005a
NULL,//0x005b
NULL,//0x005c
NULL,//0x005d
NULL,//0x005e
NULL,//0x005f
NULL,/* 0x0060 */
NULL,//0x0061
NULL,//0x0062
NULL,//0x0063
NULL,//0x0064
NULL,//0x0065
NULL,//0x0066
NULL,//0x0067
NULL,//0x0068
NULL,//0x0069
NULL,//0x006a
NULL,//0x006b
NULL,//0x006c
NULL,//0x006d
NULL,//0x006e
NULL,//0x006f
"WM_FINALDESTROY",/* 0x0070 */
"WM_MEASUREITEM_CLIENTDATA",//0x0071
"WM_TASKACTIVATED",//0x0072
"WM_TASKDEACTIVATED",//0x0073
"WM_TASKCREATED",//0x0074
"WM_TASKDESTROYED",//0x0075
"WM_TASKUICHANGED",//0x0076
"WM_TASKVISIBLE",//0x0077
"WM_TASKNOTVISIBLE",//0x0078
"WM_SETCURSORINFO",//0x0079
NULL,//0x007a
"WM_CONTEXTMENU",//0x007b
"WM_STYLECHANGING",//0x007c
"WM_STYLECHANGED",//0x007d
"WM_DISPLAYCHANGE",//0x007e
"WM_GETICON",//0x007f
"WM_SETICON", /* 0x0080 */
"WM_NCCREATE", /* 0x0081 */
"WM_NCDESTROY", /* 0x0082 */
"WM_NCCALCSIZE", /* 0x0083 */
"WM_NCHITTEST", /* 0x0084 */
"WM_NCPAINT", /* 0x0085 */
"WM_NCACTIVATE", /* 0x0086 */
"WM_GETDLGCODE", /* 0x0087 */
"WM_SYNCPAINT",//0x0088
"WM_SYNCTASK",//0x0089
NULL,//0x008a
"WM_KLUDGEMINRECT",//0x008b
"WM_LPKDRAWSWITCHWND",//0x008c
NULL,//0x008d
NULL,//0x008e
NULL,//0x008f
NULL,/* 0x0090 */
NULL,//0x0091
NULL,//0x0092
NULL,//0x0093
NULL,//0x0094
NULL,//0x0095
NULL,//0x0096
NULL,//0x0097
NULL,//0x0098
NULL,//0x0099
NULL,//0x009a
NULL,//0x009b
NULL,//0x009c
NULL,//0x009d
NULL,//0x009e
NULL,//0x009f
"WM_NCMOUSEMOVE", /* 0x00A0 *//* 0x00A0 */
"WM_NCLBUTTONDOWN", /* 0x00A1 */
"WM_NCLBUTTONUP", /* 0x00A2 */
"WM_NCLBUTTONDBLCLK", /* 0x00A3 */
"WM_NCRBUTTONDOWN", /* 0x00A4 */
"WM_NCRBUTTONUP", /* 0x00A5 */
"WM_NCRBUTTONDBLCLK", /* 0x00A6 */
"WM_NCMBUTTONDOWN", /* 0x00A7 */
"WM_NCMBUTTONUP", /* 0x00A8 */
"WM_NCMBUTTONDBLCLK", /* 0x00A9 */
NULL,//0x00AA
"WM_NCXBUTTONDOWN",//0x00AB
"WM_NCXBUTTONUP",//0x00AC
"WM_NCXBUTTONDBLCLK",//0x00AD
"WM_NCUAHDRAWCAPTION", /* 0x00AE */
"WM_NCUAHDRAWFRAME", /* 0x00AF */
"EM_GETSEL32", /* 0x00b0 */ /* 0x00B0 - Win32
Edit controls */
"EM_SETSEL32", /* 0x00b1 */
"EM_GETRECT32", /* 0x00b2 */
"EM_SETRECT32", /* 0x00b3 */
"EM_SETRECTNP32", /* 0x00b4 */
"EM_SCROLL32", /* 0x00b5 */
"EM_LINESCROLL32", /* 0x00b6 */
"EM_SCROLLCARET32", /* 0x00b7 */
"EM_GETMODIFY32", /* 0x00b8 */
"EM_SETMODIFY32", /* 0x00b9 */
"EM_GETLINECOUNT32", /* 0x00ba */
"EM_LINEINDEX32", /* 0x00bb */
"EM_SETHANDLE32", /* 0x00bc */
"EM_GETHANDLE32", /* 0x00bd */
"EM_GETTHUMB32", /* 0x00be */
NULL, /* 0x00bf */
NULL, /* 0x00c0 */
"EM_LINELENGTH32", /* 0x00c1 */
"EM_REPLACESEL32", /* 0x00c2 */
"EM_SETFONT", /* 0x00c3 */
"EM_GETLINE32", /* 0x00c4 */
"EM_LIMITTEXT32", /* 0x00c5 */
"EM_CANUNDO32", /* 0x00c6 */
"EM_UNDO32", /* 0x00c7 */
"EM_FMTLINES32", /* 0x00c8 */
"EM_LINEFROMCHAR32", /* 0x00c9 */
"EM_SETWORDBREAK", /* 0x00ca */
"EM_SETTABSTOPS32", /* 0x00cb */
"EM_SETPASSWORDCHAR32", /* 0x00cc */
"EM_EMPTYUNDOBUFFER32", /* 0x00cd */
"EM_GETFIRSTVISIBLELINE32", /* 0x00ce */
"EM_SETREADONLY32", /* 0x00cf */
"EM_SETWORDBREAKPROC32", /* 0x00d0 */
"EM_GETWORDBREAKPROC32", /* 0x00d1 */
"EM_GETPASSWORDCHAR32", /* 0x00d2 */
"EM_SETMARGINS32", /* 0x00d3 */
"EM_GETMARGINS32", /* 0x00d4 */
"EM_GETLIMITTEXT32", /* 0x00d5 */
"EM_POSFROMCHAR32", /* 0x00d6 */
"EM_CHARFROMPOS32", /* 0x00d7 */
"EM_SETIMESTATUS",//0x00D8
"EM_GETIMESTATUS",//0x00D9
"EM_MSGMAX",//0x00DA
NULL,//0x00DB
NULL,//0x00DC
NULL,//0x00DD
NULL,//0x00DE
NULL,//0x00DF
"SBM_SETPOS32", /* 0x00e0 *//* 0x00E0 - Win32
Scrollbars */
"SBM_GETPOS32", /* 0x00e1 */
"SBM_SETRANGE32", /* 0x00e2 */
"SBM_GETRANGE32", /* 0x00e3 */
"SBM_ENABLE_ARROWS32", /* 0x00e4 */
NULL,//0x00e5
"SBM_SETRANGEREDRAW32", /* 0x00e6 */
NULL,//0x00e7
NULL,//0x00e8
"SBM_SETSCROLLINFO32", /* 0x00e9 */
"SBM_GETSCROLLINFO32", /* 0x00ea */
NULL,//0x00eb
NULL,//0x00ec
NULL,//0x00ed
NULL,//0x00ee
NULL,//0x00ef
"BM_GETCHECK32", /* 0x00f0 *//* 0x00F0 - Win32
Buttons */
"BM_SETCHECK32", /* 0x00f1 */
"BM_GETSTATE32", /* 0x00f2 */
"BM_SETSTATE32", /* 0x00f3 */
"BM_SETSTYLE32", /* 0x00f4 */
"BM_CLICK32", /* 0x00f5 */
"BM_GETIMAGE32", /* 0x00f6 */
"BM_SETIMAGE32", /* 0x00f7 */
NULL,//0x00f8
NULL,//0x00f9
NULL,//0x00fa
NULL,//0x00fb
NULL,//0x00fc
NULL,//0x00fd
NULL,//0x00fe
"WM_INPUT",//0x00ff
"WM_KEYDOWN", /* 0x0100 */
"WM_KEYUP", /* 0x0101 */
"WM_CHAR", /* 0x0102 */
"WM_DEADCHAR", /* 0x0103 */
"WM_SYSKEYDOWN", /* 0x0104 */
"WM_SYSKEYUP", /* 0x0105 */
"WM_SYSCHAR", /* 0x0106 */
"WM_SYSDEADCHAR", /* 0x0107 */
"WM_YOMICHAR", /* 0x0108 */
"WM_UNICHAR",//0x0109
"WM_CONVERTREQUEST",//0x010a
"WM_CONVERTRESULT",//0x010b
"WM_INTERIM",//0x010c
"WM_IME_STARTCOMPOSITION",//0x010d
"WM_IME_ENDCOMPOSITION",//0x010e
"WM_IME_COMPOSITION",//0x010f
"WM_INITDIALOG", /* 0x0110 */
"WM_COMMAND", /* 0x0111 */
"WM_SYSCOMMAND", /* 0x0112 */
"WM_TIMER", /* 0x0113 */
"WM_HSCROLL", /* 0x0114 */
"WM_VSCROLL", /* 0x0115 */
"WM_INITMENU", /* 0x0116 */
"WM_INITMENUPOPUP", /* 0x0117 */
"WM_SYSTIMER", /* 0x0118 */
NULL,//0x0119
NULL,//0x011a
NULL,//0x011b
NULL,//0x011c
NULL,//0x011d
NULL,//0x011e
"WM_MENUSELECT", /* 0x011f */
"WM_MENUCHAR", /* 0x0120 */
"WM_ENTERIDLE", /* 0x0121 */
"WM_MENURBUTTONUP",//0x0122
"WM_MENUDRAG",//0x0123
"WM_MENUGETOBJECT",//0x0124
"WM_UNINITMENUPOPUP",//0x0125
"WM_MENUCOMMAND",//0x0126
"WM_CHANGEUISTATE",//0x0127
"WM_UPDATEUISTATE",//0x0128
"WM_QUERYUISTATE",//0x0129
NULL,//0x012a
NULL,//0x012b
NULL,//0x012c
NULL,//0x012d
NULL,//0x012e
NULL,//0x012f
NULL,/* 0x0130 */
"WM_LBTRACKPOINT", /* 0x0131 */
"WM_CTLCOLORMSGBOX", /* 0x0132 */
"WM_CTLCOLOREDIT", /* 0x0133 */
"WM_CTLCOLORLISTBOX", /* 0x0134 */
"WM_CTLCOLORBTN", /* 0x0135 */
"WM_CTLCOLORDLG", /* 0x0136 */
"WM_CTLCOLORSCROLLBAR", /* 0x0137 */
"WM_CTLCOLORSTATIC", /* 0x0138 */
NULL,//0x0139
NULL,//0x013a
NULL,//0x013b
NULL,//0x013c
NULL,//0x013d
NULL,//0x013e
NULL,//0x013f
"CB_GETEDITSEL32", /* 0x0140 *//* 0x0140 - Win32
Comboboxes */
"CB_LIMITTEXT32", /* 0x0141 */
"CB_SETEDITSEL32", /* 0x0142 */
"CB_ADDSTRING32", /* 0x0143 */
"CB_DELETESTRING32", /* 0x0144 */
"CB_DIR32", /* 0x0145 */
"CB_GETCOUNT32", /* 0x0146 */
"CB_GETCURSEL32", /* 0x0147 */
"CB_GETLBTEXT32", /* 0x0148 */
"CB_GETLBTEXTLEN32", /* 0x0149 */
"CB_INSERTSTRING32", /* 0x014a */
"CB_RESETCONTENT32", /* 0x014b */
"CB_FINDSTRING32", /* 0x014c */
"CB_SELECTSTRING32", /* 0x014d */
"CB_SETCURSEL32", /* 0x014e */
"CB_SHOWDROPDOWN32", /* 0x014f */
"CB_GETITEMDATA32", /* 0x0150 */
"CB_SETITEMDATA32", /* 0x0151 */
"CB_GETDROPPEDCONTROLRECT32",/* 0x0152 */
"CB_SETITEMHEIGHT32", /* 0x0153 */
"CB_GETITEMHEIGHT32", /* 0x0154 */
"CB_SETEXTENDEDUI32", /* 0x0155 */
"CB_GETEXTENDEDUI32", /* 0x0156 */
"CB_GETDROPPEDSTATE32", /* 0x0157 */
"CB_FINDSTRINGEXACT32", /* 0x0158 */
"CB_SETLOCALE32", /* 0x0159 */
"CB_GETLOCALE32", /* 0x015a */
"CB_GETTOPINDEX32", /* 0x015b */
"CB_SETTOPINDEX32", /* 0x015c */
"CB_GETHORIZONTALEXTENT32", /* 0x015d */
"CB_SETHORIZONTALEXTENT32", /* 0x015e */
"CB_GETDROPPEDWIDTH32", /* 0x015f */
"CB_SETDROPPEDWIDTH32", /* 0x0160 */
"CB_INITSTORAGE32", /* 0x0161 */
NULL,//0x0162
"CB_MULTIPLEADDSTRING",//0x0163
"CB_GETCOMBOBOXINFO",//0x0164
NULL,//0x0165
NULL,//0x0166
NULL,//0x0167
NULL,//0x0168
NULL,//0x0169
NULL,//0x016a
NULL,//0x016b
NULL,//0x016c
NULL,//0x016d
NULL,//0x016e
NULL,//0x016f
"STM_SETICON32", /* 0x0170 */ /* 0x0170 - Win32 Static
controls */
"STM_GETICON32", /* 0x0171 */
"STM_SETIMAGE32", /* 0x0172 */
"STM_GETIMAGE32", /* 0x0173 */
"STM_MSGMAX",//0x0174
NULL,//0x0175
NULL,//0x0176
NULL,//0x0177
NULL,//0x0178
NULL,//0x0179
NULL,//0x017a
NULL,//0x017b
NULL,//0x017c
NULL,//0x017d
NULL,//0x017e
NULL,//0x017f
"LB_ADDSTRING32", /* 0x0180 *//* 0x0180 - Win32
Listboxes */
"LB_INSERTSTRING32", /* 0x0181 */
"LB_DELETESTRING32", /* 0x0182 */
"LB_SELITEMRANGEEX32", /* 0x0183 */
"LB_RESETCONTENT32", /* 0x0184 */
"LB_SETSEL32", /* 0x0185 */
"LB_SETCURSEL32", /* 0x0186 */
"LB_GETSEL32", /* 0x0187 */
"LB_GETCURSEL32", /* 0x0188 */
"LB_GETTEXT32", /* 0x0189 */
"LB_GETTEXTLEN32", /* 0x018a */
"LB_GETCOUNT32", /* 0x018b */
"LB_SELECTSTRING32", /* 0x018c */
"LB_DIR32", /* 0x018d */
"LB_GETTOPINDEX32", /* 0x018e */
"LB_FINDSTRING32", /* 0x018f */
"LB_GETSELCOUNT32", /* 0x0190 */
"LB_GETSELITEMS32", /* 0x0191 */
"LB_SETTABSTOPS32", /* 0x0192 */
"LB_GETHORIZONTALEXTENT32", /* 0x0193 */
"LB_SETHORIZONTALEXTENT32", /* 0x0194 */
"LB_SETCOLUMNWIDTH32", /* 0x0195 */
"LB_ADDFILE32", /* 0x0196 */
"LB_SETTOPINDEX32", /* 0x0197 */
"LB_GETITEMRECT32", /* 0x0198 */
"LB_GETITEMDATA32", /* 0x0199 */
"LB_SETITEMDATA32", /* 0x019a */
"LB_SELITEMRANGE32", /* 0x019b */
"LB_SETANCHORINDEX32", /* 0x019c */
"LB_GETANCHORINDEX32", /* 0x019d */
"LB_SETCARETINDEX32", /* 0x019e */
"LB_GETCARETINDEX32", /* 0x019f */
"LB_SETITEMHEIGHT32", /* 0x01a0 */
"LB_GETITEMHEIGHT32", /* 0x01a1 */
"LB_FINDSTRINGEXACT32", /* 0x01a2 */
"LB_CARETON32", /* 0x01a3 */
"LB_CARETOFF32", /* 0x01a4 */
"LB_SETLOCALE32", /* 0x01a5 */
"LB_GETLOCALE32", /* 0x01a6 */
"LB_SETCOUNT32", /* 0x01a7 */
"LB_INITSTORAGE32", /* 0x01a8 */
"LB_ITEMFROMPOINT32", /* 0x01a9 */
"LB_INSERTSTRINGUPPER",//0x01aa
"LB_INSERTSTRINGLOWER",//0x01ab
"LB_ADDSTRINGUPPER",//0x01ac
"LB_ADDSTRINGLOWER",//0x01ad
"LBCB_STARTTRACK",//0x01ae
"LBCB_ENDTRACK",//0x01af
NULL,/* 0x01B0 */
"LB_MULTIPLEADDSTRING",//0x01b1
"LB_GETLISTBOXINFO",//0x01b2
NULL,//0x01b3
NULL,//0x01b4
NULL,//0x01b5
NULL,//0x01b6
NULL,//0x01b7
NULL,//0x01b8
NULL,//0x01b9
NULL,//0x01ba
NULL,//0x01bb
NULL,//0x01bc
NULL,//0x01bd
NULL,//0x01be
NULL,//0x01bf
NULL,/* 0x01C0 */
NULL,//0x01c1
NULL,//0x01c2
NULL,//0x01c3
NULL,//0x01c4
NULL,//0x01c5
NULL,//0x01c6
NULL,//0x01c7
NULL,//0x01c8
NULL,//0x01c9
NULL,//0x01ca
NULL,//0x01cb
NULL,//0x01cc
NULL,//0x01cd
NULL,//0x01ce
NULL,//0x01cf
NULL,/* 0x01D0 */
NULL,//0x01d1
NULL,//0x01d2
NULL,//0x01d3
NULL,//0x01d4
NULL,//0x01d5
NULL,//0x01d6
NULL,//0x01d7
NULL,//0x01d8
NULL,//0x01d9
NULL,//0x01da
NULL,//0x01db
NULL,//0x01dc
NULL,//0x01dd
NULL,//0x01de
NULL,//0x01df
NULL,/* 0x01E0 */
NULL,//0x01e1
NULL,//0x01e2
"MN_SETHMENU",//0x01e3
"MN_GETHMENU",//0x01e4
"MN_SIZEWINDOW",//0x01e5
"MN_OPENHIERARCHY",//0x01e6
"MN_CLOSEHIERARCHY",//0x01e7
"MN_SELECTITEM",//0x01e8
"MN_CANCELMENUS",//0x01e9
"MN_SELECTFIRSTVALIDITEM",//0x01ea
NULL,//0x01eb
NULL,//0x01ec
NULL,//0x01ed
"MN_FINDMENUWINDOWFROMPOINT",//0x01ee
"MN_SHOWPOPUPWINDOW",//0x01ef
"MN_BUTTONUP",//0x01f0
"MN_SETTIMERTOOPENHIERARCHY",//0x01f1
"MN_DBLCLK",//0x01f2
"MN_ACTIVEPOPUP",//0x01f3
"MN_ENDMENU",//0x01f4
"MN_DODRAGDROP",//0x01f5
NULL,//0x01f6
NULL,//0x01f7
NULL,//0x01f8
NULL,//0x01f9
NULL,//0x01fa
NULL,//0x01fb
NULL,//0x01fc
NULL,//0x01fd
NULL,//0x01fe
NULL,//0x01ff