2007-01-10 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / Common.cs
blobd02e9424b369ae3612756579f2b2816d1c6d2e15
1 using System;
2 using NUnit.Framework;
3 using System.Windows.Forms;
4 using System.Drawing;
5 using System.Collections;
7 namespace MonoTests.System.Windows.Forms
9 internal enum WndMsg {
10 WM_NULL = 0x0000,
11 WM_CREATE = 0x0001,
12 WM_DESTROY = 0x0002,
13 WM_MOVE = 0x0003,
14 WM_SIZE = 0x0005,
15 WM_ACTIVATE = 0x0006,
16 WM_SETFOCUS = 0x0007,
17 WM_KILLFOCUS = 0x0008,
18 //public const uint WM_SETVISIBLE = 0x0009;
19 WM_ENABLE = 0x000A,
20 WM_SETREDRAW = 0x000B,
21 WM_SETTEXT = 0x000C,
22 WM_GETTEXT = 0x000D,
23 WM_GETTEXTLENGTH = 0x000E,
24 WM_PAINT = 0x000F,
25 WM_CLOSE = 0x0010,
26 WM_QUERYENDSESSION = 0x0011,
27 WM_QUIT = 0x0012,
28 WM_QUERYOPEN = 0x0013,
29 WM_ERASEBKGND = 0x0014,
30 WM_SYSCOLORCHANGE = 0x0015,
31 WM_ENDSESSION = 0x0016,
32 //public const uint WM_SYSTEMERROR = 0x0017;
33 WM_SHOWWINDOW = 0x0018,
34 WM_CTLCOLOR = 0x0019,
35 WM_WININICHANGE = 0x001A,
36 WM_SETTINGCHANGE = 0x001A,
37 WM_DEVMODECHANGE = 0x001B,
38 WM_ACTIVATEAPP = 0x001C,
39 WM_FONTCHANGE = 0x001D,
40 WM_TIMECHANGE = 0x001E,
41 WM_CANCELMODE = 0x001F,
42 WM_SETCURSOR = 0x0020,
43 WM_MOUSEACTIVATE = 0x0021,
44 WM_CHILDACTIVATE = 0x0022,
45 WM_QUEUESYNC = 0x0023,
46 WM_GETMINMAXINFO = 0x0024,
47 WM_PAINTICON = 0x0026,
48 WM_ICONERASEBKGND = 0x0027,
49 WM_NEXTDLGCTL = 0x0028,
50 //public const uint WM_ALTTABACTIVE = 0x0029;
51 WM_SPOOLERSTATUS = 0x002A,
52 WM_DRAWITEM = 0x002B,
53 WM_MEASUREITEM = 0x002C,
54 WM_DELETEITEM = 0x002D,
55 WM_VKEYTOITEM = 0x002E,
56 WM_CHARTOITEM = 0x002F,
57 WM_SETFONT = 0x0030,
58 WM_GETFONT = 0x0031,
59 WM_SETHOTKEY = 0x0032,
60 WM_GETHOTKEY = 0x0033,
61 //public const uint WM_FILESYSCHANGE = 0x0034;
62 //public const uint WM_ISACTIVEICON = 0x0035;
63 //public const uint WM_QUERYPARKICON = 0x0036;
64 WM_QUERYDRAGICON = 0x0037,
65 WM_COMPAREITEM = 0x0039,
66 //public const uint WM_TESTING = 0x003a;
67 //public const uint WM_OTHERWINDOWCREATED = 0x003c;
68 WM_GETOBJECT = 0x003D,
69 //public const uint WM_ACTIVATESHELLWINDOW = 0x003e;
70 WM_COMPACTING = 0x0041,
71 WM_COMMNOTIFY = 0x0044 ,
72 WM_WINDOWPOSCHANGING = 0x0046,
73 WM_WINDOWPOSCHANGED = 0x0047,
74 WM_POWER = 0x0048,
75 WM_COPYDATA = 0x004A,
76 WM_CANCELJOURNAL = 0x004B,
77 WM_NOTIFY = 0x004E,
78 WM_INPUTLANGCHANGEREQUEST = 0x0050,
79 WM_INPUTLANGCHANGE = 0x0051,
80 WM_TCARD = 0x0052,
81 WM_HELP = 0x0053,
82 WM_USERCHANGED = 0x0054,
83 WM_NOTIFYFORMAT = 0x0055,
84 WM_CONTEXTMENU = 0x007B,
85 WM_STYLECHANGING = 0x007C,
86 WM_STYLECHANGED = 0x007D,
87 WM_DISPLAYCHANGE = 0x007E,
88 WM_GETICON = 0x007F,
90 // Non-Client messages
91 WM_SETICON = 0x0080,
92 WM_NCCREATE = 0x0081,
93 WM_NCDESTROY = 0x0082,
94 WM_NCCALCSIZE = 0x0083,
95 WM_NCHITTEST = 0x0084,
96 WM_NCPAINT = 0x0085,
97 WM_NCACTIVATE = 0x0086,
98 WM_GETDLGCODE = 0x0087,
99 WM_SYNCPAINT = 0x0088,
100 //public const uint WM_SYNCTASK = 0x0089;
101 WM_NCMOUSEMOVE = 0x00A0,
102 WM_NCLBUTTONDOWN = 0x00A1,
103 WM_NCLBUTTONUP = 0x00A2,
104 WM_NCLBUTTONDBLCLK = 0x00A3,
105 WM_NCRBUTTONDOWN = 0x00A4,
106 WM_NCRBUTTONUP = 0x00A5,
107 WM_NCRBUTTONDBLCLK = 0x00A6,
108 WM_NCMBUTTONDOWN = 0x00A7,
109 WM_NCMBUTTONUP = 0x00A8,
110 WM_NCMBUTTONDBLCLK = 0x00A9,
111 //public const uint WM_NCXBUTTONDOWN = 0x00ab;
112 //public const uint WM_NCXBUTTONUP = 0x00ac;
113 //public const uint WM_NCXBUTTONDBLCLK = 0x00ad;
114 WM_KEYDOWN = 0x0100,
115 WM_KEYFIRST = 0x0100,
116 WM_KEYUP = 0x0101,
117 WM_CHAR = 0x0102,
118 WM_DEADCHAR = 0x0103,
119 WM_SYSKEYDOWN = 0x0104,
120 WM_SYSKEYUP = 0x0105,
121 WM_SYSCHAR = 0x0106,
122 WM_SYSDEADCHAR = 0x0107,
123 WM_KEYLAST = 0x0108,
124 WM_IME_STARTCOMPOSITION = 0x010D,
125 WM_IME_ENDCOMPOSITION = 0x010E,
126 WM_IME_COMPOSITION = 0x010F,
127 WM_IME_KEYLAST = 0x010F,
128 WM_INITDIALOG = 0x0110,
129 WM_COMMAND = 0x0111,
130 WM_SYSCOMMAND = 0x0112,
131 WM_TIMER = 0x0113,
132 WM_HSCROLL = 0x0114,
133 WM_VSCROLL = 0x0115,
134 WM_INITMENU = 0x0116,
135 WM_INITMENUPOPUP = 0x0117,
136 //public const uint WM_SYSTIMER = 0x0118;
137 WM_MENUSELECT = 0x011F,
138 WM_MENUCHAR = 0x0120,
139 WM_ENTERIDLE = 0x0121,
140 WM_MENURBUTTONUP = 0x0122,
141 WM_MENUDRAG = 0x0123,
142 WM_MENUGETOBJECT = 0x0124,
143 WM_UNINITMENUPOPUP = 0x0125,
144 WM_MENUCOMMAND = 0x0126,
145 //public const uint WM_CHANGEUISTATE = 0x0127;
146 //public const uint WM_UPDATEUISTATE = 0x0128;
147 //public const uint WM_QUERYUISTATE = 0x0129;
149 //public const uint WM_LBTRACKPOINT = 0x0131;
150 WM_CTLCOLORMSGBOX = 0x0132,
151 WM_CTLCOLOREDIT = 0x0133,
152 WM_CTLCOLORLISTBOX = 0x0134,
153 WM_CTLCOLORBTN = 0x0135,
154 WM_CTLCOLORDLG = 0x0136,
155 WM_CTLCOLORSCROLLBAR = 0x0137,
156 WM_CTLCOLORSTATIC = 0x0138,
157 WM_MOUSEMOVE = 0x0200,
158 WM_MOUSEFIRST = 0x0200,
159 WM_LBUTTONDOWN = 0x0201,
160 WM_LBUTTONUP = 0x0202,
161 WM_LBUTTONDBLCLK = 0x0203,
162 WM_RBUTTONDOWN = 0x0204,
163 WM_RBUTTONUP = 0x0205,
164 WM_RBUTTONDBLCLK = 0x0206,
165 WM_MBUTTONDOWN = 0x0207,
166 WM_MBUTTONUP = 0x0208,
167 WM_MBUTTONDBLCLK = 0x0209,
168 WM_MOUSEWHEEL = 0x020A,
169 WM_MOUSELAST = 0x020D,
170 //public const uint WM_XBUTTONDOWN = 0x020B;
171 //public const uint WM_XBUTTONUP = 0x020C;
172 //public const uint WM_XBUTTONDBLCLK = 0x020D;
173 WM_PARENTNOTIFY = 0x0210,
174 WM_ENTERMENULOOP = 0x0211,
175 WM_EXITMENULOOP = 0x0212,
176 WM_NEXTMENU = 0x0213,
177 WM_SIZING = 0x0214,
178 WM_CAPTURECHANGED = 0x0215,
179 WM_MOVING = 0x0216,
180 //public const uint WM_POWERBROADCAST = 0x0218;
181 WM_DEVICECHANGE = 0x0219,
182 WM_MDICREATE = 0x0220,
183 WM_MDIDESTROY = 0x0221,
184 WM_MDIACTIVATE = 0x0222,
185 WM_MDIRESTORE = 0x0223,
186 WM_MDINEXT = 0x0224,
187 WM_MDIMAXIMIZE = 0x0225,
188 WM_MDITILE = 0x0226,
189 WM_MDICASCADE = 0x0227,
190 WM_MDIICONARRANGE = 0x0228,
191 WM_MDIGETACTIVE = 0x0229,
192 /* D&D messages */
193 //public const uint WM_DROPOBJECT = 0x022A;
194 //public const uint WM_QUERYDROPOBJECT = 0x022B;
195 //public const uint WM_BEGINDRAG = 0x022C;
196 //public const uint WM_DRAGLOOP = 0x022D;
197 //public const uint WM_DRAGSELECT = 0x022E;
198 //public const uint WM_DRAGMOVE = 0x022F;
199 WM_MDISETMENU = 0x0230,
200 WM_ENTERSIZEMOVE = 0x0231,
201 WM_EXITSIZEMOVE = 0x0232,
202 WM_DROPFILES = 0x0233,
203 WM_MDIREFRESHMENU = 0x0234,
204 WM_IME_SETCONTEXT = 0x0281,
205 WM_IME_NOTIFY = 0x0282,
206 WM_IME_CONTROL = 0x0283,
207 WM_IME_COMPOSITIONFULL = 0x0284,
208 WM_IME_SELECT = 0x0285,
209 WM_IME_CHAR = 0x0286,
210 WM_IME_REQUEST = 0x0288,
211 WM_IME_KEYDOWN = 0x0290,
212 WM_IME_KEYUP = 0x0291,
213 WM_MOUSEHOVER = 0x02A1,
214 WM_MOUSELEAVE = 0x02A3,
215 WM_CUT = 0x0300,
216 WM_COPY = 0x0301,
217 WM_PASTE = 0x0302,
218 WM_CLEAR = 0x0303,
219 WM_UNDO = 0x0304,
220 WM_RENDERFORMAT = 0x0305,
221 WM_RENDERALLFORMATS = 0x0306,
222 WM_DESTROYCLIPBOARD = 0x0307,
223 WM_DRAWCLIPBOARD = 0x0308,
224 WM_PAINTCLIPBOARD = 0x0309,
225 WM_VSCROLLCLIPBOARD = 0x030A,
226 WM_SIZECLIPBOARD = 0x030B,
227 WM_ASKCBFORMATNAME = 0x030C,
228 WM_CHANGECBCHAIN = 0x030D,
229 WM_HSCROLLCLIPBOARD = 0x030E,
230 WM_QUERYNEWPALETTE = 0x030F,
231 WM_PALETTEISCHANGING = 0x0310,
232 WM_PALETTECHANGED = 0x0311,
233 WM_HOTKEY = 0x0312,
234 WM_PRINT = 0x0317,
235 WM_PRINTCLIENT = 0x0318,
236 WM_HANDHELDFIRST = 0x0358,
237 WM_HANDHELDLAST = 0x035F,
238 WM_AFXFIRST = 0x0360,
239 WM_AFXLAST = 0x037F,
240 WM_PENWINFIRST = 0x0380,
241 WM_PENWINLAST = 0x038F,
242 WM_APP = 0x8000,
243 WM_USER = 0x0400,
245 // Our "private" ones
246 WM_MOUSE_ENTER = 0x0401,
247 WM_MOUSE_LEAVE = 0x0402,
248 WM_ASYNC_MESSAGE = 0x0403,
249 WM_REFLECT = WM_USER + 0x1c00