[2134] | 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 | }
|
---|
| 100 |
|
---|
| 101 | internal enum Msgs
|
---|
| 102 | {
|
---|
| 103 | WM_NULL = 0x0000,
|
---|
| 104 | WM_CREATE = 0x0001,
|
---|
| 105 | WM_DESTROY = 0x0002,
|
---|
| 106 | WM_MOVE = 0x0003,
|
---|
| 107 | WM_SIZE = 0x0005,
|
---|
| 108 | WM_ACTIVATE = 0x0006,
|
---|
| 109 | WM_SETFOCUS = 0x0007,
|
---|
| 110 | WM_KILLFOCUS = 0x0008,
|
---|
| 111 | WM_ENABLE = 0x000A,
|
---|
| 112 | WM_SETREDRAW = 0x000B,
|
---|
| 113 | WM_SETTEXT = 0x000C,
|
---|
| 114 | WM_GETTEXT = 0x000D,
|
---|
| 115 | WM_GETTEXTLENGTH = 0x000E,
|
---|
| 116 | WM_PAINT = 0x000F,
|
---|
| 117 | WM_CLOSE = 0x0010,
|
---|
| 118 | WM_QUERYENDSESSION = 0x0011,
|
---|
| 119 | WM_QUIT = 0x0012,
|
---|
| 120 | WM_QUERYOPEN = 0x0013,
|
---|
| 121 | WM_ERASEBKGND = 0x0014,
|
---|
| 122 | WM_SYSCOLORCHANGE = 0x0015,
|
---|
| 123 | WM_ENDSESSION = 0x0016,
|
---|
| 124 | WM_SHOWWINDOW = 0x0018,
|
---|
| 125 | WM_WININICHANGE = 0x001A,
|
---|
| 126 | WM_SETTINGCHANGE = 0x001A,
|
---|
| 127 | WM_DEVMODECHANGE = 0x001B,
|
---|
| 128 | WM_ACTIVATEAPP = 0x001C,
|
---|
| 129 | WM_FONTCHANGE = 0x001D,
|
---|
| 130 | WM_TIMECHANGE = 0x001E,
|
---|
| 131 | WM_CANCELMODE = 0x001F,
|
---|
| 132 | WM_SETCURSOR = 0x0020,
|
---|
| 133 | WM_MOUSEACTIVATE = 0x0021,
|
---|
| 134 | WM_CHILDACTIVATE = 0x0022,
|
---|
| 135 | WM_QUEUESYNC = 0x0023,
|
---|
| 136 | WM_GETMINMAXINFO = 0x0024,
|
---|
| 137 | WM_PAINTICON = 0x0026,
|
---|
| 138 | WM_ICONERASEBKGND = 0x0027,
|
---|
| 139 | WM_NEXTDLGCTL = 0x0028,
|
---|
| 140 | WM_SPOOLERSTATUS = 0x002A,
|
---|
| 141 | WM_DRAWITEM = 0x002B,
|
---|
| 142 | WM_MEASUREITEM = 0x002C,
|
---|
| 143 | WM_DELETEITEM = 0x002D,
|
---|
| 144 | WM_VKEYTOITEM = 0x002E,
|
---|
| 145 | WM_CHARTOITEM = 0x002F,
|
---|
| 146 | WM_SETFONT = 0x0030,
|
---|
| 147 | WM_GETFONT = 0x0031,
|
---|
| 148 | WM_SETHOTKEY = 0x0032,
|
---|
| 149 | WM_GETHOTKEY = 0x0033,
|
---|
| 150 | WM_QUERYDRAGICON = 0x0037,
|
---|
| 151 | WM_COMPAREITEM = 0x0039,
|
---|
| 152 | WM_GETOBJECT = 0x003D,
|
---|
| 153 | WM_COMPACTING = 0x0041,
|
---|
| 154 | WM_COMMNOTIFY = 0x0044 ,
|
---|
| 155 | WM_WINDOWPOSCHANGING = 0x0046,
|
---|
| 156 | WM_WINDOWPOSCHANGED = 0x0047,
|
---|
| 157 | WM_POWER = 0x0048,
|
---|
| 158 | WM_COPYDATA = 0x004A,
|
---|
| 159 | WM_CANCELJOURNAL = 0x004B,
|
---|
| 160 | WM_NOTIFY = 0x004E,
|
---|
| 161 | WM_INPUTLANGCHANGEREQUEST = 0x0050,
|
---|
| 162 | WM_INPUTLANGCHANGE = 0x0051,
|
---|
| 163 | WM_TCARD = 0x0052,
|
---|
| 164 | WM_HELP = 0x0053,
|
---|
| 165 | WM_USERCHANGED = 0x0054,
|
---|
| 166 | WM_NOTIFYFORMAT = 0x0055,
|
---|
| 167 | WM_CONTEXTMENU = 0x007B,
|
---|
| 168 | WM_STYLECHANGING = 0x007C,
|
---|
| 169 | WM_STYLECHANGED = 0x007D,
|
---|
| 170 | WM_DISPLAYCHANGE = 0x007E,
|
---|
| 171 | WM_GETICON = 0x007F,
|
---|
| 172 | WM_SETICON = 0x0080,
|
---|
| 173 | WM_NCCREATE = 0x0081,
|
---|
| 174 | WM_NCDESTROY = 0x0082,
|
---|
| 175 | WM_NCCALCSIZE = 0x0083,
|
---|
| 176 | WM_NCHITTEST = 0x0084,
|
---|
| 177 | WM_NCPAINT = 0x0085,
|
---|
| 178 | WM_NCACTIVATE = 0x0086,
|
---|
| 179 | WM_GETDLGCODE = 0x0087,
|
---|
| 180 | WM_SYNCPAINT = 0x0088,
|
---|
| 181 | WM_NCMOUSEMOVE = 0x00A0,
|
---|
| 182 | WM_NCLBUTTONDOWN = 0x00A1,
|
---|
| 183 | WM_NCLBUTTONUP = 0x00A2,
|
---|
| 184 | WM_NCLBUTTONDBLCLK = 0x00A3,
|
---|
| 185 | WM_NCRBUTTONDOWN = 0x00A4,
|
---|
| 186 | WM_NCRBUTTONUP = 0x00A5,
|
---|
| 187 | WM_NCRBUTTONDBLCLK = 0x00A6,
|
---|
| 188 | WM_NCMBUTTONDOWN = 0x00A7,
|
---|
| 189 | WM_NCMBUTTONUP = 0x00A8,
|
---|
| 190 | WM_NCMBUTTONDBLCLK = 0x00A9,
|
---|
| 191 | WM_KEYDOWN = 0x0100,
|
---|
| 192 | WM_KEYUP = 0x0101,
|
---|
| 193 | WM_CHAR = 0x0102,
|
---|
| 194 | WM_DEADCHAR = 0x0103,
|
---|
| 195 | WM_SYSKEYDOWN = 0x0104,
|
---|
| 196 | WM_SYSKEYUP = 0x0105,
|
---|
| 197 | WM_SYSCHAR = 0x0106,
|
---|
| 198 | WM_SYSDEADCHAR = 0x0107,
|
---|
| 199 | WM_KEYLAST = 0x0108,
|
---|
| 200 | WM_IME_STARTCOMPOSITION = 0x010D,
|
---|
| 201 | WM_IME_ENDCOMPOSITION = 0x010E,
|
---|
| 202 | WM_IME_COMPOSITION = 0x010F,
|
---|
| 203 | WM_IME_KEYLAST = 0x010F,
|
---|
| 204 | WM_INITDIALOG = 0x0110,
|
---|
| 205 | WM_COMMAND = 0x0111,
|
---|
| 206 | WM_SYSCOMMAND = 0x0112,
|
---|
| 207 | WM_TIMER = 0x0113,
|
---|
| 208 | WM_HSCROLL = 0x0114,
|
---|
| 209 | WM_VSCROLL = 0x0115,
|
---|
| 210 | WM_INITMENU = 0x0116,
|
---|
| 211 | WM_INITMENUPOPUP = 0x0117,
|
---|
| 212 | WM_MENUSELECT = 0x011F,
|
---|
| 213 | WM_MENUCHAR = 0x0120,
|
---|
| 214 | WM_ENTERIDLE = 0x0121,
|
---|
| 215 | WM_MENURBUTTONUP = 0x0122,
|
---|
| 216 | WM_MENUDRAG = 0x0123,
|
---|
| 217 | WM_MENUGETOBJECT = 0x0124,
|
---|
| 218 | WM_UNINITMENUPOPUP = 0x0125,
|
---|
| 219 | WM_MENUCOMMAND = 0x0126,
|
---|
| 220 | WM_CTLCOLORMSGBOX = 0x0132,
|
---|
| 221 | WM_CTLCOLOREDIT = 0x0133,
|
---|
| 222 | WM_CTLCOLORLISTBOX = 0x0134,
|
---|
| 223 | WM_CTLCOLORBTN = 0x0135,
|
---|
| 224 | WM_CTLCOLORDLG = 0x0136,
|
---|
| 225 | WM_CTLCOLORSCROLLBAR = 0x0137,
|
---|
| 226 | WM_CTLCOLORSTATIC = 0x0138,
|
---|
| 227 | WM_MOUSEMOVE = 0x0200,
|
---|
| 228 | WM_LBUTTONDOWN = 0x0201,
|
---|
| 229 | WM_LBUTTONUP = 0x0202,
|
---|
| 230 | WM_LBUTTONDBLCLK = 0x0203,
|
---|
| 231 | WM_RBUTTONDOWN = 0x0204,
|
---|
| 232 | WM_RBUTTONUP = 0x0205,
|
---|
| 233 | WM_RBUTTONDBLCLK = 0x0206,
|
---|
| 234 | WM_MBUTTONDOWN = 0x0207,
|
---|
| 235 | WM_MBUTTONUP = 0x0208,
|
---|
| 236 | WM_MBUTTONDBLCLK = 0x0209,
|
---|
| 237 | WM_MOUSEWHEEL = 0x020A,
|
---|
| 238 | WM_PARENTNOTIFY = 0x0210,
|
---|
| 239 | WM_ENTERMENULOOP = 0x0211,
|
---|
| 240 | WM_EXITMENULOOP = 0x0212,
|
---|
| 241 | WM_NEXTMENU = 0x0213,
|
---|
| 242 | WM_SIZING = 0x0214,
|
---|
| 243 | WM_CAPTURECHANGED = 0x0215,
|
---|
| 244 | WM_MOVING = 0x0216,
|
---|
| 245 | WM_DEVICECHANGE = 0x0219,
|
---|
| 246 | WM_MDICREATE = 0x0220,
|
---|
| 247 | WM_MDIDESTROY = 0x0221,
|
---|
| 248 | WM_MDIACTIVATE = 0x0222,
|
---|
| 249 | WM_MDIRESTORE = 0x0223,
|
---|
| 250 | WM_MDINEXT = 0x0224,
|
---|
| 251 | WM_MDIMAXIMIZE = 0x0225,
|
---|
| 252 | WM_MDITILE = 0x0226,
|
---|
| 253 | WM_MDICASCADE = 0x0227,
|
---|
| 254 | WM_MDIICONARRANGE = 0x0228,
|
---|
| 255 | WM_MDIGETACTIVE = 0x0229,
|
---|
| 256 | WM_MDISETMENU = 0x0230,
|
---|
| 257 | WM_ENTERSIZEMOVE = 0x0231,
|
---|
| 258 | WM_EXITSIZEMOVE = 0x0232,
|
---|
| 259 | WM_DROPFILES = 0x0233,
|
---|
| 260 | WM_MDIREFRESHMENU = 0x0234,
|
---|
| 261 | WM_IME_SETCONTEXT = 0x0281,
|
---|
| 262 | WM_IME_NOTIFY = 0x0282,
|
---|
| 263 | WM_IME_CONTROL = 0x0283,
|
---|
| 264 | WM_IME_COMPOSITIONFULL = 0x0284,
|
---|
| 265 | WM_IME_SELECT = 0x0285,
|
---|
| 266 | WM_IME_CHAR = 0x0286,
|
---|
| 267 | WM_IME_REQUEST = 0x0288,
|
---|
| 268 | WM_IME_KEYDOWN = 0x0290,
|
---|
| 269 | WM_IME_KEYUP = 0x0291,
|
---|
| 270 | WM_MOUSEHOVER = 0x02A1,
|
---|
| 271 | WM_MOUSELEAVE = 0x02A3,
|
---|
| 272 | WM_CUT = 0x0300,
|
---|
| 273 | WM_COPY = 0x0301,
|
---|
| 274 | WM_PASTE = 0x0302,
|
---|
| 275 | WM_CLEAR = 0x0303,
|
---|
| 276 | WM_UNDO = 0x0304,
|
---|
| 277 | WM_RENDERFORMAT = 0x0305,
|
---|
| 278 | WM_RENDERALLFORMATS = 0x0306,
|
---|
| 279 | WM_DESTROYCLIPBOARD = 0x0307,
|
---|
| 280 | WM_DRAWCLIPBOARD = 0x0308,
|
---|
| 281 | WM_PAINTCLIPBOARD = 0x0309,
|
---|
| 282 | WM_VSCROLLCLIPBOARD = 0x030A,
|
---|
| 283 | WM_SIZECLIPBOARD = 0x030B,
|
---|
| 284 | WM_ASKCBFORMATNAME = 0x030C,
|
---|
| 285 | WM_CHANGECBCHAIN = 0x030D,
|
---|
| 286 | WM_HSCROLLCLIPBOARD = 0x030E,
|
---|
| 287 | WM_QUERYNEWPALETTE = 0x030F,
|
---|
| 288 | WM_PALETTEISCHANGING = 0x0310,
|
---|
| 289 | WM_PALETTECHANGED = 0x0311,
|
---|
| 290 | WM_HOTKEY = 0x0312,
|
---|
| 291 | WM_PRINT = 0x0317,
|
---|
| 292 | WM_PRINTCLIENT = 0x0318,
|
---|
| 293 | WM_HANDHELDFIRST = 0x0358,
|
---|
| 294 | WM_HANDHELDLAST = 0x035F,
|
---|
| 295 | WM_AFXFIRST = 0x0360,
|
---|
| 296 | WM_AFXLAST = 0x037F,
|
---|
| 297 | WM_PENWINFIRST = 0x0380,
|
---|
| 298 | WM_PENWINLAST = 0x038F,
|
---|
| 299 | WM_APP = 0x8000,
|
---|
| 300 | WM_USER = 0x0400
|
---|
| 301 | }
|
---|
| 302 |
|
---|
| 303 | internal enum HitTest
|
---|
| 304 | {
|
---|
| 305 | HTERROR = -2,
|
---|
| 306 | HTTRANSPARENT = -1,
|
---|
| 307 | HTNOWHERE = 0,
|
---|
| 308 | HTCLIENT = 1,
|
---|
| 309 | HTCAPTION = 2,
|
---|
| 310 | HTSYSMENU = 3,
|
---|
| 311 | HTGROWBOX = 4,
|
---|
| 312 | HTSIZE = 4,
|
---|
| 313 | HTMENU = 5,
|
---|
| 314 | HTHSCROLL = 6,
|
---|
| 315 | HTVSCROLL = 7,
|
---|
| 316 | HTMINBUTTON = 8,
|
---|
| 317 | HTMAXBUTTON = 9,
|
---|
| 318 | HTLEFT = 10,
|
---|
| 319 | HTRIGHT = 11,
|
---|
| 320 | HTTOP = 12,
|
---|
| 321 | HTTOPLEFT = 13,
|
---|
| 322 | HTTOPRIGHT = 14,
|
---|
| 323 | HTBOTTOM = 15,
|
---|
| 324 | HTBOTTOMLEFT = 16,
|
---|
| 325 | HTBOTTOMRIGHT = 17,
|
---|
| 326 | HTBORDER = 18,
|
---|
| 327 | HTREDUCE = 8,
|
---|
| 328 | HTZOOM = 9 ,
|
---|
| 329 | HTSIZEFIRST = 10,
|
---|
| 330 | HTSIZELAST = 17,
|
---|
| 331 | HTOBJECT = 19,
|
---|
| 332 | HTCLOSE = 20,
|
---|
| 333 | HTHELP = 21
|
---|
| 334 | }
|
---|
| 335 |
|
---|
| 336 | internal enum ScrollBars : uint
|
---|
| 337 | {
|
---|
| 338 | SB_HORZ = 0,
|
---|
| 339 | SB_VERT = 1,
|
---|
| 340 | SB_CTL = 2,
|
---|
| 341 | SB_BOTH = 3
|
---|
| 342 | }
|
---|
| 343 |
|
---|
| 344 | internal enum GetWindowLongIndex : int
|
---|
| 345 | {
|
---|
| 346 | GWL_STYLE = -16,
|
---|
| 347 | GWL_EXSTYLE = -20
|
---|
| 348 | }
|
---|
| 349 |
|
---|
| 350 | // Hook Types
|
---|
| 351 | internal enum HookType : int
|
---|
| 352 | {
|
---|
| 353 | WH_JOURNALRECORD = 0,
|
---|
| 354 | WH_JOURNALPLAYBACK = 1,
|
---|
| 355 | WH_KEYBOARD = 2,
|
---|
| 356 | WH_GETMESSAGE = 3,
|
---|
| 357 | WH_CALLWNDPROC = 4,
|
---|
| 358 | WH_CBT = 5,
|
---|
| 359 | WH_SYSMSGFILTER = 6,
|
---|
| 360 | WH_MOUSE = 7,
|
---|
| 361 | WH_HARDWARE = 8,
|
---|
| 362 | WH_DEBUG = 9,
|
---|
| 363 | WH_SHELL = 10,
|
---|
| 364 | WH_FOREGROUNDIDLE = 11,
|
---|
| 365 | WH_CALLWNDPROCRET = 12,
|
---|
| 366 | WH_KEYBOARD_LL = 13,
|
---|
| 367 | WH_MOUSE_LL = 14
|
---|
| 368 | }
|
---|
| 369 | } |
---|