using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; namespace WinTabControl.Win32 { partial class User32 { #region Symbolic Constants internal const byte _AC_SRC_OVER = 0x00; internal const byte _AC_SRC_ALPHA = 0x01; internal const int _LWA_ALPHA = 0x00000002; internal const int _PAT_INVERT = 0x5A0049; internal const int _HT_CAPTION = 0x2; internal const int _HT_CLIENT = 1; internal const int _HT_TRANSPARENT = -1; internal const int _TCM_HITTEST = 0x130D; //internal const int _SRC_COPY = 0xCC0020; //internal const int _CS_DROPSHADOW = 0x20000; //internal const int _TCM_ADJUSTRECT = 0x1328; //internal const int _TCN_FIRST = -550; //internal const int _TCN_SELCHANGE = -551; //internal const int _TCN_SELCHANGING = -552; #endregion [Flags] internal enum TabControlHitTest { /// /// The position is not over a tab. /// TCHT_NOWHERE = 1, /// /// The position is over a tab's icon. /// TCHT_ONITEMICON = 2, /// /// The position is over a tab's text. /// TCHT_ONITEMLABEL = 4, /// /// The position is over a tab but not over its icon or its text. For owner-drawn tab controls, this value is specified if the position is anywhere over a tab. /// TCHT_ONITEM is a bitwise-OR operation on TCHT_ONITEMICON and TCHT_ONITEMLABEL. /// TCHT_ONITEM = TCHT_ONITEMICON | TCHT_ONITEMLABEL }; /* Virtual Keys Enum for Tab Control Notifications[TCN_FIRST, TCN_SELCHANGE, TCN_SELCHANGING] /// /// Enumeration for virtual keys. /// public enum VirtualKeys : ushort { /// /// TAB key /// Tab = 0x09, /// /// ENTER key /// Return = 0x0D, /// /// ESCAPE key /// Escape = 0x1B, /// /// SHIFT key /// Shift = 0x10, /// /// CTRL key /// Control = 0x11, /// /// END key /// End = 0x23, /// /// HOME key /// Home = 0x24, /// /// LEFT ARROW key /// Left = 0x25, /// /// UP ARROW key /// Up = 0x26, /// /// RIGHT ARROW key /// Right = 0x27, /// /// DOWN ARROW key /// Down = 0x28, /// /// INS key /// Insert = 0x2D, /// /// DEL key /// Delete = 0x2E, /// /// F1 key /// F1 = 0x70 }; */ /// /// Specifies values from SetWindowPosZ enumeration. /// internal enum SetWindowPosZ { /// /// Specified HWND_TOP enumeration value. /// HWND_TOP = 0, /// /// Specified HWND_BOTTOM enumeration value. /// HWND_BOTTOM = 1, /// /// Specified HWND_TOPMOST enumeration value. /// HWND_TOPMOST = -1, /// /// Specified HWND_NOTOPMOST enumeration value. /// HWND_NOTOPMOST = -2 }; //[CLSCompliant(false)] [Flags] internal enum FlagsSetWindowPos : uint { SWP_NOSIZE = 0x0001, SWP_NOMOVE = 0x0002, SWP_NOZORDER = 0x0004, SWP_NOREDRAW = 0x0008, SWP_NOACTIVATE = 0x0010, SWP_FRAMECHANGED = 0x0020, SWP_SHOWWINDOW = 0x0040, SWP_HIDEWINDOW = 0x0080, SWP_NOCOPYBITS = 0x0100, SWP_NOOWNERZORDER = 0x0200, SWP_NOSENDCHANGING = 0x0400, SWP_DRAWFRAME = 0x0020, SWP_NOREPOSITION = 0x0200, SWP_DEFERERASE = 0x2000, SWP_ASYNCWINDOWPOS = 0x4000 }; [Flags] internal enum RedrawWindowFlags : uint { /// /// Invalidates the rectangle or region that you specify in lprcUpdate or hrgnUpdate. /// You can set only one of these parameters to a non-NULL value. If both are NULL, RDW_INVALIDATE invalidates the entire window. /// Invalidate = 0x1, /// Causes the OS to post a WM_PAINT message to the window regardless of whether a portion of the window is invalid. InternalPaint = 0x2, /// /// Causes the window to receive a WM_ERASEBKGND message when the window is repainted. /// Specify this value in combination with the RDW_INVALIDATE value; otherwise, RDW_ERASE has no effect. /// Erase = 0x4, /// /// Validates the rectangle or region that you specify in lprcUpdate or hrgnUpdate. /// You can set only one of these parameters to a non-NULL value. If both are NULL, RDW_VALIDATE validates the entire window. /// This value does not affect internal WM_PAINT messages. /// Validate = 0x8, NoInternalPaint = 0x10, /// Suppresses any pending WM_ERASEBKGND messages. NoErase = 0x20, /// Excludes child windows, if any, from the repainting operation. NoChildren = 0x40, /// Includes child windows, if any, in the repainting operation. AllChildren = 0x80, /// Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND and WM_PAINT messages before the RedrawWindow returns, if necessary. UpdateNow = 0x100, /// /// Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND messages before RedrawWindow returns, if necessary. /// The affected windows receive WM_PAINT messages at the ordinary time. /// EraseNow = 0x200, Frame = 0x400, NoFrame = 0x800 }; internal enum ShowWindowStyles { SW_HIDE = 0, SW_SHOWNORMAL = 1, SW_NORMAL = 1, SW_SHOWMINIMIZED = 2, SW_SHOWMAXIMIZED = 3, SW_MAXIMIZE = 3, SW_SHOWNOACTIVATE = 4, SW_SHOW = 5, SW_MINIMIZE = 6, SW_SHOWMINNOACTIVE = 7, SW_SHOWNA = 8, SW_RESTORE = 9, SW_SHOWDEFAULT = 10, SW_FORCEMINIMIZE = 11, SW_MAX = 11 }; #region Windows Messages /// /// Specifies values from Msgs enumeration. /// internal enum Msgs { /// /// Specified WM_NULL enumeration value. /// WM_NULL = 0x0000, /// /// Specified WM_CREATE enumeration value. /// WM_CREATE = 0x0001, /// /// Specified WM_DESTROY enumeration value. /// WM_DESTROY = 0x0002, /// /// Specified WM_MOVE enumeration value. /// WM_MOVE = 0x0003, /// /// Specified WM_SIZE enumeration value. /// WM_SIZE = 0x0005, /// /// Specified WM_ACTIVATE enumeration value. /// WM_ACTIVATE = 0x0006, /// /// Specified WM_SETFOCUS enumeration value. /// WM_SETFOCUS = 0x0007, /// /// Specified WM_KILLFOCUS enumeration value. /// WM_KILLFOCUS = 0x0008, /// /// Specified WM_ENABLE enumeration value. /// WM_ENABLE = 0x000A, /// /// Specified WM_SETREDRAW enumeration value. /// WM_SETREDRAW = 0x000B, /// /// Specified WM_SETTEXT enumeration value. /// WM_SETTEXT = 0x000C, /// /// Specified WM_GETTEXT enumeration value. /// WM_GETTEXT = 0x000D, /// /// Specified WM_GETTEXTLENGTH enumeration value. /// WM_GETTEXTLENGTH = 0x000E, /// /// Specified WM_PAINT enumeration value. /// WM_PAINT = 0x000F, /// /// Specified WM_CLOSE enumeration value. /// WM_CLOSE = 0x0010, /// /// Specified WM_QUERYENDSESSION enumeration value. /// WM_QUERYENDSESSION = 0x0011, /// /// Specified WM_QUIT enumeration value. /// WM_QUIT = 0x0012, /// /// Specified WM_QUERYOPEN enumeration value. /// WM_QUERYOPEN = 0x0013, /// /// Specified WM_ERASEBKGND enumeration value. /// WM_ERASEBKGND = 0x0014, /// /// Specified WM_SYSCOLORCHANGE enumeration value. /// WM_SYSCOLORCHANGE = 0x0015, /// /// Specified WM_ENDSESSION enumeration value. /// WM_ENDSESSION = 0x0016, /// /// Specified WM_SHOWWINDOW enumeration value. /// WM_SHOWWINDOW = 0x0018, /// /// Specified WM_WININICHANGE enumeration value. /// WM_WININICHANGE = 0x001A, /// /// Specified WM_SETTINGCHANGE enumeration value. /// WM_SETTINGCHANGE = 0x001A, /// /// Specified WM_DEVMODECHANGE enumeration value. /// WM_DEVMODECHANGE = 0x001B, /// /// Specified WM_ACTIVATEAPP enumeration value. /// WM_ACTIVATEAPP = 0x001C, /// /// Specified WM_FONTCHANGE enumeration value. /// WM_FONTCHANGE = 0x001D, /// /// Specified WM_TIMECHANGE enumeration value. /// WM_TIMECHANGE = 0x001E, /// /// Specified WM_CANCELMODE enumeration value. /// WM_CANCELMODE = 0x001F, /// /// Specified WM_SETCURSOR enumeration value. /// WM_SETCURSOR = 0x0020, /// /// Specified WM_MOUSEACTIVATE enumeration value. /// WM_MOUSEACTIVATE = 0x0021, /// /// Specified WM_CHILDACTIVATE enumeration value. /// WM_CHILDACTIVATE = 0x0022, /// /// Specified WM_QUEUESYNC enumeration value. /// WM_QUEUESYNC = 0x0023, /// /// Specified WM_GETMINMAXINFO enumeration value. /// WM_GETMINMAXINFO = 0x0024, /// /// Specified WM_PAINTICON enumeration value. /// WM_PAINTICON = 0x0026, /// /// Specified WM_ICONERASEBKGND enumeration value. /// WM_ICONERASEBKGND = 0x0027, /// /// Specified WM_NEXTDLGCTL enumeration value. /// WM_NEXTDLGCTL = 0x0028, /// /// Specified WM_SPOOLERSTATUS enumeration value. /// WM_SPOOLERSTATUS = 0x002A, /// /// Specified WM_DRAWITEM enumeration value. /// WM_DRAWITEM = 0x002B, /// /// Specified WM_MEASUREITEM enumeration value. /// WM_MEASUREITEM = 0x002C, /// /// Specified WM_DELETEITEM enumeration value. /// WM_DELETEITEM = 0x002D, /// /// Specified WM_VKEYTOITEM enumeration value. /// WM_VKEYTOITEM = 0x002E, /// /// Specified WM_CHARTOITEM enumeration value. /// WM_CHARTOITEM = 0x002F, /// /// Specified WM_SETFONT enumeration value. /// WM_SETFONT = 0x0030, /// /// Specified WM_GETFONT enumeration value. /// WM_GETFONT = 0x0031, /// /// Specified WM_SETHOTKEY enumeration value. /// WM_SETHOTKEY = 0x0032, /// /// Specified WM_GETHOTKEY enumeration value. /// WM_GETHOTKEY = 0x0033, /// /// Specified WM_QUERYDRAGICON enumeration value. /// WM_QUERYDRAGICON = 0x0037, /// /// Specified WM_COMPAREITEM enumeration value. /// WM_COMPAREITEM = 0x0039, /// /// Specified WM_GETOBJECT enumeration value. /// WM_GETOBJECT = 0x003D, /// /// Specified WM_COMPACTING enumeration value. /// WM_COMPACTING = 0x0041, /// /// Specified WM_COMMNOTIFY enumeration value. /// WM_COMMNOTIFY = 0x0044, /// /// Specified WM_WINDOWPOSCHANGING enumeration value. /// WM_WINDOWPOSCHANGING = 0x0046, /// /// Specified WM_WINDOWPOSCHANGED enumeration value. /// WM_WINDOWPOSCHANGED = 0x0047, /// /// Specified WM_POWER enumeration value. /// WM_POWER = 0x0048, /// /// Specified WM_COPYDATA enumeration value. /// WM_COPYDATA = 0x004A, /// /// Specified WM_CANCELJOURNAL enumeration value. /// WM_CANCELJOURNAL = 0x004B, /// /// Specified WM_NOTIFY enumeration value. /// WM_NOTIFY = 0x004E, /// /// Specified WM_INPUTLANGCHANGEREQUEST enumeration value. /// WM_INPUTLANGCHANGEREQUEST = 0x0050, /// /// Specified WM_INPUTLANGCHANGE enumeration value. /// WM_INPUTLANGCHANGE = 0x0051, /// /// Specified WM_TCARD enumeration value. /// WM_TCARD = 0x0052, /// /// Specified WM_HELP enumeration value. /// WM_HELP = 0x0053, /// /// Specified WM_USERCHANGED enumeration value. /// WM_USERCHANGED = 0x0054, /// /// Specified WM_NOTIFYFORMAT enumeration value. /// WM_NOTIFYFORMAT = 0x0055, /// /// Specified WM_CONTEXTMENU enumeration value. /// WM_CONTEXTMENU = 0x007B, /// /// Specified WM_STYLECHANGING enumeration value. /// WM_STYLECHANGING = 0x007C, /// /// Specified WM_STYLECHANGED enumeration value. /// WM_STYLECHANGED = 0x007D, /// /// Specified WM_DISPLAYCHANGE enumeration value. /// WM_DISPLAYCHANGE = 0x007E, /// /// Specified WM_GETICON enumeration value. /// WM_GETICON = 0x007F, /// /// Specified WM_SETICON enumeration value. /// WM_SETICON = 0x0080, /// /// Specified WM_NCCREATE enumeration value. /// WM_NCCREATE = 0x0081, /// /// Specified VK_RMENU enumeration value. /// WM_NCDESTROY = 0x0082, /// /// Specified WM_NCCALCSIZE enumeration value. /// WM_NCCALCSIZE = 0x0083, /// /// Specified WM_NCHITTEST enumeration value. /// WM_NCHITTEST = 0x0084, /// /// Specified WM_NCPAINT enumeration value. /// WM_NCPAINT = 0x0085, /// /// Specified WM_NCACTIVATE enumeration value. /// WM_NCACTIVATE = 0x0086, /// /// Specified WM_GETDLGCODE enumeration value. /// WM_GETDLGCODE = 0x0087, /// /// Specified WM_SYNCPAINT enumeration value. /// WM_SYNCPAINT = 0x0088, /// /// Specified WM_NCMOUSEMOVE enumeration value. /// WM_NCMOUSEMOVE = 0x00A0, /// /// Specified WM_NCLBUTTONDOWN enumeration value. /// WM_NCLBUTTONDOWN = 0x00A1, /// /// Specified WM_NCLBUTTONUP enumeration value. /// WM_NCLBUTTONUP = 0x00A2, /// /// Specified WM_NCLBUTTONDBLCLK enumeration value. /// WM_NCLBUTTONDBLCLK = 0x00A3, /// /// Specified WM_NCRBUTTONDOWN enumeration value. /// WM_NCRBUTTONDOWN = 0x00A4, /// /// Specified WM_NCRBUTTONUP enumeration value. /// WM_NCRBUTTONUP = 0x00A5, /// /// Specified WM_NCRBUTTONDBLCLK enumeration value. /// WM_NCRBUTTONDBLCLK = 0x00A6, /// /// Specified WM_NCMBUTTONDOWN enumeration value. /// WM_NCMBUTTONDOWN = 0x00A7, /// /// Specified WM_NCMBUTTONUP enumeration value. /// WM_NCMBUTTONUP = 0x00A8, /// /// Specified WM_NCMBUTTONDBLCLK enumeration value. /// WM_NCMBUTTONDBLCLK = 0x00A9, /// /// Specified WM_NCXBUTTONDOWN enumeration value. /// WM_NCXBUTTONDOWN = 0x00AB, /// /// Specified WM_NCXBUTTONUP enumeration value. /// WM_NCXBUTTONUP = 0x00AC, /// /// Specified WM_KEYDOWN enumeration value. /// WM_KEYDOWN = 0x0100, /// /// Specified WM_KEYUP enumeration value. /// WM_KEYUP = 0x0101, /// /// Specified WM_CHAR enumeration value. /// WM_CHAR = 0x0102, /// /// Specified WM_DEADCHAR enumeration value. /// WM_DEADCHAR = 0x0103, /// /// Specified WM_SYSKEYDOWN enumeration value. /// WM_SYSKEYDOWN = 0x0104, /// /// Specified WM_SYSKEYUP enumeration value. /// WM_SYSKEYUP = 0x0105, /// /// Specified WM_SYSCHAR enumeration value. /// WM_SYSCHAR = 0x0106, /// /// Specified WM_SYSDEADCHAR enumeration value. /// WM_SYSDEADCHAR = 0x0107, /// /// Specified WM_KEYLAST enumeration value. /// WM_KEYLAST = 0x0108, /// /// Specified WM_IME_STARTCOMPOSITION enumeration value. /// WM_IME_STARTCOMPOSITION = 0x010D, /// /// Specified WM_IME_ENDCOMPOSITION enumeration value. /// WM_IME_ENDCOMPOSITION = 0x010E, /// /// Specified WM_IME_COMPOSITION enumeration value. /// WM_IME_COMPOSITION = 0x010F, /// /// Specified WM_IME_KEYLAST enumeration value. /// WM_IME_KEYLAST = 0x010F, /// /// Specified WM_INITDIALOG enumeration value. /// WM_INITDIALOG = 0x0110, /// /// Specified WM_COMMAND enumeration value. /// WM_COMMAND = 0x0111, /// /// Specified WM_SYSCOMMAND enumeration value. /// WM_SYSCOMMAND = 0x0112, /// /// Specified WM_TIMER enumeration value. /// WM_TIMER = 0x0113, /// /// Specified WM_HSCROLL enumeration value. /// WM_HSCROLL = 0x0114, /// /// Specified WM_VSCROLL enumeration value. /// WM_VSCROLL = 0x0115, /// /// Specified WM_INITMENU enumeration value. /// WM_INITMENU = 0x0116, /// /// Specified WM_INITMENUPOPUP enumeration value. /// WM_INITMENUPOPUP = 0x0117, /// /// Specified WM_MENUSELECT enumeration value. /// WM_MENUSELECT = 0x011F, /// /// Specified WM_MENUCHAR enumeration value. /// WM_MENUCHAR = 0x0120, /// /// Specified WM_ENTERIDLE enumeration value. /// WM_ENTERIDLE = 0x0121, /// /// Specified WM_MENURBUTTONUP enumeration value. /// WM_MENURBUTTONUP = 0x0122, /// /// Specified WM_MENUDRAG enumeration value. /// WM_MENUDRAG = 0x0123, /// /// Specified WM_MENUGETOBJECT enumeration value. /// WM_MENUGETOBJECT = 0x0124, /// /// Specified WM_UNINITMENUPOPUP enumeration value. /// WM_UNINITMENUPOPUP = 0x0125, /// /// Specified WM_MENUCOMMAND enumeration value. /// WM_MENUCOMMAND = 0x0126, /// /// Specified WM_CTLCOLORMSGBOX enumeration value. /// WM_CTLCOLORMSGBOX = 0x0132, /// /// Specified WM_CTLCOLOREDIT enumeration value. /// WM_CTLCOLOREDIT = 0x0133, /// /// Specified WM_CTLCOLORLISTBOX enumeration value. /// WM_CTLCOLORLISTBOX = 0x0134, /// /// Specified WM_CTLCOLORBTN enumeration value. /// WM_CTLCOLORBTN = 0x0135, /// /// Specified WM_CTLCOLORDLG enumeration value. /// WM_CTLCOLORDLG = 0x0136, /// /// Specified WM_CTLCOLORSCROLLBAR enumeration value. /// WM_CTLCOLORSCROLLBAR = 0x0137, /// /// Specified WM_CTLCOLORSTATIC enumeration value. /// WM_CTLCOLORSTATIC = 0x0138, /// /// Specified WM_MOUSEMOVE enumeration value. /// WM_MOUSEMOVE = 0x0200, /// /// Specified WM_LBUTTONDOWN enumeration value. /// WM_LBUTTONDOWN = 0x0201, /// /// Specified WM_LBUTTONUP enumeration value. /// WM_LBUTTONUP = 0x0202, /// /// Specified WM_LBUTTONDBLCLK enumeration value. /// WM_LBUTTONDBLCLK = 0x0203, /// /// Specified WM_RBUTTONDOWN enumeration value. /// WM_RBUTTONDOWN = 0x0204, /// /// Specified WM_RBUTTONUP enumeration value. /// WM_RBUTTONUP = 0x0205, /// /// Specified WM_RBUTTONDBLCLK enumeration value. /// WM_RBUTTONDBLCLK = 0x0206, /// /// Specified WM_MBUTTONDOWN enumeration value. /// WM_MBUTTONDOWN = 0x0207, /// /// Specified WM_MBUTTONUP enumeration value. /// WM_MBUTTONUP = 0x0208, /// /// Specified WM_MBUTTONDBLCLK enumeration value. /// WM_MBUTTONDBLCLK = 0x0209, /// /// Specified WM_MOUSEWHEEL enumeration value. /// WM_MOUSEWHEEL = 0x020A, /// /// Specified WM_XBUTTONDOWN enumeration value. /// WM_XBUTTONDOWN = 0x020B, /// /// Specified WM_XBUTTONUP enumeration value. /// WM_XBUTTONUP = 0x020C, /// /// Specified WM_XBUTTONDBLCLK enumeration value. /// WM_XBUTTONDBLCLK = 0x020D, /// /// Specified WM_PARENTNOTIFY enumeration value. /// WM_PARENTNOTIFY = 0x0210, /// /// Specified WM_ENTERMENULOOP enumeration value. /// WM_ENTERMENULOOP = 0x0211, /// /// Specified WM_EXITMENULOOP enumeration value. /// WM_EXITMENULOOP = 0x0212, /// /// Specified WM_NEXTMENU enumeration value. /// WM_NEXTMENU = 0x0213, /// /// Specified WM_SIZING enumeration value. /// WM_SIZING = 0x0214, /// /// Specified WM_CAPTURECHANGED enumeration value. /// WM_CAPTURECHANGED = 0x0215, /// /// Specified WM_MOVING enumeration value. /// WM_MOVING = 0x0216, /// /// Specified WM_DEVICECHANGE enumeration value. /// WM_DEVICECHANGE = 0x0219, /// /// Specified WM_MDICREATE enumeration value. /// WM_MDICREATE = 0x0220, /// /// Specified WM_MDIDESTROY enumeration value. /// WM_MDIDESTROY = 0x0221, /// /// Specified WM_MDIACTIVATE enumeration value. /// WM_MDIACTIVATE = 0x0222, /// /// Specified WM_MDIRESTORE enumeration value. /// WM_MDIRESTORE = 0x0223, /// /// Specified WM_MDINEXT enumeration value. /// WM_MDINEXT = 0x0224, /// /// Specified WM_MDIMAXIMIZE enumeration value. /// WM_MDIMAXIMIZE = 0x0225, /// /// Specified WM_MDITILE enumeration value. /// WM_MDITILE = 0x0226, /// /// Specified WM_MDICASCADE enumeration value. /// WM_MDICASCADE = 0x0227, /// /// Specified WM_MDIICONARRANGE enumeration value. /// WM_MDIICONARRANGE = 0x0228, /// /// Specified WM_MDIGETACTIVE enumeration value. /// WM_MDIGETACTIVE = 0x0229, /// /// Specified WM_MDISETMENU enumeration value. /// WM_MDISETMENU = 0x0230, /// /// Specified WM_ENTERSIZEMOVE enumeration value. /// WM_ENTERSIZEMOVE = 0x0231, /// /// Specified WM_EXITSIZEMOVE enumeration value. /// WM_EXITSIZEMOVE = 0x0232, /// /// Specified WM_DROPFILES enumeration value. /// WM_DROPFILES = 0x0233, /// /// Specified WM_MDIREFRESHMENU enumeration value. /// WM_MDIREFRESHMENU = 0x0234, /// /// Specified WM_IME_SETCONTEXT enumeration value. /// WM_IME_SETCONTEXT = 0x0281, /// /// Specified WM_IME_NOTIFY enumeration value. /// WM_IME_NOTIFY = 0x0282, /// /// Specified WM_IME_CONTROL enumeration value. /// WM_IME_CONTROL = 0x0283, /// /// Specified WM_IME_COMPOSITIONFULL enumeration value. /// WM_IME_COMPOSITIONFULL = 0x0284, /// /// Specified WM_IME_SELECT enumeration value. /// WM_IME_SELECT = 0x0285, /// /// Specified WM_IME_CHAR enumeration value. /// WM_IME_CHAR = 0x0286, /// /// Specified WM_IME_REQUEST enumeration value. /// WM_IME_REQUEST = 0x0288, /// /// Specified WM_IME_KEYDOWN enumeration value. /// WM_IME_KEYDOWN = 0x0290, /// /// Specified WM_IME_KEYUP enumeration value. /// WM_IME_KEYUP = 0x0291, /// /// Specified WM_MOUSEHOVER enumeration value. /// WM_MOUSEHOVER = 0x02A1, WM_MOUSELEAVE = 0x02A3, WM_CUT = 0x0300, WM_COPY = 0x0301, WM_PASTE = 0x0302, WM_CLEAR = 0x0303, /// /// Specified WM_UNDO enumeration value. /// WM_UNDO = 0x0304, /// /// Specified WM_RENDERFORMAT enumeration value. /// WM_RENDERFORMAT = 0x0305, /// /// Specified WM_RENDERALLFORMATS enumeration value. /// WM_RENDERALLFORMATS = 0x0306, /// /// Specified WM_DESTROYCLIPBOARD enumeration value. /// WM_DESTROYCLIPBOARD = 0x0307, /// /// Specified WM_DRAWCLIPBOARD enumeration value. /// WM_DRAWCLIPBOARD = 0x0308, /// /// Specified WM_PAINTCLIPBOARD enumeration value. /// WM_PAINTCLIPBOARD = 0x0309, /// /// Specified WM_VSCROLLCLIPBOARD enumeration value. /// WM_VSCROLLCLIPBOARD = 0x030A, /// /// Specified WM_SIZECLIPBOARD enumeration value. /// WM_SIZECLIPBOARD = 0x030B, /// /// Specified WM_ASKCBFORMATNAME enumeration value. /// WM_ASKCBFORMATNAME = 0x030C, /// /// Specified WM_CHANGECBCHAIN enumeration value. /// WM_CHANGECBCHAIN = 0x030D, /// /// Specified WM_HSCROLLCLIPBOARD enumeration value. /// WM_HSCROLLCLIPBOARD = 0x030E, /// /// Specified WM_QUERYNEWPALETTE enumeration value. /// WM_QUERYNEWPALETTE = 0x030F, /// /// Specified WM_PALETTEISCHANGING enumeration value. /// WM_PALETTEISCHANGING = 0x0310, /// /// Specified WM_PALETTECHANGED enumeration value. /// WM_PALETTECHANGED = 0x0311, /// /// Specified WM_HOTKEY enumeration value. /// WM_HOTKEY = 0x0312, /// /// Specified WM_PRINT enumeration value. /// WM_PRINT = 0x0317, /// /// Specified WM_PRINTCLIENT enumeration value. /// WM_PRINTCLIENT = 0x0318, /// /// Specified WM_HANDHELDFIRST enumeration value. /// WM_HANDHELDFIRST = 0x0358, /// /// Specified WM_HANDHELDLAST enumeration value. /// WM_HANDHELDLAST = 0x035F, /// /// Specified WM_AFXFIRST enumeration value. /// WM_AFXFIRST = 0x0360, /// /// Specified WM_AFXLAST enumeration value. /// WM_AFXLAST = 0x037F, /// /// Specified WM_PENWINFIRST enumeration value. /// WM_PENWINFIRST = 0x0380, /// /// Specified WM_PENWINLAST enumeration value. /// WM_PENWINLAST = 0x038F, /// /// Specified WM_APP enumeration value. /// WM_APP = 0x8000, /// /// Specified WM_USER enumeration value. /// WM_USER = 0x0400, /// /// Specified WM_REFLECT enumeration value. /// WM_REFLECT = WM_USER + 0x1C00, /// /// Specified WM_THEMECHANGED enumeration value. /// WM_THEMECHANGED = 0x031A, }; #endregion #region Windows-Styles-Const internal enum WindowStyles : uint { WS_OVERLAPPED = 0x00000000, WS_POPUP = 0x80000000, WS_CHILD = 0x40000000, WS_MINIMIZE = 0x20000000, WS_VISIBLE = 0x10000000, WS_DISABLED = 0x08000000, WS_CLIPSIBLINGS = 0x04000000, WS_CLIPCHILDREN = 0x02000000, WS_MAXIMIZE = 0x01000000, WS_CAPTION = 0x00C00000, WS_BORDER = 0x00800000, WS_DLGFRAME = 0x00400000, WS_VSCROLL = 0x00200000, WS_HSCROLL = 0x00100000, WS_SYSMENU = 0x00080000, WS_THICKFRAME = 0x00040000, WS_GROUP = 0x00020000, WS_TABSTOP = 0x00010000, WS_MINIMIZEBOX = 0x00020000, WS_MAXIMIZEBOX = 0x00010000, WS_TILED = 0x00000000, WS_ICONIC = 0x20000000, WS_SIZEBOX = 0x00040000, WS_POPUPWINDOW = 0x80880000, WS_OVERLAPPEDWINDOW = 0x00CF0000, WS_TILEDWINDOW = 0x00CF0000, WS_CHILDWINDOW = 0x40000000 }; internal enum WindowExStyles { GWL_STYLE = -16, GWL_EXSTYLE = (-20), //GetWindowLong WS_EX_DLGMODALFRAME = 0x00000001, WS_EX_NOPARENTNOTIFY = 0x00000004, WS_EX_TOPMOST = 0x00000008, WS_EX_ACCEPTFILES = 0x00000010, WS_EX_TRANSPARENT = 0x00000020, WS_EX_MDICHILD = 0x00000040, WS_EX_TOOLWINDOW = 0x00000080, WS_EX_WINDOWEDGE = 0x00000100, WS_EX_CLIENTEDGE = 0x00000200, WS_EX_CONTEXTHELP = 0x00000400, WS_EX_RIGHT = 0x00001000, //Gives a window generic right-aligned properties.This depends on the window class. WS_EX_LEFT = 0x00000000, WS_EX_RTLREADING = 0x00002000, //Displays the window text using right-to-left reading order properties. WS_EX_LTRREADING = 0x00000000, WS_EX_LEFTSCROLLBAR = 0x00004000, //Places a vertical scroll bar to the left of the client area. WS_EX_RIGHTSCROLLBAR = 0x00000000, WS_EX_CONTROLPARENT = 0x00010000, WS_EX_STATICEDGE = 0x00020000, WS_EX_APPWINDOW = 0x00040000, WS_EX_OVERLAPPEDWINDOW = 0x00000300, WS_EX_PALETTEWINDOW = 0x00000188, WS_EX_LAYERED = 0x00080000, WS_EX_NOACTIVATE = 0x08000000 }; #endregion } }