windows消息数值对照

 

WM_NULL = $0000;

WM_CREATE = $0001;
WM_DESTROY = $0002;
WM_MOVE = $0003;
WM_SIZE = $0005;
WM_ACTIVATE = $0006;
WM_SETFOCUS = $0007;
WM_KILLFOCUS = $0008;
WM_ENABLE = $000A;
WM_SETREDRAW = $000B;
WM_SETTEXT = $000C;
WM_GETTEXT = $000D;
WM_GETTEXTLENGTH = $000E;
WM_PAINT = $000F;
WM_CLOSE = $0010;
WM_QUERYENDSESSION = $0011;
WM_QUIT = $0012;
WM_QUERYOPEN = $0013;
WM_ERASEBKGND = $0014;
WM_SYSCOLORCHANGE = $0015;
WM_ENDSESSION = $0016;
WM_SYSTEMERROR = $0017;

 

WM_SHOWWINDOW = $0018;
WM_ACTIVATEAPP = $001C;
WM_FONTCHANGE = $001D;
WM_TIMECHANGE = $001E;
WM_CANCELMODE = $001F;
WM_SETCURSOR = $0020;
WM_MOUSEACTIVATE = $0021;
WM_CHILDACTIVATE = $0022;
WM_QUEUESYNC = $0023;
WM_GETMINMAXINFO = $0024;
WM_PAINTICON = $0026;
WM_ICONERASEBKGND = $0027;
WM_NEXTDLGCTL = $0028;
WM_SPOOLERSTATUS = $002A;
WM_DRAWITEM = $002B;
WM_MEASUREITEM = $002C;
WM_DELETEITEM = $002D;
WM_VKEYTOITEM = $002E;
WM_CHARTOITEM = $002F;
WM_SETFONT = $0030;
WM_GETFONT = $0031;
WM_SETHOTKEY = $0032;

 

WM_GETHOTKEY = $0033;
WM_QUERYDRAGICON = $0037;
WM_COMPAREITEM = $0039;
WM_GETOBJECT = $003D;
WM_COMPACTING = $0041;
WM_WINDOWPOSCHANGING = $0046;
WM_WINDOWPOSCHANGED = $0047;
WM_COPYDATA = $004A;
WM_CANCELJOURNAL = $004B;
WM_NOTIFY = $004E;
WM_INPUTLANGCHANGEREQUEST = $0050;
WM_INPUTLANGCHANGE = $0051;
WM_TCARD = $0052;
WM_HELP = $0053;
WM_USERCHANGED = $0054;;
WM_NOTIFYFORMAT = $0055;
WM_CONTEXTMENU = $007B;
WM_STYLECHANGING = $007C;
WM_STYLECHANGED = $007D;
WM_DISPLAYCHANGE = $007E;
WM_GETICON = $007F;

WM_SETICON = $0080;;

WM_NCCREATE = $0081;
WM_NCDESTROY = $0082;
WM_NCCALCSIZE = $0083;
WM_NCHITTEST = $0084
WM_NCPAINT = $0085;
WM_NCACTIVATE = $0086;
WM_GETDLGCODE = $0087;

更多消息详见msdn。。。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>