在C#中使用的Win32消息列表

转自http://blog.csdn.net/lihui_830501/article/details/4593383

 

  1 internal class Win32Message
  2     {
  3         public const int WM_NULL = 0x0000;
  4         public const int WM_CREATE = 0x0001;
  5         public const int WM_DESTROY = 0x0002;
  6         public const int WM_MOVE = 0x0003;
  7         public const int WM_SIZE = 0x0005;
  8         public const int WM_ACTIVATE = 0x0006;
  9         public const int WM_SETFOCUS = 0x0007;
 10         public const int WM_KILLFOCUS = 0x0008;
 11         public const int WM_ENABLE = 0x000A;
 12         public const int WM_SETREDRAW = 0x000B;
 13         public const int WM_SETTEXT = 0x000C;
 14         public const int WM_GETTEXT = 0x000D;
 15         public const int WM_GETTEXTLENGTH = 0x000E;
 16         public const int WM_PAINT = 0x000F;
 17         public const int WM_CLOSE = 0x0010;
 18         public const int WM_QUERYENDSESSION = 0x0011;
 19         public const int WM_QUIT = 0x0012;
 20         public const int WM_QUERYOPEN = 0x0013;
 21         public const int WM_ERASEBKGND = 0x0014;
 22         public const int WM_SYSCOLORCHANGE = 0x0015;
 23         public const int WM_ENDSESSION = 0x0016;
 24         public const int WM_SHOWWINDOW = 0x0018;
 25         public const int WM_WININICHANGE = 0x001A;
 26         public const int WM_SETTINGCHANGE = 0x001A;
 27         public const int WM_DEVMODECHANGE = 0x001B;
 28         public const int WM_ACTIVATEAPP = 0x001C;
 29         public const int WM_FONTCHANGE = 0x001D;
 30         public const int WM_TIMECHANGE = 0x001E;
 31         public const int WM_CANCELMODE = 0x001F;
 32         public const int WM_SETCURSOR = 0x0020;
 33         public const int WM_MOUSEACTIVATE = 0x0021;
 34         public const int WM_CHILDACTIVATE = 0x0022;
 35         public const int WM_QUEUESYNC = 0x0023;
 36         public const int WM_GETMINMAXINFO = 0x0024;
 37         public const int WM_PAINTICON = 0x0026;
 38         public const int WM_ICONERASEBKGND = 0x0027;
 39         public const int WM_NEXTDLGCTL = 0x0028;
 40         public const int WM_SPOOLERSTATUS = 0x002A;
 41         public const int WM_DRAWITEM = 0x002B;
 42         public const int WM_MEASUREITEM = 0x002C;
 43         public const int WM_DELETEITEM = 0x002D;
 44         public const int WM_VKEYTOITEM = 0x002E;
 45         public const int WM_CHARTOITEM = 0x002F;
 46         public const int WM_SETFONT = 0x0030;
 47         public const int WM_GETFONT = 0x0031;
 48         public const int WM_SETHOTKEY = 0x0032;
 49         public const int WM_GETHOTKEY = 0x0033;
 50         public const int WM_QUERYDRAGICON = 0x0037;
 51         public const int WM_COMPAREITEM = 0x0039;
 52         public const int WM_GETOBJECT = 0x003D;
 53         public const int WM_COMPACTING = 0x0041;
 54         public const int WM_COMMNOTIFY = 0x0044;
 55         public const int WM_WINDOWPOSCHANGING = 0x0046;
 56         public const int WM_WINDOWPOSCHANGED = 0x0047;
 57         public const int WM_POWER = 0x0048;
 58         public const int WM_COPYDATA = 0x004A;
 59         public const int WM_CANCELJOURNAL = 0x004B;
 60         public const int WM_NOTIFY = 0x004E;
 61         public const int WM_INPUTLANGCHANGEREQUEST = 0x0050;
 62         public const int WM_INPUTLANGCHANGE = 0x0051;
 63         public const int WM_TCARD = 0x0052;
 64         public const int WM_HELP = 0x0053;
 65         public const int WM_USERCHANGED = 0x0054;
 66         public const int WM_NOTIFYFORMAT = 0x0055;
 67         public const int WM_CONTEXTMENU = 0x007B;
 68         public const int WM_STYLECHANGING = 0x007C;
 69         public const int WM_STYLECHANGED = 0x007D;
 70         public const int WM_DISPLAYCHANGE = 0x007E;
 71         public const int WM_GETICON = 0x007F;
 72         public const int WM_SETICON = 0x0080;
 73         public const int WM_NCCREATE = 0x0081;
 74         public const int WM_NCDESTROY = 0x0082;
 75         public const int WM_NCCALCSIZE = 0x0083;
 76         public const int WM_NCHITTEST = 0x0084;
 77         public const int WM_NCPAINT = 0x0085;
 78         public const int WM_NCACTIVATE = 0x0086;
 79         public const int WM_GETDLGCODE = 0x0087;
 80         public const int WM_SYNCPAINT = 0x0088;
 81         public const int WM_NCMOUSEMOVE = 0x00A0;
 82         public const int WM_NCLBUTTONDOWN = 0x00A1;
 83         public const int WM_NCLBUTTONUP = 0x00A2;
 84         public const int WM_NCLBUTTONDBLCLK = 0x00A3;
 85         public const int WM_NCRBUTTONDOWN = 0x00A4;
 86         public const int WM_NCRBUTTONUP = 0x00A5;
 87         public const int WM_NCRBUTTONDBLCLK = 0x00A6;
 88         public const int WM_NCMBUTTONDOWN = 0x00A7;
 89         public const int WM_NCMBUTTONUP = 0x00A8;
 90         public const int WM_NCMBUTTONDBLCLK = 0x00A9;
 91         public const int WM_KEYDOWN = 0x0100;
 92         public const int WM_KEYUP = 0x0101;
 93         public const int WM_CHAR = 0x0102;
 94         public const int WM_DEADCHAR = 0x0103;
 95         public const int WM_SYSKEYDOWN = 0x0104;
 96         public const int WM_SYSKEYUP = 0x0105;
 97         public const int WM_SYSCHAR = 0x0106;
 98         public const int WM_SYSDEADCHAR = 0x0107;
 99         public const int WM_KEYLAST = 0x0108;
100         public const int WM_IME_STARTCOMPOSITION = 0x010D;
101         public const int WM_IME_ENDCOMPOSITION = 0x010E;
102         public const int WM_IME_COMPOSITION = 0x010F;
103         public const int WM_IME_KEYLAST = 0x010F;
104         public const int WM_INITDIALOG = 0x0110;
105         public const int WM_COMMAND = 0x0111;
106         public const int WM_SYSCOMMAND = 0x0112;
107         public const int WM_TIMER = 0x0113;
108         public const int WM_HSCROLL = 0x0114;
109         public const int WM_VSCROLL = 0x0115;
110         public const int WM_INITMENU = 0x0116;
111         public const int WM_INITMENUPOPUP = 0x0117;
112         public const int WM_MENUSELECT = 0x011F;
113         public const int WM_MENUCHAR = 0x0120;
114         public const int WM_ENTERIDLE = 0x0121;
115         public const int WM_MENURBUTTONUP = 0x0122;
116         public const int WM_MENUDRAG = 0x0123;
117         public const int WM_MENUGETOBJECT = 0x0124;
118         public const int WM_UNINITMENUPOPUP = 0x0125;
119         public const int WM_MENUCOMMAND = 0x0126;
120         public const int WM_CTLCOLORMSGBOX = 0x0132;
121         public const int WM_CTLCOLOREDIT = 0x0133;
122         public const int WM_CTLCOLORLISTBOX = 0x0134;
123         public const int WM_CTLCOLORBTN = 0x0135;
124         public const int WM_CTLCOLORDLG = 0x0136;
125         public const int WM_CTLCOLORSCROLLBAR = 0x0137;
126         public const int WM_CTLCOLORSTATIC = 0x0138;
127         public const int WM_MOUSEMOVE = 0x0200;
128         public const int WM_LBUTTONDOWN = 0x0201;
129         public const int WM_LBUTTONUP = 0x0202;
130         public const int WM_LBUTTONDBLCLK = 0x0203;
131         public const int WM_RBUTTONDOWN = 0x0204;
132         public const int WM_RBUTTONUP = 0x0205;
133         public const int WM_RBUTTONDBLCLK = 0x0206;
134         public const int WM_MBUTTONDOWN = 0x0207;
135         public const int WM_MBUTTONUP = 0x0208;
136         public const int WM_MBUTTONDBLCLK = 0x0209;
137         public const int WM_MOUSEWHEEL = 0x020A;
138         public const int WM_PARENTNOTIFY = 0x0210;
139         public const int WM_ENTERMENULOOP = 0x0211;
140         public const int WM_EXITMENULOOP = 0x0212;
141         public const int WM_NEXTMENU = 0x0213;
142         public const int WM_SIZING = 0x0214;
143         public const int WM_CAPTURECHANGED = 0x0215;
144         public const int WM_MOVING = 0x0216;
145         public const int WM_DEVICECHANGE = 0x0219;
146         public const int WM_MDICREATE = 0x0220;
147         public const int WM_MDIDESTROY = 0x0221;
148         public const int WM_MDIACTIVATE = 0x0222;
149         public const int WM_MDIRESTORE = 0x0223;
150         public const int WM_MDINEXT = 0x0224;
151         public const int WM_MDIMAXIMIZE = 0x0225;
152         public const int WM_MDITILE = 0x0226;
153         public const int WM_MDICASCADE = 0x0227;
154         public const int WM_MDIICONARRANGE = 0x0228;
155         public const int WM_MDIGETACTIVE = 0x0229;
156         public const int WM_MDISETMENU = 0x0230;
157         public const int WM_ENTERSIZEMOVE = 0x0231;
158         public const int WM_EXITSIZEMOVE = 0x0232;
159         public const int WM_DROPFILES = 0x0233;
160         public const int WM_MDIREFRESHMENU = 0x0234;
161         public const int WM_IME_SETCONTEXT = 0x0281;
162         public const int WM_IME_NOTIFY = 0x0282;
163         public const int WM_IME_CONTROL = 0x0283;
164         public const int WM_IME_COMPOSITIONFULL = 0x0284;
165         public const int WM_IME_SELECT = 0x0285;
166         public const int WM_IME_CHAR = 0x0286;
167         public const int WM_IME_REQUEST = 0x0288;
168         public const int WM_IME_KEYDOWN = 0x0290;
169         public const int WM_IME_KEYUP = 0x0291;
170         public const int WM_MOUSEHOVER = 0x02A1;
171         public const int WM_MOUSELEAVE = 0x02A3;
172         public const int WM_CUT = 0x0300;
173         public const int WM_COPY = 0x0301;
174         public const int WM_PASTE = 0x0302;
175         public const int WM_CLEAR = 0x0303;
176         public const int WM_UNDO = 0x0304;
177         public const int WM_RENDERFORMAT = 0x0305;
178         public const int WM_RENDERALLFORMATS = 0x0306;
179         public const int WM_DESTROYCLIPBOARD = 0x0307;
180         public const int WM_DRAWCLIPBOARD = 0x0308;
181         public const int WM_PAINTCLIPBOARD = 0x0309;
182         public const int WM_VSCROLLCLIPBOARD = 0x030A;
183         public const int WM_SIZECLIPBOARD = 0x030B;
184         public const int WM_ASKCBFORMATNAME = 0x030C;
185         public const int WM_CHANGECBCHAIN = 0x030D;
186         public const int WM_HSCROLLCLIPBOARD = 0x030E;
187         public const int WM_QUERYNEWPALETTE = 0x030F;
188         public const int WM_PALETTEISCHANGING = 0x0310;
189         public const int WM_PALETTECHANGED = 0x0311;
190         public const int WM_HOTKEY = 0x0312;
191         public const int WM_PRINT = 0x0317;
192         public const int WM_PRINTCLIENT = 0x0318;
193         public const int WM_HANDHELDFIRST = 0x0358;
194         public const int WM_HANDHELDLAST = 0x035F;
195         public const int WM_AFXFIRST = 0x0360;
196         public const int WM_AFXLAST = 0x037F;
197         public const int WM_PENWINFIRST = 0x0380;
198         public const int WM_PENWINLAST = 0x038F;
199 
200         public const int WM_APP = 0x8000;
201         public const int WM_USER = 0x0400;
202     }

 

posted @ 2013-01-15 10:23  SJJSKY  阅读(311)  评论(0编辑  收藏  举报