C#用到windows 消息列表Message类MSG的id代号
C# Constants:
private const UInt32 WM_ACTIVATE = 0x0006;
private const UInt32 WM_ACTIVATEAPP = 0x001C;
private const UInt32 WM_AFXFIRST = 0x0360;
private const UInt32 WM_AFXLAST = 0x037F;
private const UInt32 WM_APP = 0x8000;
private const UInt32 WM_ASKCBFORMATNAME = 0x030C;
private const UInt32 WM_CANCELJOURNAL = 0x004B;
private const UInt32 WM_CANCELMODE = 0x001F;
private const UInt32 WM_CAPTURECHANGED = 0x0215;
private const UInt32 WM_CHANGECBCHAIN = 0x030D;
private const UInt32 WM_CHANGEUISTATE = 0x0127;
private const UInt32 WM_CHAR = 0x0102;
private const UInt32 WM_CHARTOITEM = 0x002F;
private const UInt32 WM_CHILDACTIVATE = 0x0022;
private const UInt32 WM_CLEAR = 0x0303;
private const UInt32 WM_CLOSE = 0x0010;
private const UInt32 WM_COMMAND = 0x0111;
private const UInt32 WM_COMPACTING = 0x0041;
private const UInt32 WM_COMPAREITEM = 0x0039;
private const UInt32 WM_CONTEXTMENU = 0x007B;
private const UInt32 WM_COPY = 0x0301;
private const UInt32 WM_COPYDATA = 0x004A;
private const UInt32 WM_CREATE = 0x0001;
private const UInt32 WM_CTLCOLORBTN = 0x0135;
private const UInt32 WM_CTLCOLORDLG = 0x0136;
private const UInt32 WM_CTLCOLOREDIT = 0x0133;
private const UInt32 WM_CTLCOLORLISTBOX = 0x0134;
private const UInt32 WM_CTLCOLORMSGBOX = 0x0132;
private const UInt32 WM_CTLCOLORSCROLLBAR = 0x0137;
private const UInt32 WM_CTLCOLORSTATIC = 0x0138;
private const UInt32 WM_CUT = 0x0300;
private const UInt32 WM_DEADCHAR = 0x0103;
private const UInt32 WM_DELETEITEM = 0x002D;
private const UInt32 WM_DESTROY = 0x0002;
private const UInt32 WM_DESTROYCLIPBOARD = 0x0307;
private const UInt32 WM_DEVICECHANGE = 0x0219;
private const UInt32 WM_DEVMODECHANGE = 0x001B;
private const UInt32 WM_DISPLAYCHANGE = 0x007E;
private const UInt32 WM_DRAWCLIPBOARD = 0x0308;
private const UInt32 WM_DRAWITEM = 0x002B;
private const UInt32 WM_DROPFILES = 0x0233;
private const UInt32 WM_ENABLE = 0x000A;
private const UInt32 WM_ENDSESSION = 0x0016;
private const UInt32 WM_ENTERIDLE = 0x0121;
private const UInt32 WM_ENTERMENULOOP = 0x0211;
private const UInt32 WM_ENTERSIZEMOVE = 0x0231;
private const UInt32 WM_ERASEBKGND = 0x0014;
private const UInt32 WM_EXITMENULOOP = 0x0212;
private const UInt32 WM_EXITSIZEMOVE = 0x0232;
private const UInt32 WM_FONTCHANGE = 0x001D;
private const UInt32 WM_GETDLGCODE = 0x0087;
private const UInt32 WM_GETFONT = 0x0031;
private const UInt32 WM_GETHOTKEY = 0x0033;
private const UInt32 WM_GETICON = 0x007F;
private const UInt32 WM_GETMINMAXINFO = 0x0024;
private const UInt32 WM_GETOBJECT = 0x003D;
private const UInt32 WM_GETTEXT = 0x000D;
private const UInt32 WM_GETTEXTLENGTH = 0x000E;
private const UInt32 WM_HANDHELDFIRST = 0x0358;
private const UInt32 WM_HANDHELDLAST = 0x035F;
private const UInt32 WM_HELP = 0x0053;
private const UInt32 WM_HOTKEY = 0x0312;
private const UInt32 WM_HSCROLL = 0x0114;
private const UInt32 WM_HSCROLLCLIPBOARD = 0x030E;
private const UInt32 WM_ICONERASEBKGND = 0x0027;
private const UInt32 WM_IME_CHAR = 0x0286;
private const UInt32 WM_IME_COMPOSITION = 0x010F;
private const UInt32 WM_IME_COMPOSITIONFULL = 0x0284;
private const UInt32 WM_IME_CONTROL = 0x0283;
private const UInt32 WM_IME_ENDCOMPOSITION = 0x010E;
private const UInt32 WM_IME_KEYDOWN = 0x0290;
private const UInt32 WM_IME_KEYLAST = 0x010F;
private const UInt32 WM_IME_KEYUP = 0x0291;
private const UInt32 WM_IME_NOTIFY = 0x0282;
private const UInt32 WM_IME_REQUEST = 0x0288;
private const UInt32 WM_IME_SELECT = 0x0285;
private const UInt32 WM_IME_SETCONTEXT = 0x0281;
private const UInt32 WM_IME_STARTCOMPOSITION = 0x010D;
private const UInt32 WM_INITDIALOG = 0x0110;
private const UInt32 WM_INITMENU = 0x0116;
private const UInt32 WM_INITMENUPOPUP = 0x0117;
private const UInt32 WM_INPUTLANGCHANGE = 0x0051;
private const UInt32 WM_INPUTLANGCHANGEREQUEST = 0x0050;
private const UInt32 WM_KEYDOWN = 0x0100;
private const UInt32 WM_KEYFIRST = 0x0100;
private const UInt32 WM_KEYLAST = 0x0108;
private const UInt32 WM_KEYUP = 0x0101;
private const UInt32 WM_KILLFOCUS = 0x0008;
private const UInt32 WM_LBUTTONDBLCLK = 0x0203;
private const UInt32 WM_LBUTTONDOWN = 0x0201;
private const UInt32 WM_LBUTTONUP = 0x0202;
private const UInt32 WM_MBUTTONDBLCLK = 0x0209;
private const UInt32 WM_MBUTTONDOWN = 0x0207;
private const UInt32 WM_MBUTTONUP = 0x0208;
private const UInt32 WM_MDIACTIVATE = 0x0222;
private const UInt32 WM_MDICASCADE = 0x0227;
private const UInt32 WM_MDICREATE = 0x0220;
private const UInt32 WM_MDIDESTROY = 0x0221;
private const UInt32 WM_MDIGETACTIVE = 0x0229;
private const UInt32 WM_MDIICONARRANGE = 0x0228;
private const UInt32 WM_MDIMAXIMIZE = 0x0225;
private const UInt32 WM_MDINEXT = 0x0224;
private const UInt32 WM_MDIREFRESHMENU = 0x0234;
private const UInt32 WM_MDIRESTORE = 0x0223;
private const UInt32 WM_MDISETMENU = 0x0230;
private const UInt32 WM_MDITILE = 0x0226;
private const UInt32 WM_MEASUREITEM = 0x002C;
private const UInt32 WM_MENUCHAR = 0x0120;
private const UInt32 WM_MENUCOMMAND = 0x0126;
private const UInt32 WM_MENUDRAG = 0x0123;
private const UInt32 WM_MENUGETOBJECT = 0x0124;
private const UInt32 WM_MENURBUTTONUP = 0x0122;
private const UInt32 WM_MENUSELECT = 0x011F;
private const UInt32 WM_MOUSEACTIVATE = 0x0021;
private const UInt32 WM_MOUSEFIRST = 0x0200;
private const UInt32 WM_MOUSEHOVER = 0x02A1;
private const UInt32 WM_MOUSELAST = 0x020D;
private const UInt32 WM_MOUSELEAVE = 0x02A3;
private const UInt32 WM_MOUSEMOVE = 0x0200;
private const UInt32 WM_MOUSEWHEEL = 0x020A;
private const UInt32 WM_MOUSEHWHEEL = 0x020E;
private const UInt32 WM_MOVE = 0x0003;
private const UInt32 WM_MOVING = 0x0216;
private const UInt32 WM_NCACTIVATE = 0x0086;
private const UInt32 WM_NCCALCSIZE = 0x0083;
private const UInt32 WM_NCCREATE = 0x0081;
private const UInt32 WM_NCDESTROY = 0x0082;
private const UInt32 WM_NCHITTEST = 0x0084;
private const UInt32 WM_NCLBUTTONDBLCLK = 0x00A3;
private const UInt32 WM_NCLBUTTONDOWN = 0x00A1;
private const UInt32 WM_NCLBUTTONUP = 0x00A2;
private const UInt32 WM_NCMBUTTONDBLCLK = 0x00A9;
private const UInt32 WM_NCMBUTTONDOWN = 0x00A7;
private const UInt32 WM_NCMBUTTONUP = 0x00A8;
private const UInt32 WM_NCMOUSEMOVE = 0x00A0;
private const UInt32 WM_NCPAINT = 0x0085;
private const UInt32 WM_NCRBUTTONDBLCLK = 0x00A6;
private const UInt32 WM_NCRBUTTONDOWN = 0x00A4;
private const UInt32 WM_NCRBUTTONUP = 0x00A5;
private const UInt32 WM_NEXTDLGCTL = 0x0028;
private const UInt32 WM_NEXTMENU = 0x0213;
private const UInt32 WM_NOTIFY = 0x004E;
private const UInt32 WM_NOTIFYFORMAT = 0x0055;
private const UInt32 WM_NULL = 0x0000;
private const UInt32 WM_PAINT = 0x000F;
private const UInt32 WM_PAINTCLIPBOARD = 0x0309;
private const UInt32 WM_PAINTICON = 0x0026;
private const UInt32 WM_PALETTECHANGED = 0x0311;
private const UInt32 WM_PALETTEISCHANGING = 0x0310;
private const UInt32 WM_PARENTNOTIFY = 0x0210;
private const UInt32 WM_PASTE = 0x0302;
private const UInt32 WM_PENWINFIRST = 0x0380;
private const UInt32 WM_PENWINLAST = 0x038F;
private const UInt32 WM_POWER = 0x0048;
private const UInt32 WM_POWERBROADCAST = 0x0218;
private const UInt32 WM_PRINT = 0x0317;
private const UInt32 WM_PRINTCLIENT = 0x0318;
private const UInt32 WM_QUERYDRAGICON = 0x0037;
private const UInt32 WM_QUERYENDSESSION = 0x0011;
private const UInt32 WM_QUERYNEWPALETTE = 0x030F;
private const UInt32 WM_QUERYOPEN = 0x0013;
private const UInt32 WM_QUEUESYNC = 0x0023;
private const UInt32 WM_QUIT = 0x0012;
private const UInt32 WM_RBUTTONDBLCLK = 0x0206;
private const UInt32 WM_RBUTTONDOWN = 0x0204;
private const UInt32 WM_RBUTTONUP = 0x0205;
private const UInt32 WM_RENDERALLFORMATS = 0x0306;
private const UInt32 WM_RENDERFORMAT = 0x0305;
private const UInt32 WM_SETCURSOR = 0x0020;
private const UInt32 WM_SETFOCUS = 0x0007;
private const UInt32 WM_SETFONT = 0x0030;
private const UInt32 WM_SETHOTKEY = 0x0032;
private const UInt32 WM_SETICON = 0x0080;
private const UInt32 WM_SETREDRAW = 0x000B;
private const UInt32 WM_SETTEXT = 0x000C;
private const UInt32 WM_SETTINGCHANGE = 0x001A;
private const UInt32 WM_SHOWWINDOW = 0x0018;
private const UInt32 WM_SIZE = 0x0005;
private const UInt32 WM_SIZECLIPBOARD = 0x030B;
private const UInt32 WM_SIZING = 0x0214;
private const UInt32 WM_SPOOLERSTATUS = 0x002A;
private const UInt32 WM_STYLECHANGED = 0x007D;
private const UInt32 WM_STYLECHANGING = 0x007C;
private const UInt32 WM_SYNCPAINT = 0x0088;
private const UInt32 WM_SYSCHAR = 0x0106;
private const UInt32 WM_SYSCOLORCHANGE = 0x0015;
private const UInt32 WM_SYSCOMMAND = 0x0112;
private const UInt32 WM_SYSDEADCHAR = 0x0107;
private const UInt32 WM_SYSKEYDOWN = 0x0104;
private const UInt32 WM_SYSKEYUP = 0x0105;
private const UInt32 WM_TCARD = 0x0052;
private const UInt32 WM_TIMECHANGE = 0x001E;
private const UInt32 WM_TIMER = 0x0113;
private const UInt32 WM_UNDO = 0x0304;
private const UInt32 WM_UNINITMENUPOPUP = 0x0125;
private const UInt32 WM_USER = 0x0400;
private const UInt32 WM_USERCHANGED = 0x0054;
private const UInt32 WM_VKEYTOITEM = 0x002E;
private const UInt32 WM_VSCROLL = 0x0115;
private const UInt32 WM_VSCROLLCLIPBOARD = 0x030A;
private const UInt32 WM_WINDOWPOSCHANGED = 0x0047;
private const UInt32 WM_WINDOWPOSCHANGING = 0x0046;
private const UInt32 WM_WININICHANGE = 0x001A;
private const UInt32 WM_XBUTTONDBLCLK = 0x020D;
private const UInt32 WM_XBUTTONDOWN = 0x020B;
private const UInt32 WM_XBUTTONUP = 0x020C;
WM_NULL = 0x0000
WM_CREATE = 0x0001
;应用程序创建一个窗口
WM_DESTROY = 0x0002
;一个窗口被销毁
WM_MOVE = 0x0003
;移动一个窗口
WM_SIZE = 0x0005
;改变一个窗口的大小
WM_ACTIVATE = 0x0006
;一个窗口被激活或失去激活状态;
WM_SETFOCUS = 0x0007
;获得焦点后
WM_KILLFOCUS = 0x0008
;失去焦点
WM_ENABLE = 0x000A
;改变enable 状态
WM_SETREDRAW = 0x000B
;设置窗口是否能重画
WM_SETTEXT = 0x000C
;应用程序发送此消息来设置一个窗口的文本
WM_GETTEXT = 0x000D
;应用程序发送此消息来复制对应窗口的文本到缓冲区
WM_GETTEXTLENGTH = 0x000E
;得到与一个窗口有关的文本的长度(不包含空字符)
WM_PAINT = 0x000F
;要求一个窗口重画自己
WM_CLOSE = 0x0010
;当一个窗口或应用程序要关闭时发送一个信号
WM_QUERYENDSESSION = 0x0011
;当用户选择结束对话框或程序自己调用ExitWindows函数
WM_QUIT = 0x0012
;用来结束程序运行或当程序调用postquitmessage函数
WM_QUERYOPEN = 0x0013
;当用户窗口恢复以前的大小位置时,把此消息发送给某个图标
WM_ERASEBKGND = 0x0014
;当窗口背景必须被擦除时(例在窗口改变大小时)
WM_SYSCOLORCHANGE = 0x0015
;当系统颜色改变时,发送此消息给所有顶级窗口
WM_ENDSESSION = 0x0016
;当系统进程发出WM_QUERYENDSESSION 消息后,此消息发送给应用程序通知它对话是否结束
WM_SYSTEMERROR = 0x0017
;系统错误
WM_SHOWWINDOW = 0x0018
;当隐藏或显示窗口是发送此消息给这个窗口
WM_ACTIVATEAPP = 0x001C
;发此消息给应用程序哪个窗口是激活的,哪个是非激活的;
WM_FONTCHANGE = 0x001D
;当系统的字体资源库变化时发送此消息给所有顶级窗口
WM_TIMECHANGE = 0x001E
;当系统的时间变化时发送此消息给所有顶级窗口
WM_CANCELMODE = 0x001F
;发送此消息来取消某种正在进行的摸态(操作)
WM_SETCURSOR = 0x0020
;如果鼠标引起光标在某个窗口中移动且鼠标输入没有被捕获时,就发消息给某个窗口
WM_MOUSEACTIVATE = 0x0021
;当光标在某个非激活的窗口中而用户正按着鼠标的某个键发送此消息给当前窗口
WM_CHILDACTIVATE = 0x0022
;发送此消息给MDI 子窗口当用户点击此窗口的标题栏,或当窗口被激活,移动,改变大小
WM_QUEUESYNC = 0x0023
;此消息由基于计算机的训练程序发送,通过WH_JOURNALPALYBACK的hook程序分离出用户输入消息
WM_GETMINMAXINFO = 0x0024
;此消息发送给窗口当它将要改变大小或位置;
WM_PAINTICON = 0x0026
;发送给最小化窗口当它图标将要被重画
WM_ICONERASEBKGND = 0x0027
;此消息发送给某个最小化窗口,仅当它在画图标前它的背景必须被重画
WM_NEXTDLGCTL = 0x0028;
发送此消息给一个对话框程序去更改焦点位置
WM_SPOOLERSTATUS = 0x002A;
每当打印管理列队增加或减少一条作业时发出此消息
WM_DRAWITEM = 0x002B;
WM_MEASUREITEM = 0x002C;
当button, combo box, list box, list view control, or menu item 被创建时
发送此消息给控件的所有者
WM_DELETEITEM = 0x002D;当listbox或combobox 被销毁或当某些项被删除通过LB_DELETESTRING,LB_RESETCONTENT,CB_DELETESTRING,CB_RESETCONTENT消息
WM_VKEYTOITEM = 0x002E;此消息有一个LBS_WANTKEYBOARDINPUT 风格的发出给它的所有者来响应
WM_KEYDOWN 消息
WM_CHARTOITEM = 0x002F;
此消息由一个LBS_WANTKEYBOARDINPUT 风格的列表框发送给他的所有者来
响应WM_CHAR 消息
WM_SETFONT = 0x0030;
当绘制文本时程序发送此消息得到控件要用的颜色
WM_GETFONT = 0x0031;
应用程序发送此消息得到当前控件绘制文本的字体
WM_SETHOTKEY = 0x0032;
应用程序发送此消息让一个窗口与一个热键相关连
WM_GETHOTKEY = 0x0033;
应用程序发送此消息来判断热键与某个窗口是否有关联
WM_QUERYDRAGICON = 0x0037;
此消息发送给最小化窗口,当此窗口将要被拖放而它的类中没有定义图标,应用程
序能返回一个图标或光标的句柄,当用户拖放图标时系统显示这个图标或光标
WM_COMPAREITEM = 0x0039;
发送此消息来判定combobox 或listbox 新增加的项的相对位置
WM_GETOBJECT = 0x003D;
WM_COMPACTING = 0x0041;
显示内存已经很少了
WM_WINDOWPOSCHANGING = 0x0046;
发送此消息给那个窗口的大小和位置将要被改变时,来调用setwindowpos 函数或
其它窗口管理函数
WM_WINDOWPOSCHANGED = 0x0047;
发送此消息给那个窗口的大小和位置已经被改变时,来调用setwindowpos 函数或
其它窗口管理函数
WM_POWER = 0x0048;(适用于16 位的windows)
当系统将要进入暂停状态时发送此消息
WM_COPYDATA = 0x004A;
当一个应用程序传递数据给另一个应用程序时发送此消息
WM_CANCELJOURNAL = 0x004B;
当某个用户取消程序日志激活状态,提交此消息给程序
WM_NOTIFY = 0x004E;
当某个控件的某个事件已经发生或这个控件需要得到一些信息时,发送此消息给它
的父窗口
WM_INPUTLANGCHANGEREQUEST = 0x0050;
当用户选择某种输入语言,或输入语言的热键改变
WM_INPUTLANGCHANGE = 0x0051;
当平台现场已经被改变后发送此消息给受影响的最顶级窗口
WM_TCARD = 0x0052;
当程序已经初始化windows 帮助例程时发送此消息给应用程序
WM_HELP = 0x0053;
此消息显示用户按下了F1,如果某个菜单是激活的,就发送此消息个此窗口关联
的菜单,否则就
发送给有焦点的窗口,如果当前都没有焦点,就把此消息发送给当前激活的窗口
WM_USERCHANGED = 0x0054;
当用户已经登入或退出后发送此消息给所有的窗口,当用户登入或退出时系统更新
用户的具体
设置信息,在用户更新设置时系统马上发送此消息;
WM_NOTIFYFORMAT = 0x0055;
公用控件,自定义控件和他们的父窗口通过此消息来判断控件是使用ANSI 还是
UNICODE 结构
在WM_NOTIFY 消息,使用此控件能使某个控件与它的父控件之间进行相互通信
WM_CONTEXTMENU = 0x007B;
当用户某个窗口中点击了一下右键就发送此消息给这个窗口
WM_STYLECHANGING = 0x007C;
当调用SETWINDOWLONG 函数将要改变一个或多个 窗口的风格时发送此消息给
那个窗口
WM_STYLECHANGED = 0x007D;
当调用SETWINDOWLONG 函数一个或多个 窗口的风格后发送此消息给那个窗口
WM_DISPLAYCHANGE = 0x007E;
当显示器的分辨率改变后发送此消息给所有的窗口
WM_GETICON = 0x007F;
此消息发送给某个窗口来返回与某个窗口有关连的大图标或小图标的句柄;
WM_SETICON = 0x0080;
程序发送此消息让一个新的大图标或小图标与某个窗口关联;
WM_NCCREATE = 0x0081;
当某个窗口第一次被创建时,此消息在WM_CREATE 消息发送前发送;
WM_NCDESTROY = 0x0082;
此消息通知某个窗口,非客户区正在销毁
WM_NCCALCSIZE = 0x0083;
当某个窗口的客户区域必须被核算时发送此消息
WM_NCHITTEST = 0x0084;//移动鼠标,按住或释放鼠标时发生
WM_NCPAINT = 0x0085;
程序发送此消息给某个窗口当它(窗口)的框架必须被绘制时;
WM_NCACTIVATE = 0x0086;
此消息发送给某个窗口 仅当它的非客户区需要被改变来显示是激活还是非激活状
态;
WM_GETDLGCODE = 0x0087;
发送此消息给某个与对话框程序关联的控件,widdows 控制方位键和TAB 键使输
入进入此控件
通过响应WM_GETDLGCODE 消息,应用程序可以把他当成一个特殊的输入控件
并能处理它
WM_NCMOUSEMOVE = 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;
当用户双击鼠标中键同时光标又在窗口的非客户区时发送此消息
WM_KEYFIRST = 0x0100;
WM_KEYDOWN = 0x0100;
//按下一个键
WM_KEYUP = 0x0101;
//释放一个键
WM_CHAR = 0x0102;
//按下某键,并已发出WM_KEYDOWN, WM_KEYUP 消息
WM_DEADCHAR = 0x0103;
当用translatemessage 函数翻译WM_KEYUP 消息时发送此消息给拥有焦点的窗口
WM_SYSKEYDOWN = 0x0104;
当用户按住ALT 键同时按下其它键时提交此消息给拥有焦点的窗口;
WM_SYSKEYUP = 0x0105;
当用户释放一个键同时ALT 键还按着时提交此消息给拥有焦点的窗口
WM_SYSCHAR = 0x0106;
当WM_SYSKEYDOWN 消息被TRANSLATEMESSAGE 函数翻译后提交此消息给
拥有焦点的窗口
WM_SYSDEADCHAR = 0x0107;
当WM_SYSKEYDOWN 消息被TRANSLATEMESSAGE 函数翻译后发送此消息给
拥有焦点的窗口
WM_KEYLAST = 0x0108;
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_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;
C#用到windows 消息列表Message类MSG的id代号的更多相关文章
- windows 消息列表
private const UInt32 WM_ACTIVATE = 0x0006; private const UInt32 WM_ACTIVATEAPP = 0x001C; private con ...
- C# 收发和处理自定义的WINDOWS消息
C# 发送.接收和处理自定义的WINDOWS消息 转载地址:http://blog.chinaunix.net/uid-24427209-id-2608350.html 为了程序启动后自动执行主函数, ...
- WCF初探-22:WCF中使用Message类(上)
前言 从我们学习WCF以来,就一直强调WCF是基于消息的通信机制.但是由于WCF给我们做了高级封装,以至于我们在使用WCF的时候很少了解到消息的内部机制.由于WCF的架构的可扩展性,针对一些特殊情况, ...
- Windows消息机制要点
1. 窗口过程 每个窗口会有一个称为窗口过程的回调函数(WndProc),它带有四个参数,分别为:窗口句柄(Window Handle),消息ID(Message ID),和两个消息参数(wP ...
- 【转】windows消息16进制对应表
来源:http://blog.sina.com.cn/s/blog_962250db0101d4mj.html windows mobile编程,无论使用eVC还是.net CF,都脱不开window ...
- 转:Windows消息机制要点
Windows消息机制要点 1. 窗口过程 每个窗口会有一个称为窗口过程的回调函数(WndProc),它带有四个参数,分别为:窗口句柄(Window Handle),消息ID(Message ...
- windows消息的循环机制
首先来了解几个基本概念: 消息:在了解什么是消息先来了解什么是事件.事件可分为几种,由输入设备触发的,比如鼠标键盘等等.由窗体控件触发的,比如button控件,file菜单等.还有就是来自Window ...
- C# Message类的属性Msg所关联的消息ID
C# Message类的属性Msg所关联的消息ID https://msdn.microsoft.com/en-us/library/windows/desktop/ms645606(v=vs.8 ...
- Message类的属性Msg所关联的消息ID
在做C#的Message消息处理的时候,用到了消息的msg编号不知道对应的是什么事件,所以才从网上找来资料如下,在文章最后我会给出资料的出处的. WM_NULL=0x0000 WM_CREATE=0x ...
随机推荐
- 201521123079《java程序设计》第9周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结异常相关内容. 2. 书面作业 本次PTA作业题集异常 1.常用异常 题目5-1 1.1 截图你的提交结果(出现学号) 1.2 自己 ...
- Oracle-SQL-按月统计自助终端交易量
SQL实现的目标: 基本情况 现金交易情况 转账情况 转账交易情况(明细) 其它业务情况 交易量汇总 日均交易量 交易金额 绩效情况(万元) 支行名 支行号 所属网点 网点号 管理员帐户 管理员 终端 ...
- 离线安装 Cloudera Manager 5 和 CDH5.10
关于CDH和Cloudera Manager CDH (Cloudera's Distribution, including Apache Hadoop),是Hadoop众多分支中的一种,由Cloud ...
- FastDFS安装步骤
FastDFS是用c语言编写的一款开源的分布式文件系统,充分考虑了冗余备份.负载均衡.线性扩容等机制,并注重高可用.高性能等指标,使用FastDFS很容易搭建一套高性能的文件服务器集群提供文件上传.下 ...
- angularui 自定义选项卡
ng-include 选取ng-template <!DOCTYPE html> <html lang="en" ng-app="myApp" ...
- canvas浅谈 实现简单的自旋转下落
旋转和平移是2个基础的动画效果,也是复杂动画的基础. 如果是普通的页面只要设置transform属性很容易实现平移+旋转的组合效果,达到自旋转下落的效果.因为操作的直接是动作元素本身很容易理解. 但是 ...
- Struts2的核心运行流程,原理图解
感觉很有必要制定一个计划,这样盲目的想到哪里写到哪里,不符合我大程序员的思维逻辑呀~~~嗯...那就从基本的开始吧,循循渐进,今天想到的先写上,不能浪费了,哈哈哈................... ...
- hdu3695 ac自动机入门
Computer Virus on Planet Pandora Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 256000/1280 ...
- File FileStream StreamWriter StreamReader文件读写操作方法
string path = "D:\\AccountChecking\\Test.txt"; string content = "abcdefg\r\nhigklmn\r ...
- 三分钟浅谈TT猫的前端优化
首先看一张访问TT猫首页的截图: 测试环境为谷歌浏览器,暂且不讨论其它浏览器,截图下方我们可以观察到以下参数: DOMContentLoaded:1.42s | Load:2.31s 以上参数是在CT ...