Enums.cs
上传用户:szlfmled
上传日期:2020-11-22
资源大小:978k
文件大小:12k
源码类别:

C#编程

开发平台:

C#

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