1 | using System;
|
---|
2 |
|
---|
3 | namespace WeifenLuo.WinFormsUI.Docking.Win32
|
---|
4 | {
|
---|
5 | [Flags]
|
---|
6 | internal enum FlagsSetWindowPos : uint
|
---|
7 | {
|
---|
8 | SWP_NOSIZE = 0x0001,
|
---|
9 | SWP_NOMOVE = 0x0002,
|
---|
10 | SWP_NOZORDER = 0x0004,
|
---|
11 | SWP_NOREDRAW = 0x0008,
|
---|
12 | SWP_NOACTIVATE = 0x0010,
|
---|
13 | SWP_FRAMECHANGED = 0x0020,
|
---|
14 | SWP_SHOWWINDOW = 0x0040,
|
---|
15 | SWP_HIDEWINDOW = 0x0080,
|
---|
16 | SWP_NOCOPYBITS = 0x0100,
|
---|
17 | SWP_NOOWNERZORDER = 0x0200,
|
---|
18 | SWP_NOSENDCHANGING = 0x0400,
|
---|
19 | SWP_DRAWFRAME = 0x0020,
|
---|
20 | SWP_NOREPOSITION = 0x0200,
|
---|
21 | SWP_DEFERERASE = 0x2000,
|
---|
22 | SWP_ASYNCWINDOWPOS = 0x4000
|
---|
23 | }
|
---|
24 |
|
---|
25 | internal enum ShowWindowStyles : short
|
---|
26 | {
|
---|
27 | SW_HIDE = 0,
|
---|
28 | SW_SHOWNORMAL = 1,
|
---|
29 | SW_NORMAL = 1,
|
---|
30 | SW_SHOWMINIMIZED = 2,
|
---|
31 | SW_SHOWMAXIMIZED = 3,
|
---|
32 | SW_MAXIMIZE = 3,
|
---|
33 | SW_SHOWNOACTIVATE = 4,
|
---|
34 | SW_SHOW = 5,
|
---|
35 | SW_MINIMIZE = 6,
|
---|
36 | SW_SHOWMINNOACTIVE = 7,
|
---|
37 | SW_SHOWNA = 8,
|
---|
38 | SW_RESTORE = 9,
|
---|
39 | SW_SHOWDEFAULT = 10,
|
---|
40 | SW_FORCEMINIMIZE = 11,
|
---|
41 | SW_MAX = 11
|
---|
42 | }
|
---|
43 |
|
---|
44 | internal enum WindowStyles : uint
|
---|
45 | {
|
---|
46 | WS_OVERLAPPED = 0x00000000,
|
---|
47 | WS_POPUP = 0x80000000,
|
---|
48 | WS_CHILD = 0x40000000,
|
---|
49 | WS_MINIMIZE = 0x20000000,
|
---|
50 | WS_VISIBLE = 0x10000000,
|
---|
51 | WS_DISABLED = 0x08000000,
|
---|
52 | WS_CLIPSIBLINGS = 0x04000000,
|
---|
53 | WS_CLIPCHILDREN = 0x02000000,
|
---|
54 | WS_MAXIMIZE = 0x01000000,
|
---|
55 | WS_CAPTION = 0x00C00000,
|
---|
56 | WS_BORDER = 0x00800000,
|
---|
57 | WS_DLGFRAME = 0x00400000,
|
---|
58 | WS_VSCROLL = 0x00200000,
|
---|
59 | WS_HSCROLL = 0x00100000,
|
---|
60 | WS_SYSMENU = 0x00080000,
|
---|
61 | WS_THICKFRAME = 0x00040000,
|
---|
62 | WS_GROUP = 0x00020000,
|
---|
63 | WS_TABSTOP = 0x00010000,
|
---|
64 | WS_MINIMIZEBOX = 0x00020000,
|
---|
65 | WS_MAXIMIZEBOX = 0x00010000,
|
---|
66 | WS_TILED = 0x00000000,
|
---|
67 | WS_ICONIC = 0x20000000,
|
---|
68 | WS_SIZEBOX = 0x00040000,
|
---|
69 | WS_POPUPWINDOW = 0x80880000,
|
---|
70 | WS_OVERLAPPEDWINDOW = 0x00CF0000,
|
---|
71 | WS_TILEDWINDOW = 0x00CF0000,
|
---|
72 | WS_CHILDWINDOW = 0x40000000
|
---|
73 | }
|
---|
74 |
|
---|
75 | internal enum WindowExStyles
|
---|
76 | {
|
---|
77 | WS_EX_DLGMODALFRAME = 0x00000001,
|
---|
78 | WS_EX_NOPARENTNOTIFY = 0x00000004,
|
---|
79 | WS_EX_TOPMOST = 0x00000008,
|
---|
80 | WS_EX_ACCEPTFILES = 0x00000010,
|
---|
81 | WS_EX_TRANSPARENT = 0x00000020,
|
---|
82 | WS_EX_MDICHILD = 0x00000040,
|
---|
83 | WS_EX_TOOLWINDOW = 0x00000080,
|
---|
84 | WS_EX_WINDOWEDGE = 0x00000100,
|
---|
85 | WS_EX_CLIENTEDGE = 0x00000200,
|
---|
86 | WS_EX_CONTEXTHELP = 0x00000400,
|
---|
87 | WS_EX_RIGHT = 0x00001000,
|
---|
88 | WS_EX_LEFT = 0x00000000,
|
---|
89 | WS_EX_RTLREADING = 0x00002000,
|
---|
90 | WS_EX_LTRREADING = 0x00000000,
|
---|
91 | WS_EX_LEFTSCROLLBAR = 0x00004000,
|
---|
92 | WS_EX_RIGHTSCROLLBAR = 0x00000000,
|
---|
93 | WS_EX_CONTROLPARENT = 0x00010000,
|
---|
94 | WS_EX_STATICEDGE = 0x00020000,
|
---|
95 | WS_EX_APPWINDOW = 0x00040000,
|
---|
96 | WS_EX_OVERLAPPEDWINDOW = 0x00000300,
|
---|
97 | WS_EX_PALETTEWINDOW = 0x00000188,
|
---|
98 | WS_EX_LAYERED = 0x00080000,
|
---|
99 | WS_EX_NOACTIVATE = 0x08000000
|
---|
100 | }
|
---|
101 |
|
---|
102 | internal enum Msgs
|
---|
103 | {
|
---|
104 | WM_NULL = 0x0000,
|
---|
105 | WM_CREATE = 0x0001,
|
---|
106 | WM_DESTROY = 0x0002,
|
---|
107 | WM_MOVE = 0x0003,
|
---|
108 | WM_SIZE = 0x0005,
|
---|
109 | WM_ACTIVATE = 0x0006,
|
---|
110 | WM_SETFOCUS = 0x0007,
|
---|
111 | WM_KILLFOCUS = 0x0008,
|
---|
112 | WM_ENABLE = 0x000A,
|
---|
113 | WM_SETREDRAW = 0x000B,
|
---|
114 | WM_SETTEXT = 0x000C,
|
---|
115 | WM_GETTEXT = 0x000D,
|
---|
116 | WM_GETTEXTLENGTH = 0x000E,
|
---|
117 | WM_PAINT = 0x000F,
|
---|
118 | WM_CLOSE = 0x0010,
|
---|
119 | WM_QUERYENDSESSION = 0x0011,
|
---|
120 | WM_QUIT = 0x0012,
|
---|
121 | WM_QUERYOPEN = 0x0013,
|
---|
122 | WM_ERASEBKGND = 0x0014,
|
---|
123 | WM_SYSCOLORCHANGE = 0x0015,
|
---|
124 | WM_ENDSESSION = 0x0016,
|
---|
125 | WM_SHOWWINDOW = 0x0018,
|
---|
126 | WM_WININICHANGE = 0x001A,
|
---|
127 | WM_SETTINGCHANGE = 0x001A,
|
---|
128 | WM_DEVMODECHANGE = 0x001B,
|
---|
129 | WM_ACTIVATEAPP = 0x001C,
|
---|
130 | WM_FONTCHANGE = 0x001D,
|
---|
131 | WM_TIMECHANGE = 0x001E,
|
---|
132 | WM_CANCELMODE = 0x001F,
|
---|
133 | WM_SETCURSOR = 0x0020,
|
---|
134 | WM_MOUSEACTIVATE = 0x0021,
|
---|
135 | WM_CHILDACTIVATE = 0x0022,
|
---|
136 | WM_QUEUESYNC = 0x0023,
|
---|
137 | WM_GETMINMAXINFO = 0x0024,
|
---|
138 | WM_PAINTICON = 0x0026,
|
---|
139 | WM_ICONERASEBKGND = 0x0027,
|
---|
140 | WM_NEXTDLGCTL = 0x0028,
|
---|
141 | WM_SPOOLERSTATUS = 0x002A,
|
---|
142 | WM_DRAWITEM = 0x002B,
|
---|
143 | WM_MEASUREITEM = 0x002C,
|
---|
144 | WM_DELETEITEM = 0x002D,
|
---|
145 | WM_VKEYTOITEM = 0x002E,
|
---|
146 | WM_CHARTOITEM = 0x002F,
|
---|
147 | WM_SETFONT = 0x0030,
|
---|
148 | WM_GETFONT = 0x0031,
|
---|
149 | WM_SETHOTKEY = 0x0032,
|
---|
150 | WM_GETHOTKEY = 0x0033,
|
---|
151 | WM_QUERYDRAGICON = 0x0037,
|
---|
152 | WM_COMPAREITEM = 0x0039,
|
---|
153 | WM_GETOBJECT = 0x003D,
|
---|
154 | WM_COMPACTING = 0x0041,
|
---|
155 | WM_COMMNOTIFY = 0x0044 ,
|
---|
156 | WM_WINDOWPOSCHANGING = 0x0046,
|
---|
157 | WM_WINDOWPOSCHANGED = 0x0047,
|
---|
158 | WM_POWER = 0x0048,
|
---|
159 | WM_COPYDATA = 0x004A,
|
---|
160 | WM_CANCELJOURNAL = 0x004B,
|
---|
161 | WM_NOTIFY = 0x004E,
|
---|
162 | WM_INPUTLANGCHANGEREQUEST = 0x0050,
|
---|
163 | WM_INPUTLANGCHANGE = 0x0051,
|
---|
164 | WM_TCARD = 0x0052,
|
---|
165 | WM_HELP = 0x0053,
|
---|
166 | WM_USERCHANGED = 0x0054,
|
---|
167 | WM_NOTIFYFORMAT = 0x0055,
|
---|
168 | WM_CONTEXTMENU = 0x007B,
|
---|
169 | WM_STYLECHANGING = 0x007C,
|
---|
170 | WM_STYLECHANGED = 0x007D,
|
---|
171 | WM_DISPLAYCHANGE = 0x007E,
|
---|
172 | WM_GETICON = 0x007F,
|
---|
173 | WM_SETICON = 0x0080,
|
---|
174 | WM_NCCREATE = 0x0081,
|
---|
175 | WM_NCDESTROY = 0x0082,
|
---|
176 | WM_NCCALCSIZE = 0x0083,
|
---|
177 | WM_NCHITTEST = 0x0084,
|
---|
178 | WM_NCPAINT = 0x0085,
|
---|
179 | WM_NCACTIVATE = 0x0086,
|
---|
180 | WM_GETDLGCODE = 0x0087,
|
---|
181 | WM_SYNCPAINT = 0x0088,
|
---|
182 | WM_NCMOUSEMOVE = 0x00A0,
|
---|
183 | WM_NCLBUTTONDOWN = 0x00A1,
|
---|
184 | WM_NCLBUTTONUP = 0x00A2,
|
---|
185 | WM_NCLBUTTONDBLCLK = 0x00A3,
|
---|
186 | WM_NCRBUTTONDOWN = 0x00A4,
|
---|
187 | WM_NCRBUTTONUP = 0x00A5,
|
---|
188 | WM_NCRBUTTONDBLCLK = 0x00A6,
|
---|
189 | WM_NCMBUTTONDOWN = 0x00A7,
|
---|
190 | WM_NCMBUTTONUP = 0x00A8,
|
---|
191 | WM_NCMBUTTONDBLCLK = 0x00A9,
|
---|
192 | WM_KEYDOWN = 0x0100,
|
---|
193 | WM_KEYUP = 0x0101,
|
---|
194 | WM_CHAR = 0x0102,
|
---|
195 | WM_DEADCHAR = 0x0103,
|
---|
196 | WM_SYSKEYDOWN = 0x0104,
|
---|
197 | WM_SYSKEYUP = 0x0105,
|
---|
198 | WM_SYSCHAR = 0x0106,
|
---|
199 | WM_SYSDEADCHAR = 0x0107,
|
---|
200 | WM_KEYLAST = 0x0108,
|
---|
201 | WM_IME_STARTCOMPOSITION = 0x010D,
|
---|
202 | WM_IME_ENDCOMPOSITION = 0x010E,
|
---|
203 | WM_IME_COMPOSITION = 0x010F,
|
---|
204 | WM_IME_KEYLAST = 0x010F,
|
---|
205 | WM_INITDIALOG = 0x0110,
|
---|
206 | WM_COMMAND = 0x0111,
|
---|
207 | WM_SYSCOMMAND = 0x0112,
|
---|
208 | WM_TIMER = 0x0113,
|
---|
209 | WM_HSCROLL = 0x0114,
|
---|
210 | WM_VSCROLL = 0x0115,
|
---|
211 | WM_INITMENU = 0x0116,
|
---|
212 | WM_INITMENUPOPUP = 0x0117,
|
---|
213 | WM_MENUSELECT = 0x011F,
|
---|
214 | WM_MENUCHAR = 0x0120,
|
---|
215 | WM_ENTERIDLE = 0x0121,
|
---|
216 | WM_MENURBUTTONUP = 0x0122,
|
---|
217 | WM_MENUDRAG = 0x0123,
|
---|
218 | WM_MENUGETOBJECT = 0x0124,
|
---|
219 | WM_UNINITMENUPOPUP = 0x0125,
|
---|
220 | WM_MENUCOMMAND = 0x0126,
|
---|
221 | WM_CTLCOLORMSGBOX = 0x0132,
|
---|
222 | WM_CTLCOLOREDIT = 0x0133,
|
---|
223 | WM_CTLCOLORLISTBOX = 0x0134,
|
---|
224 | WM_CTLCOLORBTN = 0x0135,
|
---|
225 | WM_CTLCOLORDLG = 0x0136,
|
---|
226 | WM_CTLCOLORSCROLLBAR = 0x0137,
|
---|
227 | WM_CTLCOLORSTATIC = 0x0138,
|
---|
228 | WM_MOUSEMOVE = 0x0200,
|
---|
229 | WM_LBUTTONDOWN = 0x0201,
|
---|
230 | WM_LBUTTONUP = 0x0202,
|
---|
231 | WM_LBUTTONDBLCLK = 0x0203,
|
---|
232 | WM_RBUTTONDOWN = 0x0204,
|
---|
233 | WM_RBUTTONUP = 0x0205,
|
---|
234 | WM_RBUTTONDBLCLK = 0x0206,
|
---|
235 | WM_MBUTTONDOWN = 0x0207,
|
---|
236 | WM_MBUTTONUP = 0x0208,
|
---|
237 | WM_MBUTTONDBLCLK = 0x0209,
|
---|
238 | WM_MOUSEWHEEL = 0x020A,
|
---|
239 | WM_PARENTNOTIFY = 0x0210,
|
---|
240 | WM_ENTERMENULOOP = 0x0211,
|
---|
241 | WM_EXITMENULOOP = 0x0212,
|
---|
242 | WM_NEXTMENU = 0x0213,
|
---|
243 | WM_SIZING = 0x0214,
|
---|
244 | WM_CAPTURECHANGED = 0x0215,
|
---|
245 | WM_MOVING = 0x0216,
|
---|
246 | WM_DEVICECHANGE = 0x0219,
|
---|
247 | WM_MDICREATE = 0x0220,
|
---|
248 | WM_MDIDESTROY = 0x0221,
|
---|
249 | WM_MDIACTIVATE = 0x0222,
|
---|
250 | WM_MDIRESTORE = 0x0223,
|
---|
251 | WM_MDINEXT = 0x0224,
|
---|
252 | WM_MDIMAXIMIZE = 0x0225,
|
---|
253 | WM_MDITILE = 0x0226,
|
---|
254 | WM_MDICASCADE = 0x0227,
|
---|
255 | WM_MDIICONARRANGE = 0x0228,
|
---|
256 | WM_MDIGETACTIVE = 0x0229,
|
---|
257 | WM_MDISETMENU = 0x0230,
|
---|
258 | WM_ENTERSIZEMOVE = 0x0231,
|
---|
259 | WM_EXITSIZEMOVE = 0x0232,
|
---|
260 | WM_DROPFILES = 0x0233,
|
---|
261 | WM_MDIREFRESHMENU = 0x0234,
|
---|
262 | WM_IME_SETCONTEXT = 0x0281,
|
---|
263 | WM_IME_NOTIFY = 0x0282,
|
---|
264 | WM_IME_CONTROL = 0x0283,
|
---|
265 | WM_IME_COMPOSITIONFULL = 0x0284,
|
---|
266 | WM_IME_SELECT = 0x0285,
|
---|
267 | WM_IME_CHAR = 0x0286,
|
---|
268 | WM_IME_REQUEST = 0x0288,
|
---|
269 | WM_IME_KEYDOWN = 0x0290,
|
---|
270 | WM_IME_KEYUP = 0x0291,
|
---|
271 | WM_MOUSEHOVER = 0x02A1,
|
---|
272 | WM_MOUSELEAVE = 0x02A3,
|
---|
273 | WM_CUT = 0x0300,
|
---|
274 | WM_COPY = 0x0301,
|
---|
275 | WM_PASTE = 0x0302,
|
---|
276 | WM_CLEAR = 0x0303,
|
---|
277 | WM_UNDO = 0x0304,
|
---|
278 | WM_RENDERFORMAT = 0x0305,
|
---|
279 | WM_RENDERALLFORMATS = 0x0306,
|
---|
280 | WM_DESTROYCLIPBOARD = 0x0307,
|
---|
281 | WM_DRAWCLIPBOARD = 0x0308,
|
---|
282 | WM_PAINTCLIPBOARD = 0x0309,
|
---|
283 | WM_VSCROLLCLIPBOARD = 0x030A,
|
---|
284 | WM_SIZECLIPBOARD = 0x030B,
|
---|
285 | WM_ASKCBFORMATNAME = 0x030C,
|
---|
286 | WM_CHANGECBCHAIN = 0x030D,
|
---|
287 | WM_HSCROLLCLIPBOARD = 0x030E,
|
---|
288 | WM_QUERYNEWPALETTE = 0x030F,
|
---|
289 | WM_PALETTEISCHANGING = 0x0310,
|
---|
290 | WM_PALETTECHANGED = 0x0311,
|
---|
291 | WM_HOTKEY = 0x0312,
|
---|
292 | WM_PRINT = 0x0317,
|
---|
293 | WM_PRINTCLIENT = 0x0318,
|
---|
294 | WM_HANDHELDFIRST = 0x0358,
|
---|
295 | WM_HANDHELDLAST = 0x035F,
|
---|
296 | WM_AFXFIRST = 0x0360,
|
---|
297 | WM_AFXLAST = 0x037F,
|
---|
298 | WM_PENWINFIRST = 0x0380,
|
---|
299 | WM_PENWINLAST = 0x038F,
|
---|
300 | WM_APP = 0x8000,
|
---|
301 | WM_USER = 0x0400
|
---|
302 | }
|
---|
303 |
|
---|
304 | internal enum HitTest
|
---|
305 | {
|
---|
306 | HTERROR = -2,
|
---|
307 | HTTRANSPARENT = -1,
|
---|
308 | HTNOWHERE = 0,
|
---|
309 | HTCLIENT = 1,
|
---|
310 | HTCAPTION = 2,
|
---|
311 | HTSYSMENU = 3,
|
---|
312 | HTGROWBOX = 4,
|
---|
313 | HTSIZE = 4,
|
---|
314 | HTMENU = 5,
|
---|
315 | HTHSCROLL = 6,
|
---|
316 | HTVSCROLL = 7,
|
---|
317 | HTMINBUTTON = 8,
|
---|
318 | HTMAXBUTTON = 9,
|
---|
319 | HTLEFT = 10,
|
---|
320 | HTRIGHT = 11,
|
---|
321 | HTTOP = 12,
|
---|
322 | HTTOPLEFT = 13,
|
---|
323 | HTTOPRIGHT = 14,
|
---|
324 | HTBOTTOM = 15,
|
---|
325 | HTBOTTOMLEFT = 16,
|
---|
326 | HTBOTTOMRIGHT = 17,
|
---|
327 | HTBORDER = 18,
|
---|
328 | HTREDUCE = 8,
|
---|
329 | HTZOOM = 9 ,
|
---|
330 | HTSIZEFIRST = 10,
|
---|
331 | HTSIZELAST = 17,
|
---|
332 | HTOBJECT = 19,
|
---|
333 | HTCLOSE = 20,
|
---|
334 | HTHELP = 21
|
---|
335 | }
|
---|
336 |
|
---|
337 | internal enum ScrollBars : uint
|
---|
338 | {
|
---|
339 | SB_HORZ = 0,
|
---|
340 | SB_VERT = 1,
|
---|
341 | SB_CTL = 2,
|
---|
342 | SB_BOTH = 3
|
---|
343 | }
|
---|
344 |
|
---|
345 | internal enum GetWindowLongIndex : int
|
---|
346 | {
|
---|
347 | GWL_STYLE = -16,
|
---|
348 | GWL_EXSTYLE = -20
|
---|
349 | }
|
---|
350 |
|
---|
351 | // Hook Types
|
---|
352 | internal enum HookType : int
|
---|
353 | {
|
---|
354 | WH_JOURNALRECORD = 0,
|
---|
355 | WH_JOURNALPLAYBACK = 1,
|
---|
356 | WH_KEYBOARD = 2,
|
---|
357 | WH_GETMESSAGE = 3,
|
---|
358 | WH_CALLWNDPROC = 4,
|
---|
359 | WH_CBT = 5,
|
---|
360 | WH_SYSMSGFILTER = 6,
|
---|
361 | WH_MOUSE = 7,
|
---|
362 | WH_HARDWARE = 8,
|
---|
363 | WH_DEBUG = 9,
|
---|
364 | WH_SHELL = 10,
|
---|
365 | WH_FOREGROUNDIDLE = 11,
|
---|
366 | WH_CALLWNDPROCRET = 12,
|
---|
367 | WH_KEYBOARD_LL = 13,
|
---|
368 | WH_MOUSE_LL = 14
|
---|
369 | }
|
---|
370 | } |
---|