menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class WindowMessages - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class WindowMessages

    Represents a class that provides the list of window messages that are used in window process callback function.

    Inheritance
    System.Object
    WindowMessages
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public static class WindowMessages

    Fields

    ABE_BOTTOM

    Bottom edge.

    Declaration
    public const int ABE_BOTTOM = 3
    Field Value
    Type
    System.Int32

    ABE_LEFT

    Left edge.

    Declaration
    public const int ABE_LEFT = 0
    Field Value
    Type
    System.Int32

    ABE_RIGHT

    Right edge.

    Declaration
    public const int ABE_RIGHT = 2
    Field Value
    Type
    System.Int32

    ABE_TOP

    Top edge.

    Declaration
    public const int ABE_TOP = 1
    Field Value
    Type
    System.Int32

    ABM_GETTASKBARPOS

    Retrieves the bounding rectangle of the Windows task bar.

    Declaration
    public const int ABM_GETTASKBARPOS = 5
    Field Value
    Type
    System.Int32

    BFFM_ENABLEOK

    This message enables or disables the OK button for the Browse For Folder dialog box.

    Declaration
    public const int BFFM_ENABLEOK = 1125
    Field Value
    Type
    System.Int32

    BFFM_INITIALIZED

    The dialog box has finished initializing.

    Declaration
    public const int BFFM_INITIALIZED = 1
    Field Value
    Type
    System.Int32

    BFFM_IUNKNOWN

    An IUnknown interface is available to the dialog box.

    Declaration
    public const int BFFM_IUNKNOWN = 5
    Field Value
    Type
    System.Int32

    BFFM_SELCHANGED

    This message indicates that the selection in the dialog box changed.

    Declaration
    public const int BFFM_SELCHANGED = 2
    Field Value
    Type
    System.Int32

    BFFM_SETEXPANDED

    Specifies the path of a folder to expand in the Browse dialog box. The path can be specified as a Unicode string or a PIDL.

    Declaration
    public const int BFFM_SETEXPANDED = 1130
    Field Value
    Type
    System.Int32

    BFFM_SETOKTEXT

    Sets the text that is displayed on the dialog box's OK button.

    Declaration
    public const int BFFM_SETOKTEXT = 1129
    Field Value
    Type
    System.Int32

    BFFM_SETSELECTION

    This message indicates that the selection in the dialog box changed.

    Declaration
    public const int BFFM_SETSELECTION = 1127
    Field Value
    Type
    System.Int32

    BFFM_SETSTATUSTEXTW

    This message sets the status text in the Browse For Folder dialog box.

    Declaration
    public const int BFFM_SETSTATUSTEXTW = 1128
    Field Value
    Type
    System.Int32

    BFFM_VALIDATEFAILEDW

    The user typed an invalid name into the dialog's edit box. A nonexistent folder is considered an invalid name.

    Declaration
    public const int BFFM_VALIDATEFAILEDW = 4
    Field Value
    Type
    System.Int32

    BITSPIXEL

    Represents the bits per pixel.

    Declaration
    public const int BITSPIXEL = 12
    Field Value
    Type
    System.Int32

    CS_DROPSHADOW

    Enables the drop shadow effect on a window.

    Declaration
    public const int CS_DROPSHADOW = 131072
    Field Value
    Type
    System.Int32

    DCX_CACHE

    Returns a DC from the cache, rather than the OWNDC or CLASSDC window. Essentially overrides CS_OWNDC and CS_CLASSDC.

    Declaration
    public const int DCX_CACHE = 2
    Field Value
    Type
    System.Int32

    DCX_CLIPCHILDREN

    Excludes the visible regions of all child windows below the window identified by hWnd.

    Declaration
    public const int DCX_CLIPCHILDREN = 8
    Field Value
    Type
    System.Int32

    DCX_CLIPSIBLINGS

    Excludes the visible regions of all sibling windows above the window identified by hWnd.

    Declaration
    public const int DCX_CLIPSIBLINGS = 16
    Field Value
    Type
    System.Int32

    DCX_EXCLUDERGN

    The clipping region identified by hrgnClip is excluded from the visible region of the returned DC.

    Declaration
    public const int DCX_EXCLUDERGN = 64
    Field Value
    Type
    System.Int32

    DCX_INTERSECTRGN

    The clipping region identified by hrgnClip is intersected with the visible region of the returned DC.

    Declaration
    public const int DCX_INTERSECTRGN = 128
    Field Value
    Type
    System.Int32

    DCX_LOCKWINDOWUPDATE

    Allows drawing even if there is a LockWindowUpdate call in effect that would otherwise exclude this window. Used for drawing during tracking.

    Declaration
    public const int DCX_LOCKWINDOWUPDATE = 1024
    Field Value
    Type
    System.Int32

    DCX_PARENTCLIP

    Uses the visible region of the parent window. The parent's WS_CLIPCHILDREN and CS_PARENTDC style bits are ignored. The origin is set to the upper-left corner of the window identified by hWnd.

    Declaration
    public const int DCX_PARENTCLIP = 32
    Field Value
    Type
    System.Int32

    DCX_WINDOW

    Returns a DC that corresponds to the window rectangle rather than the client rectangle.

    Declaration
    public const int DCX_WINDOW = 1
    Field Value
    Type
    System.Int32

    DT_BOTTOM

    Justifies the text to the bottom of the rectangle. This value is used only with the DT_SINGLELINE value.

    Declaration
    public const int DT_BOTTOM = 8
    Field Value
    Type
    System.Int32

    DT_CALCRECT

    Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text. If the largest word is wider than the rectangle, the width is expanded. If the text is less than the width of the rectangle, the width is reduced. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text.

    Declaration
    public const int DT_CALCRECT = 1024
    Field Value
    Type
    System.Int32

    DT_CENTER

    Centers text horizontally in the rectangle.

    Declaration
    public const int DT_CENTER = 1
    Field Value
    Type
    System.Int32

    DT_EDITCONTROL

    Duplicates the text-displaying characteristics of a multi line edit control. Specifically, the average character width is calculated in the same manner as for an edit control, and the function does not display a partially visible last line.

    Declaration
    public const int DT_EDITCONTROL = 8192
    Field Value
    Type
    System.Int32

    DT_END_ELLIPSIS

    For displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.

    Declaration
    public const int DT_END_ELLIPSIS = 32768
    Field Value
    Type
    System.Int32

    DT_EXPANDTABS

    Expands tab characters. The default number of characters per tab is eight. The DT_WORD_ELLIPSIS, DT_PATH_ELLIPSIS, and DT_END_ELLIPSIS values cannot be used with the DT_EXPANDTABS value.

    Declaration
    public const int DT_EXPANDTABS = 64
    Field Value
    Type
    System.Int32

    DT_EXTERNALLEADING

    Includes the font external leading in line height. Normally, external leading is not included in the height of a line of text.

    Declaration
    public const int DT_EXTERNALLEADING = 512
    Field Value
    Type
    System.Int32

    DT_HIDEPREFIX

    Ignores the ampersand prefix character in the text. The letter that follows will not be underlined, but other mnemonic-prefix characters are still processed.

    Declaration
    public const int DT_HIDEPREFIX = 1048576
    Field Value
    Type
    System.Int32

    DT_INTERNAL

    Uses the system font to calculate text metrics.

    Declaration
    public const int DT_INTERNAL = 4096
    Field Value
    Type
    System.Int32

    DT_LEFT

    Aligns text to the left.

    Declaration
    public const int DT_LEFT = 0
    Field Value
    Type
    System.Int32

    DT_MODIFYSTRING

    Modifies the specified string to match the displayed text. This value has no effect unless DT_END_ELLIPSIS or DT_PATH_ELLIPSIS is specified.

    Declaration
    public const int DT_MODIFYSTRING = 65536
    Field Value
    Type
    System.Int32

    DT_NOCLIP

    Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used.

    Declaration
    public const int DT_NOCLIP = 256
    Field Value
    Type
    System.Int32

    DT_NOFULLWIDTHCHARBREAK

    Prevents a line break at a DBCS (double-wide character string), so that the line breaking rule is equivalent to SBCS strings. For example, this can be used in Korean windows, for more readability of icon labels. This value has no effect unless DT_WORDBREAK is specified.

    Declaration
    public const int DT_NOFULLWIDTHCHARBREAK = 524288
    Field Value
    Type
    System.Int32

    DT_NOPREFIX

    Turns off processing of prefix characters. Normally, DrawText interprets the mnemonic-prefix character as a directive to underscore the character that follows, and the mnemonic-prefix characters as a directive to print a single. By specifying DT_NOPREFIX, this processing is turned off.

    Declaration
    public const int DT_NOPREFIX = 2048
    Field Value
    Type
    System.Int32

    DT_PATH_ELLIPSIS

    For displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash () characters, DT_PATH_ELLIPSIS preserves as much as possible of the text after the last backslash.

    Declaration
    public const int DT_PATH_ELLIPSIS = 16384
    Field Value
    Type
    System.Int32

    DT_PREFIXONLY

    Draws only an underline at the position of the character following the ampersand prefix character. Does not draw any other characters in the string.

    Declaration
    public const int DT_PREFIXONLY = 2097152
    Field Value
    Type
    System.Int32

    DT_RIGHT

    Aligns text to the right.

    Declaration
    public const int DT_RIGHT = 2
    Field Value
    Type
    System.Int32

    DT_RTLREADING

    Layout in right-to-left reading order for bidirectional text when the font selected into the hdc is a Hebrew or Arabic font. The default reading order for all text is left-to-right.

    Declaration
    public const int DT_RTLREADING = 131072
    Field Value
    Type
    System.Int32

    DT_SINGLELINE

    Displays text on a single line only. Carriage returns and line feeds do not break the line.

    Declaration
    public const int DT_SINGLELINE = 32
    Field Value
    Type
    System.Int32

    DT_TABSTOP

    Sets tab stops. Bits 15-8 (high-order byte of the low-order word) of the uFormat parameter specify the number of characters for each tab. The default number of characters per tab is eight. The DT_CALCRECT, DT_EXTERNALLEADING, DT_INTERNAL, DT_NOCLIP, and DT_NOPREFIX values cannot be used with the DT_TABSTOP value.

    Declaration
    public const int DT_TABSTOP = 128
    Field Value
    Type
    System.Int32

    DT_TOP

    Justifies the text to the top of the rectangle

    Declaration
    public const int DT_TOP = 0
    Field Value
    Type
    System.Int32

    DT_VCENTER

    Centers text vertically. This value is used only with the DT_SINGLELINE value.

    Declaration
    public const int DT_VCENTER = 4
    Field Value
    Type
    System.Int32

    DT_WORD_ELLIPSIS

    Truncates any word that does not fit in the rectangle and adds ellipses.

    Declaration
    public const int DT_WORD_ELLIPSIS = 262144
    Field Value
    Type
    System.Int32

    DT_WORDBREAK

    Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the rectangle parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.

    Declaration
    public const int DT_WORDBREAK = 16
    Field Value
    Type
    System.Int32

    DVASPECT_CONTENT

    Provides a representation of an object so it can be displayed as an embedded object inside of a container. This value is typically specified for compound document objects. The presentation can be provided for the screen or printer.

    Declaration
    public const int DVASPECT_CONTENT = 1
    Field Value
    Type
    System.Int32

    DVASPECT_OPAQUE

    Represents the opaque, easy to clip parts of an object. Objects may or may not support this aspect.

    Declaration
    public const int DVASPECT_OPAQUE = 16
    Field Value
    Type
    System.Int32

    DVASPECT_TRANSPARENT

    Represents the transparent or irregular parts of on object, typically parts that are expensive or impossible to clip out. Objects may or may not support this aspect.

    Declaration
    public const int DVASPECT_TRANSPARENT = 32
    Field Value
    Type
    System.Int32

    EM_CHARFROMPOS

    Gets information about the character closest to a specified point in the client area of an edit control.

    Declaration
    public const int EM_CHARFROMPOS = 215
    Field Value
    Type
    System.Int32

    EM_GETRECT

    Gets the formatting rectangle of an edit control.

    Declaration
    public const int EM_GETRECT = 178
    Field Value
    Type
    System.Int32

    ESB_DISABLE_DOWN

    Disables the bottom arrow on a vertical scroll bar.

    Declaration
    public const int ESB_DISABLE_DOWN = 2
    Field Value
    Type
    System.Int32

    ESB_DISABLE_LEFT

    Disables the left arrow on a horizontal scroll bar.

    Declaration
    public const int ESB_DISABLE_LEFT = 1
    Field Value
    Type
    System.Int32

    ESB_DISABLE_RIGHT

    Disables the right arrow on a horizontal scroll bar.

    Declaration
    public const int ESB_DISABLE_RIGHT = 2
    Field Value
    Type
    System.Int32

    ESB_DISABLE_UP

    Disables the top arrow on a vertical scroll bar.

    Declaration
    public const int ESB_DISABLE_UP = 1
    Field Value
    Type
    System.Int32

    GC_ALLGESTURES

    Indicates all the gestures.

    Declaration
    public const int GC_ALLGESTURES = 1
    Field Value
    Type
    System.Int32

    GcPan

    Indicates all pan gesture.

    Declaration
    public const int GcPan = 31
    Field Value
    Type
    System.Int32

    GcPanWithGutter

    Limits perpendicular movement to primary direction until a threshold is reached to break out of the gutter.

    Declaration
    public const int GcPanWithGutter = 8
    Field Value
    Type
    System.Int32

    GcPanWithIntertia

    Indicates panning with inertia to smoothly slow when pan gestures stop.

    Declaration
    public const int GcPanWithIntertia = 16
    Field Value
    Type
    System.Int32

    GcPanWithSingleFingerHorizontally

    Indicates the horizontal panning with single finger.

    Declaration
    public const int GcPanWithSingleFingerHorizontally = 4
    Field Value
    Type
    System.Int32

    GcPanWithSingleFingerVertically

    Indicates the vertical panning with single finger.

    Declaration
    public const int GcPanWithSingleFingerVertically = 2
    Field Value
    Type
    System.Int32

    GfBegin

    A gesture is starting.

    Declaration
    public const int GfBegin = 1
    Field Value
    Type
    System.Int32

    GfEnd

    A gesture is finished.

    Declaration
    public const int GfEnd = 4
    Field Value
    Type
    System.Int32

    GfInertia

    Set the gesture is triggered inertia.

    Declaration
    public const int GfInertia = 2
    Field Value
    Type
    System.Int32

    GID_BEGIN

    Indicates generic gesture is begin.

    Declaration
    public const int GID_BEGIN = 1
    Field Value
    Type
    System.Int32

    GID_END

    Indicates generic gesture is end.

    Declaration
    public const int GID_END = 2
    Field Value
    Type
    System.Int32

    GID_PAN

    Indicates pan move or pan start.

    Declaration
    public const int GID_PAN = 4
    Field Value
    Type
    System.Int32

    GID_PRESSANDTAP

    Indicates the press and tap gesture.

    Declaration
    public const int GID_PRESSANDTAP = 7
    Field Value
    Type
    System.Int32

    GID_ROTATE

    Indicates rotate move or rotate start.

    Declaration
    public const int GID_ROTATE = 5
    Field Value
    Type
    System.Int32

    GID_TWOFINGERTAP

    Indicates the two finger tap gesture.

    Declaration
    public const int GID_TWOFINGERTAP = 6
    Field Value
    Type
    System.Int32

    GID_ZOOM

    Indicates zoom start, zoom move, or zoom stop. The first GID_ZOOM command message begins a zoom but does not cause any zooming. The second GID_ZOOM command triggers a zoom relative to the state contained in the first GID_ZOOM.

    Declaration
    public const int GID_ZOOM = 3
    Field Value
    Type
    System.Int32

    GW_CHILD

    The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows.

    Declaration
    public const int GW_CHILD = 5
    Field Value
    Type
    System.Int32

    GW_ENABLEDPOPUP

    The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT); otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window.

    Declaration
    public const int GW_ENABLEDPOPUP = 6
    Field Value
    Type
    System.Int32

    GW_HWNDFIRST

    The retrieved handle identifies the window of the same type that is highest in the Z order.

    Declaration
    public const int GW_HWNDFIRST = 0
    Field Value
    Type
    System.Int32

    GW_HWNDLAST

    The retrieved handle identifies the window of the same type that is lowest in the Z order.

    Declaration
    public const int GW_HWNDLAST = 1
    Field Value
    Type
    System.Int32

    GW_HWNDNEXT

    The retrieved handle identifies the window below the specified window in the Z order.

    Declaration
    public const int GW_HWNDNEXT = 2
    Field Value
    Type
    System.Int32

    GW_HWNDPREV

    The retrieved handle identifies the window above the specified window in the Z order.

    Declaration
    public const int GW_HWNDPREV = 3
    Field Value
    Type
    System.Int32

    GW_OWNER

    The retrieved handle identifies the specified window's owner window, if any. For more information, see Owned Windows.

    Declaration
    public const int GW_OWNER = 4
    Field Value
    Type
    System.Int32

    GWL_EXSTYLE

    Sets a new extended window style.

    Declaration
    public const int GWL_EXSTYLE = -20
    Field Value
    Type
    System.Int32

    GWL_HWNDPARENT

    Index to change the parent of a child window.

    Declaration
    public const int GWL_HWNDPARENT = -8
    Field Value
    Type
    System.Int32

    GWL_ID

    Sets a new identifier of the child window. The window cannot be a top-level window.

    Declaration
    public const int GWL_ID = -12
    Field Value
    Type
    System.Int32

    GWL_STYLE

    Sets a new window style.

    Declaration
    public const int GWL_STYLE = -16
    Field Value
    Type
    System.Int32

    GWL_WNDPROC

    Sets a new address for the window procedure. You cannot change this attribute if the window does not belong to the same process as the calling thread.

    Declaration
    public const int GWL_WNDPROC = -4
    Field Value
    Type
    System.Int32

    HTBORDER

    In the border of a window that does not have a sizing border.

    Declaration
    public const int HTBORDER = 18
    Field Value
    Type
    System.Int32

    HTBOTTOM

    In the lower corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTBOTTOM = 15
    Field Value
    Type
    System.Int32

    HTBOTTOMLEFT

    In the lower-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTBOTTOMLEFT = 16
    Field Value
    Type
    System.Int32

    HTBOTTOMRIGHT

    In the lower-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTBOTTOMRIGHT = 17
    Field Value
    Type
    System.Int32

    HTCAPTION

    In a title bar.

    Declaration
    public const int HTCAPTION = 2
    Field Value
    Type
    System.Int32

    HTCLIENT

    In a client area.

    Declaration
    public const int HTCLIENT = 1
    Field Value
    Type
    System.Int32

    HTCLOSE

    In a Close button.

    Declaration
    public const int HTCLOSE = 20
    Field Value
    Type
    System.Int32

    HTERROR

    On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error).

    Declaration
    public const int HTERROR = -2
    Field Value
    Type
    System.Int32

    HTGROWBOX

    In a size box (same as HTSIZE).

    Declaration
    public const int HTGROWBOX = 4
    Field Value
    Type
    System.Int32

    HTHELP

    In a Help button.

    Declaration
    public const int HTHELP = 21
    Field Value
    Type
    System.Int32

    HTLEFT

    In the left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTLEFT = 10
    Field Value
    Type
    System.Int32

    HTMAXBUTTON

    In a Maximize button.

    Declaration
    public const int HTMAXBUTTON = 9
    Field Value
    Type
    System.Int32

    HTMENU

    In a menu.

    Declaration
    public const int HTMENU = 5
    Field Value
    Type
    System.Int32

    HTMINBUTTON

    In a Minimize button.

    Declaration
    public const int HTMINBUTTON = 8
    Field Value
    Type
    System.Int32

    HTNOWHERE

    On the screen background or on a dividing line between windows.

    Declaration
    public const int HTNOWHERE = 0
    Field Value
    Type
    System.Int32

    HTRIGHT

    In the right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTRIGHT = 11
    Field Value
    Type
    System.Int32

    HTSYSMENU

    In a window menu or in a Close button in a child window.

    Declaration
    public const int HTSYSMENU = 3
    Field Value
    Type
    System.Int32

    HTTOP

    In the top corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTTOP = 12
    Field Value
    Type
    System.Int32

    HTTOPLEFT

    In the top-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTTOPLEFT = 13
    Field Value
    Type
    System.Int32

    HTTOPRIGHT

    In the top-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally).

    Declaration
    public const int HTTOPRIGHT = 14
    Field Value
    Type
    System.Int32

    HWND_BOTTOM

    Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows.

    Declaration
    public const int HWND_BOTTOM = 1
    Field Value
    Type
    System.Int32

    HWND_NOTOPMOST

    Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.

    Declaration
    public const int HWND_NOTOPMOST = -2
    Field Value
    Type
    System.Int32

    HWND_TOP

    Places the window at the top of the Z order.

    Declaration
    public const int HWND_TOP = 0
    Field Value
    Type
    System.Int32

    HWND_TOPMOST

    Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.

    Declaration
    public const int HWND_TOPMOST = -1
    Field Value
    Type
    System.Int32

    INFINITE

    A constant used to specify an infinite waiting period, for threading methods that accept an Int32 parameter.

    Declaration
    public const uint INFINITE = 4294967295U
    Field Value
    Type
    System.UInt32

    LOGPIXELSX

    Represents the adding of pixel in horizontal.

    Declaration
    public const int LOGPIXELSX = 88
    Field Value
    Type
    System.Int32

    LOGPIXELSY

    Represents the adding of pixel in vertical.

    Declaration
    public const int LOGPIXELSY = 90
    Field Value
    Type
    System.Int32

    LVM_FIRST

    Sets the list-view control first item.

    Declaration
    public const int LVM_FIRST = 4096
    Field Value
    Type
    System.Int32

    LVM_SCROLL

    Scrolls the content of a list-view control.

    Declaration
    public const int LVM_SCROLL = 4116
    Field Value
    Type
    System.Int32

    MA_ACTIVATE

    Activates the window, and does not discard the mouse message.

    Declaration
    public const int MA_ACTIVATE = 1
    Field Value
    Type
    System.Int32

    MA_ACTIVATEANDEAT

    Activates the window, and discards the mouse message.

    Declaration
    public const int MA_ACTIVATEANDEAT = 2
    Field Value
    Type
    System.Int32

    MA_NOACTIVATE

    Does not activate the window, and does not discard the mouse message.

    Declaration
    public const int MA_NOACTIVATE = 3
    Field Value
    Type
    System.Int32

    MA_NOACTIVATEANDEAT

    Does not activate the window, but discards the mouse message.

    Declaration
    public const int MA_NOACTIVATEANDEAT = 4
    Field Value
    Type
    System.Int32

    MK_CONTROL

    The CTRL key is down.

    Declaration
    public const int MK_CONTROL = 8
    Field Value
    Type
    System.Int32

    MK_LBUTTON

    The left mouse button is down.

    Declaration
    public const int MK_LBUTTON = 1
    Field Value
    Type
    System.Int32

    MK_MBUTTON

    The middle mouse button is down.

    Declaration
    public const int MK_MBUTTON = 16
    Field Value
    Type
    System.Int32

    MK_RBUTTON

    The right mouse button is down.

    Declaration
    public const int MK_RBUTTON = 2
    Field Value
    Type
    System.Int32

    MK_SHIFT

    The middle mouse button is down.

    Declaration
    public const int MK_SHIFT = 4
    Field Value
    Type
    System.Int32

    OBJID_HSCROLL

    The window's Horizontal scroll bar.

    Declaration
    public const uint OBJID_HSCROLL = 4294967290U
    Field Value
    Type
    System.UInt32

    OBJID_VSCROLL

    The window's vertical scroll bar.

    Declaration
    public const uint OBJID_VSCROLL = 4294967291U
    Field Value
    Type
    System.UInt32

    PLANES

    Represents the planes.

    Declaration
    public const int PLANES = 14
    Field Value
    Type
    System.Int32

    QS_ALLEVENTS

    An input, WM_TIMER, WM_PAINT, WM_HOTKEY, or posted message is in the queue.

    Declaration
    public const int QS_ALLEVENTS = 1215
    Field Value
    Type
    System.Int32

    QS_ALLINPUT

    Any message is in the queue.

    Declaration
    public const int QS_ALLINPUT = 1279
    Field Value
    Type
    System.Int32

    QS_ALLPOSTMESSAGE

    A posted message (other than those listed here) is in the queue.

    Declaration
    public const int QS_ALLPOSTMESSAGE = 256
    Field Value
    Type
    System.Int32

    QS_HOTKEY

    A WM_HOTKEY message is in the queue.

    Declaration
    public const int QS_HOTKEY = 128
    Field Value
    Type
    System.Int32

    QS_INPUT

    An input message is in the queue.

    Declaration
    public const int QS_INPUT = 1031
    Field Value
    Type
    System.Int32

    QS_KEY

    A WM_KEYUP, WM_KEYDOWN, WM_SYSKEYUP, or WM_SYSKEYDOWN message is in the queue.

    Declaration
    public const int QS_KEY = 1
    Field Value
    Type
    System.Int32

    QS_MOUSE

    A WM_MOUSEMOVE message or mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on).

    Declaration
    public const int QS_MOUSE = 6
    Field Value
    Type
    System.Int32

    QS_MOUSEBUTTON

    A mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on).

    Declaration
    public const int QS_MOUSEBUTTON = 4
    Field Value
    Type
    System.Int32

    QS_MOUSEMOVE

    A WM_MOUSEMOVE message is in Queue.

    Declaration
    public const int QS_MOUSEMOVE = 2
    Field Value
    Type
    System.Int32

    QS_PAINT

    A WM_PAINT message is in the queue.

    Declaration
    public const int QS_PAINT = 32
    Field Value
    Type
    System.Int32

    QS_POSTMESSAGE

    A posted message (other than those listed here) is in the queue.

    Declaration
    public const int QS_POSTMESSAGE = 8
    Field Value
    Type
    System.Int32

    QS_RAWINPUT

    A raw input message is in the queue. For more information, see Raw Input.

    Declaration
    public const int QS_RAWINPUT = 1024
    Field Value
    Type
    System.Int32

    QS_SENDMESSAGE

    A message sent by another thread or application is in the queue.

    Declaration
    public const int QS_SENDMESSAGE = 64
    Field Value
    Type
    System.Int32

    QS_TIMER

    A WM_TIMER message is in the queue.

    Declaration
    public const int QS_TIMER = 16
    Field Value
    Type
    System.Int32

    RDW_ALLCHILDREN

    Includes the child windows in the repainting operation.

    Declaration
    public const int RDW_ALLCHILDREN = 128
    Field Value
    Type
    System.Int32

    RDW_ERASE

    Causes the window to receive a WM_ERASEBKGND message when the window is repainted. The RDW_INVALIDATE flag must also be specified; otherwise RDW_ERASE has no effect.

    Declaration
    public const int RDW_ERASE = 4
    Field Value
    Type
    System.Int32

    RDW_ERASENOW

    Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT and WM_ERASEBKGND messages, if necessary, before the function returns. WM_PAINT messages are received at the ordinary time.

    Declaration
    public const int RDW_ERASENOW = 512
    Field Value
    Type
    System.Int32

    RDW_FRAME

    Causes any part of the non-client area of the window that intersects the update region to receive a WM_NCPAINT message. The RDW_INVALIDATE flag must also be specified; otherwise, RDW_FRAME has no effect. The WM_NCPAINT message is typically not sent during the execution of RedrawWindow unless either RDW_UPDATENOW or RDW_ERASENOW is specified.

    Declaration
    public const int RDW_FRAME = 1024
    Field Value
    Type
    System.Int32

    RDW_INTERNALPAINT

    Causes a WM_PAINT message to be posted to the window regardless of whether the window contains an invalid region.

    Declaration
    public const int RDW_INTERNALPAINT = 2
    Field Value
    Type
    System.Int32

    RDW_INVALIDATE

    Indicates the invalidate.

    Declaration
    public const int RDW_INVALIDATE = 1
    Field Value
    Type
    System.Int32

    RDW_NOCHILDREN

    Excludes child windows, if any, from the repainting operation

    Declaration
    public const int RDW_NOCHILDREN = 64
    Field Value
    Type
    System.Int32

    RDW_NOERASE

    Suppress the pending WM_ERASEBKGND messages.

    Declaration
    public const int RDW_NOERASE = 32
    Field Value
    Type
    System.Int32

    RDW_NOFRAME

    Causes the window to receive a WM_ERASEBKGND message when the window is repainted. The RDW_INVALIDATE flag must also be specified; otherwise, RDW_ERASE has no effect.

    Declaration
    public const int RDW_NOFRAME = 2048
    Field Value
    Type
    System.Int32

    RDW_NOINTERNALPAINT

    Suppresses any pending internal WM_PAINT messages. This flag does not affect WM_PAINT messages resulting from invalid areas.

    Declaration
    public const int RDW_NOINTERNALPAINT = 16
    Field Value
    Type
    System.Int32

    RDW_UPDATENOW

    Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT, WM_ERASEBKGND, and WM_PAINT messages, if necessary, before the function returns.

    Declaration
    public const int RDW_UPDATENOW = 256
    Field Value
    Type
    System.Int32

    RDW_VALIDATE

    Occurs while validating the entire window. This flag does not affect internal WM_PAINT messages.

    Declaration
    public const int RDW_VALIDATE = 8
    Field Value
    Type
    System.Int32

    RGN_AND

    Creates the intersection of the two combined regions.

    Declaration
    public const int RGN_AND = 1
    Field Value
    Type
    System.Int32

    RGN_COPY

    Creates a copy of the region identified by hrgnSrc1.

    Declaration
    public const int RGN_COPY = 5
    Field Value
    Type
    System.Int32

    RGN_DIFF

    Combines the parts of hrgnSrc1 that are not part of hrgnSrc2.

    Declaration
    public const int RGN_DIFF = 4
    Field Value
    Type
    System.Int32

    RGN_OR

    Creates the union of two combined regions.

    Declaration
    public const int RGN_OR = 2
    Field Value
    Type
    System.Int32

    RGN_XOR

    Creates the union of two combined regions except for any overlapping areas.

    Declaration
    public const int RGN_XOR = 3
    Field Value
    Type
    System.Int32

    SB_CTL

    A scroll bar control

    Declaration
    public const int SB_CTL = 2
    Field Value
    Type
    System.Int32

    SB_HORZ

    The horizontal scroll bar of the specified window.

    Declaration
    public const int SB_HORZ = 0
    Field Value
    Type
    System.Int32

    SB_THUMBPOSITION

    The Thumb position of the scroll bar.

    Declaration
    public const int SB_THUMBPOSITION = 4
    Field Value
    Type
    System.Int32

    SB_VERT

    The vertical scroll bar of the specified window.

    Declaration
    public const int SB_VERT = 1
    Field Value
    Type
    System.Int32

    SBM_ENABLE_ARROWS

    Occurs while enable or disable both arrows in scrollbar.

    Declaration
    public const int SBM_ENABLE_ARROWS = 228
    Field Value
    Type
    System.Int32

    SBM_GETPOS

    Occurs when GridScrollPos is called.

    Declaration
    public const int SBM_GETPOS = 225
    Field Value
    Type
    System.Int32

    SBM_GETRANGE

    Occurs when GetSCrollRange function is called.

    Declaration
    public const int SBM_GETRANGE = 227
    Field Value
    Type
    System.Int32

    SBM_GETSCROLLINFO

    Sent by an application to retrieve information about the specified scroll bar.

    Declaration
    public const int SBM_GETSCROLLINFO = 234
    Field Value
    Type
    System.Int32

    SBM_SETPOS

    Occurs when SetScrollPos is called.

    Declaration
    public const int SBM_SETPOS = 224
    Field Value
    Type
    System.Int32

    SBM_SETRANGE

    Occurs while setting the min and maximum range of the scroll control.

    Declaration
    public const int SBM_SETRANGE = 226
    Field Value
    Type
    System.Int32

    SBM_SETRANGEREDRAW

    Occurs while setting the minimum and maximum position values and to redraw the control.

    Declaration
    public const int SBM_SETRANGEREDRAW = 230
    Field Value
    Type
    System.Int32

    SBM_SETSCROLLINFO

    Occurs while setting the scroll info.

    Declaration
    public const int SBM_SETSCROLLINFO = 233
    Field Value
    Type
    System.Int32

    SC_CLOSE

    Closes the window.

    Declaration
    public const int SC_CLOSE = 61536
    Field Value
    Type
    System.Int32

    SC_CONTEXTHELP

    Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.

    Declaration
    public const int SC_CONTEXTHELP = 61824
    Field Value
    Type
    System.Int32

    SC_DEFAULT

    Selects the default item; the user double-clicked the window menu.

    Declaration
    public const int SC_DEFAULT = 61792
    Field Value
    Type
    System.Int32

    SC_HOTKEY

    Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate.

    Declaration
    public const int SC_HOTKEY = 61776
    Field Value
    Type
    System.Int32

    SC_KEYMENU

    Retrieves the window menu as a result of a keystroke. For more information, see the Remarks section.

    Declaration
    public const int SC_KEYMENU = 61696
    Field Value
    Type
    System.Int32

    SC_MAXIMIZE

    Maximizes the window.

    Declaration
    public const int SC_MAXIMIZE = 61488
    Field Value
    Type
    System.Int32

    SC_MINIMIZE

    Minimizes the window.

    Declaration
    public const int SC_MINIMIZE = 61472
    Field Value
    Type
    System.Int32

    SC_MOUSEMENU

    Retrieves the window menu as a result of a mouse click.

    Declaration
    public const int SC_MOUSEMENU = 61584
    Field Value
    Type
    System.Int32

    SC_MOVE

    Moves the window.

    Declaration
    public const int SC_MOVE = 61456
    Field Value
    Type
    System.Int32

    SC_RESTORE

    Restores the window to its normal position and size.

    Declaration
    public const int SC_RESTORE = 61728
    Field Value
    Type
    System.Int32

    SC_SIZE

    Sizes the window.

    Declaration
    public const int SC_SIZE = 61440
    Field Value
    Type
    System.Int32

    SPI_GETWORKAREA

    Retrieves the size of the work area on the primary display monitor.

    Declaration
    public const int SPI_GETWORKAREA = 48
    Field Value
    Type
    System.Int32

    SRCCOPY

    Copies the source rectangle directly to the destination rectangle.

    Declaration
    public const int SRCCOPY = 13369376
    Field Value
    Type
    System.Int32

    SW_ERASE

    Erases the newly invalidated region by sending a WM_ERASEBKGND message to the window when specified with the SW_INVALIDATE flag.

    Declaration
    public const int SW_ERASE = 4
    Field Value
    Type
    System.Int32

    SW_HIDE

    Hides the window and activates another window.

    Declaration
    public const int SW_HIDE = 0
    Field Value
    Type
    System.Int32

    SW_INVALIDATE

    Invalidates the region identified by the hrgnUpdate parameter after scrolling.

    Declaration
    public const int SW_INVALIDATE = 2
    Field Value
    Type
    System.Int32

    SW_SCROLLCHILDREN

    Scrolls all child windows that intersect the rectangle pointed to by the prcScroll parameter. The child windows are scrolled by the number of pixels specified by the dx and dy parameters. The system sends a WM_MOVE message to all child windows that intersect the prcScroll rectangle, even if they do not move.

    Declaration
    public const int SW_SCROLLCHILDREN = 1
    Field Value
    Type
    System.Int32

    SW_SHOWMAXIMIZED

    Activates the window and displays it as a maximized window.

    Declaration
    public const int SW_SHOWMAXIMIZED = 3
    Field Value
    Type
    System.Int32

    SW_SHOWMINIMIZED

    Activates the window and displays it as a minimized window.

    Declaration
    public const int SW_SHOWMINIMIZED = 2
    Field Value
    Type
    System.Int32

    SW_SHOWNORMAL

    Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.

    Declaration
    public const int SW_SHOWNORMAL = 1
    Field Value
    Type
    System.Int32

    SW_SMOOTHSCROLL

    Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time, in milliseconds, the smooth-scrolling operation should take.

    Declaration
    public const int SW_SMOOTHSCROLL = 16
    Field Value
    Type
    System.Int32

    SWP_FRAMECHANGED

    Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.

    Declaration
    public const int SWP_FRAMECHANGED = 32
    Field Value
    Type
    System.Int32

    SWP_HIDEWINDOW

    Hides the window.

    Declaration
    public const int SWP_HIDEWINDOW = 128
    Field Value
    Type
    System.Int32

    SWP_NOACTIVATE

    Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter).

    Declaration
    public const int SWP_NOACTIVATE = 16
    Field Value
    Type
    System.Int32

    SWP_NOCOPYBITS

    Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.

    Declaration
    public const int SWP_NOCOPYBITS = 256
    Field Value
    Type
    System.Int32

    SWP_NOMOVE

    Retains the current position (ignores X and Y parameters).

    Declaration
    public const int SWP_NOMOVE = 2
    Field Value
    Type
    System.Int32

    SWP_NOOWNERZORDER

    Does not change the owner window's position in the Z order.

    Declaration
    public const int SWP_NOOWNERZORDER = 512
    Field Value
    Type
    System.Int32

    SWP_NOREDRAW

    Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to the client area, the non-client area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of the window being moved. When this flag is set, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing.

    Declaration
    public const int SWP_NOREDRAW = 8
    Field Value
    Type
    System.Int32

    SWP_NOSENDCHANGING

    Prevents the window from receiving the WM_WINDOWPOSCHANGING message.

    Declaration
    public const int SWP_NOSENDCHANGING = 1024
    Field Value
    Type
    System.Int32

    SWP_NOSIZE

    Retains the current size (ignores the cx and cy parameters).

    Declaration
    public const int SWP_NOSIZE = 1
    Field Value
    Type
    System.Int32

    SWP_NOZORDER

    Retains the current Z order (ignores the hWndInsertAfter parameter).

    Declaration
    public const int SWP_NOZORDER = 4
    Field Value
    Type
    System.Int32

    SWP_SHOWWINDOW

    Displays the window.

    Declaration
    public const int SWP_SHOWWINDOW = 64
    Field Value
    Type
    System.Int32

    TME_LEAVE

    A Notification is delivered as a WM_MOUSELEAVE message. If the mouse is not over the specified window or area, a leave notification is generated immediately and no further tracking is performed.

    Declaration
    public const int TME_LEAVE = 2
    Field Value
    Type
    System.Int32

    TME_NONCLIENT

    If the mouse is hover on or leave from the non client areas a notification is delivered as WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.

    Declaration
    public const int TME_NONCLIENT = 16
    Field Value
    Type
    System.Int32

    UllArgumentsBitMask

    One of the fields in GESTUREINFO structure is type of System.Int64 (8 bytes). The relevant gesture information is stored in lower 4 bytes. This bit mask is used to get 4 lower bytes from this argument.

    Declaration
    public const long UllArgumentsBitMask = 4294967295L
    Field Value
    Type
    System.Int64

    WA_ACTIVE

    Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window).

    Declaration
    public const int WA_ACTIVE = 1
    Field Value
    Type
    System.Int32

    WA_CLICKACTIVE

    Activated by a mouse click.

    Declaration
    public const int WA_CLICKACTIVE = 2
    Field Value
    Type
    System.Int32

    WA_INACTIVE

    Indicates the deactivated.

    Declaration
    public const int WA_INACTIVE = 0
    Field Value
    Type
    System.Int32

    WAIT_OBJECT_0

    The state of the specified object is signaled.

    Declaration
    public const int WAIT_OBJECT_0 = 0
    Field Value
    Type
    System.Int32

    WAIT_TIMEOUT

    The time-out interval elapsed, and the object's state is non-signaled.

    Declaration
    public const int WAIT_TIMEOUT = 258
    Field Value
    Type
    System.Int32

    WM_ACTIVATE

    Sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top-level window being activated. If the windows use different input queues, the message is sent asynchronously, so the window is activated immediately.

    Declaration
    public const int WM_ACTIVATE = 6
    Field Value
    Type
    System.Int32

    WM_ACTIVATEAPP

    Sent when a window belonging to a different application than the active window is about to be activated. The message is sent to the application whose window is being activated and to the application whose window is being deactivated.

    Declaration
    public const int WM_ACTIVATEAPP = 28
    Field Value
    Type
    System.Int32

    WM_AFXFIRST

    Represents the window message Affix first.

    Declaration
    public const int WM_AFXFIRST = 864
    Field Value
    Type
    System.Int32

    WM_AFXLAST

    Represents the window message Affix last.

    Declaration
    public const int WM_AFXLAST = 895
    Field Value
    Type
    System.Int32

    WM_APP

    Used to define private messages, usually of the form WM_APP+x, where x is an integer value.

    Declaration
    public const int WM_APP = 32768
    Field Value
    Type
    System.Int32

    WM_ASKCBFORMATNAME

    Sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format.

    Declaration
    public const int WM_ASKCBFORMATNAME = 780
    Field Value
    Type
    System.Int32

    WM_CANCELJOURNAL

    Posted to an application when a user cancels the application's journaling activities. The message is posted with a NULL window handle.

    Declaration
    public const int WM_CANCELJOURNAL = 75
    Field Value
    Type
    System.Int32

    WM_CANCELMODE

    Sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window.

    Declaration
    public const int WM_CANCELMODE = 31
    Field Value
    Type
    System.Int32

    WM_CAPTURECHANGED

    Sent to the window that is losing the mouse capture.

    Declaration
    public const int WM_CAPTURECHANGED = 533
    Field Value
    Type
    System.Int32

    WM_CHANGECBCHAIN

    Sent to the first window in the clipboard viewer chain when a window is being removed from the chain.

    Declaration
    public const int WM_CHANGECBCHAIN = 781
    Field Value
    Type
    System.Int32

    WM_CHANGEUISTATE

    An application sends the WM_CHANGEUISTATE message to indicate that the UI state should be changed.

    Declaration
    public const int WM_CHANGEUISTATE = 295
    Field Value
    Type
    System.Int32

    WM_CHAR

    Posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function. The WM_CHAR message contains the character code of the key that was pressed.

    Declaration
    public const int WM_CHAR = 258
    Field Value
    Type
    System.Int32

    WM_CHARTOITEM

    Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message.

    Declaration
    public const int WM_CHARTOITEM = 47
    Field Value
    Type
    System.Int32

    WM_CHILDACTIVATE

    Sent to a child window when the user clicks the window's title bar or when the window is activated, moved, or sized.

    Declaration
    public const int WM_CHILDACTIVATE = 34
    Field Value
    Type
    System.Int32

    WM_CHOOSEFONT_GETLOGFONT

    An application sends the WM_CHOOSEFONT_GETLOGFONT message to a Font dialog box to retrieve information about the user's current font selections.

    Declaration
    public const int WM_CHOOSEFONT_GETLOGFONT = 1025
    Field Value
    Type
    System.Int32

    WM_CLEAR

    An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control.

    Declaration
    public const int WM_CLEAR = 771
    Field Value
    Type
    System.Int32

    WM_CLOSE

    Sent as a signal that a window or an application should terminate.

    Declaration
    public const int WM_CLOSE = 16
    Field Value
    Type
    System.Int32

    WM_COMMAND

    Sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated.

    Declaration
    public const int WM_COMMAND = 273
    Field Value
    Type
    System.Int32

    WM_COMMNOTIFY

    Represents the common action is performed.

    Declaration
    public const int WM_COMMNOTIFY = 68
    Field Value
    Type
    System.Int32

    WM_COMPACTING

    Sent to all top-level windows when the system detects more than 12.5 percent of system time over a 30- to 60-second interval is being spent compacting memory. This indicates that system memory is low.

    Declaration
    public const int WM_COMPACTING = 65
    Field Value
    Type
    System.Int32

    WM_COMPAREITEM

    Sent to determine the relative position of a new item in the sorted list of an owner-drawn combo box or list box. Whenever the application adds a new item, the system sends this message to the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style.

    Declaration
    public const int WM_COMPAREITEM = 57
    Field Value
    Type
    System.Int32

    WM_CONTEXTMENU

    Notifies a window that the user clicked the right mouse button (right-clicked) in the window.

    Declaration
    public const int WM_CONTEXTMENU = 123
    Field Value
    Type
    System.Int32

    WM_COPY

    An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format.

    Declaration
    public const int WM_COPY = 769
    Field Value
    Type
    System.Int32

    WM_COPYDATA

    An application sends the WM_COPYDATA message to pass data to another application.

    Declaration
    public const int WM_COPYDATA = 74
    Field Value
    Type
    System.Int32

    WM_CREATE

    Sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function. (The message is sent before the function returns.) The window procedure of the new window receives this message after the window is created, but before the window becomes visible.

    Declaration
    public const int WM_CREATE = 1
    Field Value
    Type
    System.Int32

    WM_CTLCOLORBTN

    The WM_CTLCOLORBTN message is sent to the parent window of a button before drawing the button. The parent window can change the button's text and background colors. However, only owner-drawn buttons respond to the parent window processing this message.

    Declaration
    public const int WM_CTLCOLORBTN = 309
    Field Value
    Type
    System.Int32

    WM_CTLCOLORDLG

    Sent to a dialog box before the system draws the dialog box. By responding to this message, the dialog box can set its text and background colors using the specified display device context handle.

    Declaration
    public const int WM_CTLCOLORDLG = 310
    Field Value
    Type
    System.Int32

    WM_CTLCOLOREDIT

    An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control.

    Declaration
    public const int WM_CTLCOLOREDIT = 307
    Field Value
    Type
    System.Int32

    WM_CTLCOLORLISTBOX

    Sent to the parent window of a list box before the system draws the list box. By responding to this message, the parent window can set the text and background colors of the list box by using the specified display device context handle.

    Declaration
    public const int WM_CTLCOLORLISTBOX = 308
    Field Value
    Type
    System.Int32

    WM_CTLCOLORMSGBOX

    Send to owner window before draws the MessageBox.

    Declaration
    public const int WM_CTLCOLORMSGBOX = 306
    Field Value
    Type
    System.Int32

    WM_CTLCOLORSCROLLBAR

    Occurs while the scroll bar is drawn. by handling this message user can customize the background color of the scrollbar.

    Declaration
    public const int WM_CTLCOLORSCROLLBAR = 311
    Field Value
    Type
    System.Int32

    WM_CTLCOLORSTATIC

    A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text foreground and background colors of the static control.

    Declaration
    public const int WM_CTLCOLORSTATIC = 312
    Field Value
    Type
    System.Int32

    WM_CUT

    An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format.

    Declaration
    public const int WM_CUT = 768
    Field Value
    Type
    System.Int32

    WM_DDE_ACK

    The WM_DDE_ACK message notifies a Dynamic Data Exchange (DDE) application of the receipt and processing of the following messages: WM_DDE_POKE, WM_DDE_EXECUTE, WM_DDE_DATA, WM_DDE_ADVISE, WM_DDE_UNADVISE, WM_DDE_INITIATE, or WM_DDE_REQUEST (in some cases).

    Declaration
    public const int WM_DDE_ACK = 996
    Field Value
    Type
    System.Int32

    WM_DDE_ADVISE

    A Dynamic Data Exchange (DDE) client application posts the WM_DDE_ADVISE message to a DDE server application to request the server to supply an update for a data item whenever the item changes. To post this message, call the PostMessage function with the following parameters.

    Declaration
    public const int WM_DDE_ADVISE = 994
    Field Value
    Type
    System.Int32

    WM_DDE_DATA

    A Dynamic Data Exchange (DDE) server application posts a WM_DDE_DATA message to a DDE client application to pass a data item to the client or to notify the client of the availability of a data item.

    Declaration
    public const int WM_DDE_DATA = 997
    Field Value
    Type
    System.Int32

    WM_DDE_EXECUTE

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_EXECUTE message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response.

    Declaration
    public const int WM_DDE_EXECUTE = 1000
    Field Value
    Type
    System.Int32

    WM_DDE_FIRST

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_FIRST message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response.

    Declaration
    public const int WM_DDE_FIRST = 992
    Field Value
    Type
    System.Int32

    WM_DDE_INITIATE

    A Dynamic Data Exchange (DDE) client application sends a WM_DDE_INITIATE message to initiate a conversation with a server application responding to the specified application and topic names. Upon receiving this message, all server applications with names that match the specified application and that support the specified topic are expected to acknowledge it.

    Declaration
    public const int WM_DDE_INITIATE = 992
    Field Value
    Type
    System.Int32

    WM_DDE_LAST

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_LAST message to a DDE server application.

    Declaration
    public const int WM_DDE_LAST = 1000
    Field Value
    Type
    System.Int32

    WM_DDE_POKE

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_POKE message to a DDE server application. A client uses this message to request the server to accept an unsolicited data item. The server is expected to reply with a WM_DDE_ACK message indicating whether it accepted the data item.

    Declaration
    public const int WM_DDE_POKE = 999
    Field Value
    Type
    System.Int32

    WM_DDE_REQUEST

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_REQUEST message to a DDE server application to request the value of a data item.

    Declaration
    public const int WM_DDE_REQUEST = 998
    Field Value
    Type
    System.Int32

    WM_DDE_TERMINATE

    A Dynamic Data Exchange (DDE) application (client or server) posts a WM_DDE_TERMINATE message to terminate a conversation.

    Declaration
    public const int WM_DDE_TERMINATE = 993
    Field Value
    Type
    System.Int32

    WM_DDE_UNADVISE

    A Dynamic Data Exchange (DDE) client application posts a WM_DDE_UNADVISE message to inform a DDE server application that the specified item or a particular clipboard format for the item should no longer be updated. This terminates the warm or hot data link for the specified item.

    Declaration
    public const int WM_DDE_UNADVISE = 995
    Field Value
    Type
    System.Int32

    WM_DEADCHAR

    Posted to the window with the keyboard focus when a WM_KEYUP message is translated by the TranslateMessage function. WM_DEADCHAR specifies a character code generated by a dead key. A dead key is a key that generates a character, such as the umlaut (double-dot), that is combined with another character to form a composite character. For example, the umlaut-O character (Ö) is generated by typing the dead key for the umlaut character, and then typing the O key.

    Declaration
    public const int WM_DEADCHAR = 259
    Field Value
    Type
    System.Int32

    WM_DELETEITEM

    Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.

    Declaration
    public const int WM_DELETEITEM = 45
    Field Value
    Type
    System.Int32

    WM_DESTROY

    Sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen. This message is sent first to the window being destroyed and then to the child windows (if any) as they are destroyed. During the processing of the message, it can be assumed that all child windows still exist.

    Declaration
    public const int WM_DESTROY = 2
    Field Value
    Type
    System.Int32

    WM_DESTROYCLIPBOARD

    Sent to the clipboard owner when a call to the EmptyClipboard function empties the clipboard.

    Declaration
    public const int WM_DESTROYCLIPBOARD = 775
    Field Value
    Type
    System.Int32

    WM_DEVICECHANGE

    Notifies an application of a change to the hardware configuration of a device or the computer.

    Declaration
    public const int WM_DEVICECHANGE = 537
    Field Value
    Type
    System.Int32

    WM_DEVMODECHANGE

    The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings.

    Declaration
    public const int WM_DEVMODECHANGE = 27
    Field Value
    Type
    System.Int32

    WM_DISPLAYCHANGE

    The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.

    Declaration
    public const int WM_DISPLAYCHANGE = 126
    Field Value
    Type
    System.Int32

    WM_DRAWCLIPBOARD

    Sent to the first window in the clipboard viewer chain when the content of the clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard.

    Declaration
    public const int WM_DRAWCLIPBOARD = 776
    Field Value
    Type
    System.Int32

    WM_DRAWITEM

    Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed.

    Declaration
    public const int WM_DRAWITEM = 43
    Field Value
    Type
    System.Int32

    WM_DROPFILES

    Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files.

    Declaration
    public const int WM_DROPFILES = 563
    Field Value
    Type
    System.Int32

    WM_ENABLE

    Sent when an application changes the enabled state of a window. It is sent to the window whose enabled state is changing. This message is sent before the EnableWindow function returns, but after the enabled state (WS_DISABLED style bit) of the window has changed.

    Declaration
    public const int WM_ENABLE = 10
    Field Value
    Type
    System.Int32

    WM_ENDSESSION

    The WM_ENDSESSION message is sent to an application after the system processes the results of the WM_QUERYENDSESSION message. The WM_ENDSESSION message informs the application whether the session is ending.

    Declaration
    public const int WM_ENDSESSION = 22
    Field Value
    Type
    System.Int32

    WM_ENTERIDLE

    Sent to the owner window of a modal dialog box or menu that is entering an idle state. A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed one or more previous messages.

    Declaration
    public const int WM_ENTERIDLE = 289
    Field Value
    Type
    System.Int32

    WM_ENTERMENULOOP

    Notifies an application's main window procedure that a menu modal loop has been entered.

    Declaration
    public const int WM_ENTERMENULOOP = 529
    Field Value
    Type
    System.Int32

    WM_ENTERSIZEMOVE

    Sent one time to a window after it enters the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. The system sends the WM_ENTERSIZEMOVE message regardless of whether the dragging of full windows is enabled.

    Declaration
    public const int WM_ENTERSIZEMOVE = 561
    Field Value
    Type
    System.Int32

    WM_ERASEBKGND

    Sent when the window background must be erased (for example, when a window is resized). The message is sent to prepare an invalidated portion of a window for painting.

    Declaration
    public const int WM_ERASEBKGND = 20
    Field Value
    Type
    System.Int32

    WM_EXITMENULOOP

    Notifies an application's main window procedure that a menu modal loop has been exited.

    Declaration
    public const int WM_EXITMENULOOP = 530
    Field Value
    Type
    System.Int32

    WM_EXITSIZEMOVE

    Sent one time to a window, after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns.

    Declaration
    public const int WM_EXITSIZEMOVE = 562
    Field Value
    Type
    System.Int32

    WM_FONTCHANGE

    An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

    Declaration
    public const int WM_FONTCHANGE = 29
    Field Value
    Type
    System.Int32

    WM_GESTURE

    Passes the information about the gesture.

    Declaration
    public const int WM_GESTURE = 281
    Field Value
    Type
    System.Int32

    WM_GESTURENOTIFY

    Provides the chance for configure the gestures. Handling the WM_GESTURENOTIFY message will change the gesture configuration for the lifetime of the Window, not just for the next gesture.

    Declaration
    public const int WM_GESTURENOTIFY = 282
    Field Value
    Type
    System.Int32

    WM_GETDLGCODE

    Sent to the window procedure associated with a control. By default, the system handles all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types of input it wants to process itself.

    Declaration
    public const int WM_GETDLGCODE = 135
    Field Value
    Type
    System.Int32

    WM_GETFONT

    Retrieves the font with which the control is currently drawing its text.

    Declaration
    public const int WM_GETFONT = 49
    Field Value
    Type
    System.Int32

    WM_GETHOTKEY

    Sent to determine the hot key associated with a window.

    Declaration
    public const int WM_GETHOTKEY = 51
    Field Value
    Type
    System.Int32

    WM_GETICON

    Sent to a window to retrieve a handle to the large or small icon associated with a window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption.

    Declaration
    public const int WM_GETICON = 127
    Field Value
    Type
    System.Int32

    WM_GETMINMAXINFO

    Sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size.

    Declaration
    public const int WM_GETMINMAXINFO = 36
    Field Value
    Type
    System.Int32

    WM_GETOBJECT

    Sent by both Microsoft Active Accessibility and Microsoft UI Automation to obtain information about an accessible object contained in a server application.

    Declaration
    public const int WM_GETOBJECT = 61
    Field Value
    Type
    System.Int32

    WM_GETTEXT

    Copies the text that corresponds to a window into a buffer provided by the caller.

    Declaration
    public const int WM_GETTEXT = 13
    Field Value
    Type
    System.Int32

    WM_GETTEXTLENGTH

    Determines the length, in characters, of the text associated with a window.

    Declaration
    public const int WM_GETTEXTLENGTH = 14
    Field Value
    Type
    System.Int32

    WM_HANDHELDFIRST

    Represents the window message that handled first.

    Declaration
    public const int WM_HANDHELDFIRST = 856
    Field Value
    Type
    System.Int32

    WM_HANDHELDLAST

    Represents the window message that handled last.

    Declaration
    public const int WM_HANDHELDLAST = 863
    Field Value
    Type
    System.Int32

    WM_HELP

    Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed, WM_HELP is sent to the window associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has the keyboard focus, WM_HELP is sent to the currently active window.

    Declaration
    public const int WM_HELP = 83
    Field Value
    Type
    System.Int32

    WM_HOTKEY

    Posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key.

    Declaration
    public const int WM_HOTKEY = 786
    Field Value
    Type
    System.Int32

    WM_HSCROLL

    Occurs when the horizontal scrolling is made on the control or scrollbar.

    Declaration
    public const int WM_HSCROLL = 276
    Field Value
    Type
    System.Int32

    WM_HSCROLLCLIPBOARD

    Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image and update the scroll bar values.

    Declaration
    public const int WM_HSCROLLCLIPBOARD = 782
    Field Value
    Type
    System.Int32

    WM_ICONERASEBKGND

    This message is sent to a minimized window when the background of the icon must be filled before painting the icon. A window receives this message only if a class icon is defined for the window; otherwise, WM_ERASEBKGND is sent.

    Declaration
    public const int WM_ICONERASEBKGND = 39
    Field Value
    Type
    System.Int32

    WM_IME_CHAR

    Sent to an application when the IME gets a character of the conversion result.

    Declaration
    public const int WM_IME_CHAR = 646
    Field Value
    Type
    System.Int32

    WM_IME_COMPOSITION

    Sent to an application when the IME changes composition status as a result of a keystroke. A window receives this message through its WindowProc function.

    Declaration
    public const int WM_IME_COMPOSITION = 271
    Field Value
    Type
    System.Int32

    WM_IME_COMPOSITIONFULL

    Sent to an application when the IME window finds no space to extend the area for the composition window.

    Declaration
    public const int WM_IME_COMPOSITIONFULL = 644
    Field Value
    Type
    System.Int32

    WM_IME_CONTROL

    Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message, the application calls the SendMessage function with the following parameters.

    Declaration
    public const int WM_IME_CONTROL = 643
    Field Value
    Type
    System.Int32

    WM_IME_ENDCOMPOSITION

    Sent to an application when the IME ends composition. A window receives this message through its WindowProc function.

    Declaration
    public const int WM_IME_ENDCOMPOSITION = 270
    Field Value
    Type
    System.Int32

    WM_IME_KEYDOWN

    Sent to an application by the IME to notify the application of a key press and to keep message order.

    Declaration
    public const int WM_IME_KEYDOWN = 656
    Field Value
    Type
    System.Int32

    WM_IME_KEYLAST

    Sent to an application by the IME to notify the application of a key last and to keep message order.

    Declaration
    public const int WM_IME_KEYLAST = 271
    Field Value
    Type
    System.Int32

    WM_IME_KEYUP

    Sent to an application by the IME to notify the application of a key release and to keep message order

    Declaration
    public const int WM_IME_KEYUP = 657
    Field Value
    Type
    System.Int32

    WM_IME_NOTIFY

    Sent to an application to notify it of changes to the IME window.

    Declaration
    public const int WM_IME_NOTIFY = 642
    Field Value
    Type
    System.Int32

    WM_IME_SELECT

    Sent to an application when the operating system is about to change the current IME.

    Declaration
    public const int WM_IME_SELECT = 645
    Field Value
    Type
    System.Int32

    WM_IME_SETCONTEXT

    Sent to an application when a window is activated.

    Declaration
    public const int WM_IME_SETCONTEXT = 641
    Field Value
    Type
    System.Int32

    WM_IME_STARTCOMPOSITION

    Sent immediately before the IME generates the composition string as a result of a keystroke.

    Declaration
    public const int WM_IME_STARTCOMPOSITION = 269
    Field Value
    Type
    System.Int32

    WM_INITDIALOG

    Sent to the dialog box procedure immediately before a dialog box is displayed. Dialog box procedures typically use this message to initialize controls and carry out any other initialization tasks that affect the appearance of the dialog box.

    Declaration
    public const int WM_INITDIALOG = 272
    Field Value
    Type
    System.Int32

    WM_INITMENU

    Sent when a menu is about to become active. It occurs when the user clicks an item on the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed.

    Declaration
    public const int WM_INITMENU = 278
    Field Value
    Type
    System.Int32

    WM_INITMENUPOPUP

    Sent when a drop-down menu or submenu is about to become active. This allows an application to modify the menu before it is displayed, without changing the entire menu.

    Declaration
    public const int WM_INITMENUPOPUP = 279
    Field Value
    Type
    System.Int32

    WM_INPUTLANGCHANGE

    Sent to the topmost affected window after an application's input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on.

    Declaration
    public const int WM_INPUTLANGCHANGE = 81
    Field Value
    Type
    System.Int32

    WM_INPUTLANGCHANGEREQUEST

    Posted to the window with the focus when the user chooses a new input language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the system taskbar. An application can accept the change by passing the message to the DefWindowProc function or reject the change (and prevent it from taking place) by returning immediately.

    Declaration
    public const int WM_INPUTLANGCHANGEREQUEST = 80
    Field Value
    Type
    System.Int32

    WM_KEYDOWN

    Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed.

    Declaration
    public const int WM_KEYDOWN = 256
    Field Value
    Type
    System.Int32

    WM_KEYFIRST

    This message filters for keyboard messages.

    Declaration
    public const int WM_KEYFIRST = 256
    Field Value
    Type
    System.Int32

    WM_KEYLAST

    This message filters for keyboard messages.

    Declaration
    public const int WM_KEYLAST = 264
    Field Value
    Type
    System.Int32

    WM_KEYUP

    Posted to the window with the keyboard focus when a nonsystem key is released. A nonsystem key is a key that is pressed when the ALT key is not pressed, or a keyboard key that is pressed when a window has the keyboard focus.

    Declaration
    public const int WM_KEYUP = 257
    Field Value
    Type
    System.Int32

    WM_KILLFOCUS

    Sent to a window immediately before it loses the keyboard focus.

    Declaration
    public const int WM_KILLFOCUS = 8
    Field Value
    Type
    System.Int32

    WM_LBUTTONDBLCLK

    Posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_LBUTTONDBLCLK = 515
    Field Value
    Type
    System.Int32

    WM_LBUTTONDOWN

    Posted when the user presses the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_LBUTTONDOWN = 513
    Field Value
    Type
    System.Int32

    WM_LBUTTONUP

    Posted when the user releases the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_LBUTTONUP = 514
    Field Value
    Type
    System.Int32

    WM_MBUTTONDBLCLK

    Posted when the user double-clicks the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_MBUTTONDBLCLK = 521
    Field Value
    Type
    System.Int32

    WM_MBUTTONDOWN

    Posted when the user presses the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_MBUTTONDOWN = 519
    Field Value
    Type
    System.Int32

    WM_MBUTTONUP

    Posted when the user releases the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_MBUTTONUP = 520
    Field Value
    Type
    System.Int32

    WM_MDIACTIVATE

    An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct the client window to activate a different MDI child window.

    Declaration
    public const int WM_MDIACTIVATE = 546
    Field Value
    Type
    System.Int32

    WM_MDICASCADE

    An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all its child windows in a cascade format.

    Declaration
    public const int WM_MDICASCADE = 551
    Field Value
    Type
    System.Int32

    WM_MDICREATE

    An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.

    Declaration
    public const int WM_MDICREATE = 544
    Field Value
    Type
    System.Int32

    WM_MDIDESTROY

    An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.

    Declaration
    public const int WM_MDIDESTROY = 545
    Field Value
    Type
    System.Int32

    WM_MDIGETACTIVE

    An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve the handle to the active MDI child window.

    Declaration
    public const int WM_MDIGETACTIVE = 553
    Field Value
    Type
    System.Int32

    WM_MDIICONARRANGE

    An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange all minimized MDI child windows. It does not affect child windows that are not minimized.

    Declaration
    public const int WM_MDIICONARRANGE = 552
    Field Value
    Type
    System.Int32

    WM_MDIMAXIMIZE

    An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. The system also appends the title bar text of the child window to that of the frame window.

    Declaration
    public const int WM_MDIMAXIMIZE = 549
    Field Value
    Type
    System.Int32

    WM_MDINEXT

    An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.

    Declaration
    public const int WM_MDINEXT = 548
    Field Value
    Type
    System.Int32

    WM_MDIREFRESHMENU

    An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh the window menu of the MDI frame window.

    Declaration
    public const int WM_MDIREFRESHMENU = 564
    Field Value
    Type
    System.Int32

    WM_MDIRESTORE

    An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an MDI child window from maximized or minimized size.

    Declaration
    public const int WM_MDIRESTORE = 547
    Field Value
    Type
    System.Int32

    WM_MDISETMENU

    An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the entire menu of an MDI frame window, to replace the window menu of the frame window, or both.

    Declaration
    public const int WM_MDISETMENU = 560
    Field Value
    Type
    System.Int32

    WM_MDITILE

    An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of its MDI child windows in a tile format.

    Declaration
    public const int WM_MDITILE = 550
    Field Value
    Type
    System.Int32

    WM_MEASUREITEM

    Sent to the owner window of a combo box, list box, list-view control, or menu item when the control or menu is created.

    Declaration
    public const int WM_MEASUREITEM = 44
    Field Value
    Type
    System.Int32

    WM_MENUCHAR

    Sent when a menu is active and the user presses a key that does not correspond to any mnemonic or accelerator key. This message is sent to the window that owns the menu.

    Declaration
    public const int WM_MENUCHAR = 288
    Field Value
    Type
    System.Int32

    WM_MENUSELECT

    Sent to a menu's owner window when the user selects a menu item.

    Declaration
    public const int WM_MENUSELECT = 287
    Field Value
    Type
    System.Int32

    WM_MOUSEACTIVATE

    Sent when the cursor is in an inactive window and the user presses a mouse button. The parent window receives this message only if the child window passes it to the DefWindowProc function.

    Declaration
    public const int WM_MOUSEACTIVATE = 33
    Field Value
    Type
    System.Int32

    WM_MOUSEFIRST

    Specify the first mouse message.

    Declaration
    public const int WM_MOUSEFIRST = 512
    Field Value
    Type
    System.Int32

    WM_MOUSEHOVER

    Posted to a window when the cursor hovers over the client area of the window for the period of time specified in a prior call to TrackMouseEvent.

    Declaration
    public const int WM_MOUSEHOVER = 673
    Field Value
    Type
    System.Int32

    WM_MOUSELAST

    Posted to a window to get the last mouse position.

    Declaration
    public const int WM_MOUSELAST = 522
    Field Value
    Type
    System.Int32

    WM_MOUSELEAVE

    Posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent.

    Declaration
    public const int WM_MOUSELEAVE = 675
    Field Value
    Type
    System.Int32

    WM_MOUSEMOVE

    Posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_MOUSEMOVE = 512
    Field Value
    Type
    System.Int32

    WM_MOUSEWHEEL

    Sent to the focus window when the mouse wheel is rotated. The DefWindowProc function propagates the message to the window's parent. There should be no internal forwarding of the message, since DefWindowProc propagates it up the parent chain until it finds a window that processes it.

    Declaration
    public const int WM_MOUSEWHEEL = 522
    Field Value
    Type
    System.Int32

    WM_MOVE

    Sent after a window has been moved.

    Declaration
    public const int WM_MOVE = 3
    Field Value
    Type
    System.Int32

    WM_MOVING

    Sent while window is in moving.

    Declaration
    public const int WM_MOVING = 534
    Field Value
    Type
    System.Int32

    WM_NCACTIVATE

    Sent to a window when its non client area needs to be changed to indicate an active or inactive state.

    Declaration
    public const int WM_NCACTIVATE = 134
    Field Value
    Type
    System.Int32

    WM_NCCALCSIZE

    Sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes.

    Declaration
    public const int WM_NCCALCSIZE = 131
    Field Value
    Type
    System.Int32

    WM_NCCREATE

    Sent prior to the WM_CREATE message when a window is first created.

    Declaration
    public const int WM_NCCREATE = 129
    Field Value
    Type
    System.Int32

    WM_NCDESTROY

    Notifies a window that its non client area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message.WM_DESTROY is used to free the allocated memory object associated with the window. The WM_NCDESTROY message is sent after the child windows have been destroyed. In contrast, WM_DESTROY is sent before the child windows are destroyed.

    Declaration
    public const int WM_NCDESTROY = 130
    Field Value
    Type
    System.Int32

    WM_NCHITTEST

    Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate. This can happen, for example, when the cursor moves, when a mouse button is pressed or released, or in response to a call to a function such as WindowFromPoint. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse.

    Declaration
    public const int WM_NCHITTEST = 132
    Field Value
    Type
    System.Int32

    WM_NCLBUTTONDBLCLK

    Posted when the user double-clicks the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCLBUTTONDBLCLK = 163
    Field Value
    Type
    System.Int32

    WM_NCLBUTTONDOWN

    Posted when the user presses the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCLBUTTONDOWN = 161
    Field Value
    Type
    System.Int32

    WM_NCLBUTTONUP

    Posted when the user releases the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCLBUTTONUP = 162
    Field Value
    Type
    System.Int32

    WM_NCMBUTTONDBLCLK

    Posted when the user double-clicks the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCMBUTTONDBLCLK = 169
    Field Value
    Type
    System.Int32

    WM_NCMBUTTONDOWN

    Posted when the user presses the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCMBUTTONDOWN = 167
    Field Value
    Type
    System.Int32

    WM_NCMBUTTONUP

    Posted when the user releases the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCMBUTTONUP = 168
    Field Value
    Type
    System.Int32

    WM_NCMOUSEHOVER

    Posted to a window when the cursor hovers over the non-client area of the window for the period of time specified in a prior call to TrackMouseEvent.

    Declaration
    public const int WM_NCMOUSEHOVER = 672
    Field Value
    Type
    System.Int32

    WM_NCMOUSELEAVE

    Posted to a window when the cursor leaves the non-client area of the window specified in a prior call to TrackMouseEvent.

    Declaration
    public const int WM_NCMOUSELEAVE = 674
    Field Value
    Type
    System.Int32

    WM_NCMOUSEMOVE

    Posted to a window when the cursor is moved within the non-client area of the window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCMOUSEMOVE = 160
    Field Value
    Type
    System.Int32

    WM_NCPAINT

    Indicates that the frame must need a paint.

    Declaration
    public const int WM_NCPAINT = 133
    Field Value
    Type
    System.Int32

    WM_NCRBUTTONDBLCLK

    Posted when the user double-clicks the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCRBUTTONDBLCLK = 166
    Field Value
    Type
    System.Int32

    WM_NCRBUTTONDOWN

    Posted when the user presses the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCRBUTTONDOWN = 164
    Field Value
    Type
    System.Int32

    WM_NCRBUTTONUP

    Posted when the user releases the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted.

    Declaration
    public const int WM_NCRBUTTONUP = 165
    Field Value
    Type
    System.Int32

    WM_NEXTDLGCTL

    Sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box.

    Declaration
    public const int WM_NEXTDLGCTL = 40
    Field Value
    Type
    System.Int32

    WM_NEXTMENU

    Sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu.

    Declaration
    public const int WM_NEXTMENU = 531
    Field Value
    Type
    System.Int32

    WM_NOTIFY

    Sent by a common control to its parent window when an event has occurred or the control requires some information.

    Declaration
    public const int WM_NOTIFY = 78
    Field Value
    Type
    System.Int32

    WM_NOTIFYFORMAT

    Determines if a window accepts ANSI or Unicode structures in the WM_NOTIFY notification message. WM_NOTIFYFORMAT messages are sent from a common control to its parent window and from the parent window to the common control.

    Declaration
    public const int WM_NOTIFYFORMAT = 85
    Field Value
    Type
    System.Int32

    WM_NULL

    Performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.

    Declaration
    public const int WM_NULL = 0
    Field Value
    Type
    System.Int32

    WM_PAINT

    Indicates the window request for the paint.

    Declaration
    public const int WM_PAINT = 15
    Field Value
    Type
    System.Int32

    WM_PAINTCLIPBOARD

    Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting.

    Declaration
    public const int WM_PAINTCLIPBOARD = 777
    Field Value
    Type
    System.Int32

    WM_PAINTICON

    The WM_PAINTICON message is sent to a minimized window when the icon is to be painted but only if the application is written for Windows 3.x. A window receives this message only if a class icon is defined for the window; otherwise, WM_PAINT is sent instead.

    Declaration
    public const int WM_PAINTICON = 38
    Field Value
    Type
    System.Int32

    WM_PALETTECHANGED

    The WM_PALETTECHANGED message is sent to all top-level and overlapped windows after the window with the keyboard focus has realized its logical palette, thereby changing the system palette. This message enables a window that uses a color palette but does not have the keyboard focus to realize its logical palette and update its client area.

    Declaration
    public const int WM_PALETTECHANGED = 785
    Field Value
    Type
    System.Int32

    WM_PALETTEISCHANGING

    The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette.

    Declaration
    public const int WM_PALETTEISCHANGING = 784
    Field Value
    Type
    System.Int32

    WM_PARENTNOTIFY

    Sent to a window when a significant action occurs on a descendant window. This message is now extended to include the WM_POINTERDOWN event. When the child window is being created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed, the system sends the message before any processing to destroy the window takes place.

    Declaration
    public const int WM_PARENTNOTIFY = 528
    Field Value
    Type
    System.Int32

    WM_PASTE

    An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format.

    Declaration
    public const int WM_PASTE = 770
    Field Value
    Type
    System.Int32

    WM_PENWINFIRST

    The pend that creates first for the drawing.

    Declaration
    public const int WM_PENWINFIRST = 896
    Field Value
    Type
    System.Int32

    WM_PENWINLAST

    The pend that creates last for the drawing.

    Declaration
    public const int WM_PENWINLAST = 911
    Field Value
    Type
    System.Int32

    WM_POWER

    Notifies applications that the system, typically a battery-powered personal computer, is about to enter a suspended mode.

    Declaration
    public const int WM_POWER = 72
    Field Value
    Type
    System.Int32

    WM_POWERBROADCAST

    Notifies applications that a power-management event has occurred.

    Declaration
    public const int WM_POWERBROADCAST = 536
    Field Value
    Type
    System.Int32

    WM_PRINT

    The WM_PRINT message is sent to a window to request that it draw itself in the specified device context, most commonly in a printer device context.

    Declaration
    public const int WM_PRINT = 791
    Field Value
    Type
    System.Int32

    WM_PRINTCLIENT

    The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device context, most commonly in a printer device context. Unlike WM_PRINT, WM_PRINTCLIENT is not processed by DefWindowProc. A window should process the WM_PRINTCLIENT message through an application-defined WindowProc function for it to be used properly.

    Declaration
    public const int WM_PRINTCLIENT = 792
    Field Value
    Type
    System.Int32

    WM_PSD_ENVSTAMPRECT

    Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the envelope-stamp rectangle of the sample page.

    Declaration
    public const int WM_PSD_ENVSTAMPRECT = 1029
    Field Value
    Type
    System.Int32

    WM_PSD_FULLPAGERECT

    Notifies a PagePaintHook hook procedure of the coordinates of the sample page rectangle in the Page Setup dialog box. The dialog box sends this message when it is about to draw the contents of the sample page.

    Declaration
    public const int WM_PSD_FULLPAGERECT = 1025
    Field Value
    Type
    System.Int32

    WM_PSD_GREEKTEXTRECT

    Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw Greek text inside the margin rectangle of the sample page.

    Declaration
    public const int WM_PSD_GREEKTEXTRECT = 1028
    Field Value
    Type
    System.Int32

    WM_PSD_MARGINRECT

    Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the margin rectangle of the sample page.

    Declaration
    public const int WM_PSD_MARGINRECT = 1027
    Field Value
    Type
    System.Int32

    WM_PSD_MINMARGINRECT

    Notifies a PagePaintHook hook procedure of the coordinates of the margin rectangle in the sample page. A Page Setup dialog box sends this message when it is about to draw the contents of the sample page.

    Declaration
    public const int WM_PSD_MINMARGINRECT = 1026
    Field Value
    Type
    System.Int32

    WM_PSD_PAGESETUPDLG

    Notifies a PagePaintHook hook procedure that the Page Setup dialog box is about to draw the contents of the sample page. The hook procedure can use this message to carry out initialization tasks related to drawing the contents of the sample page.

    Declaration
    public const int WM_PSD_PAGESETUPDLG = 1024
    Field Value
    Type
    System.Int32

    WM_PSD_YAFULLPAGERECT

    Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the return address portion of an envelope sample page.

    Declaration
    public const int WM_PSD_YAFULLPAGERECT = 1030
    Field Value
    Type
    System.Int32

    WM_QUERYDRAGICON

    Sent to a minimized (iconic) window. The window is about to be dragged by the user but does not have an icon defined for its class. An application can return a handle to an icon or cursor. The system displays this cursor or icon while the user drags the icon.

    Declaration
    public const int WM_QUERYDRAGICON = 55
    Field Value
    Type
    System.Int32

    WM_QUERYENDSESSION

    The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero. After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.

    Declaration
    public const int WM_QUERYENDSESSION = 17
    Field Value
    Type
    System.Int32

    WM_QUERYNEWPALETTE

    The WM_QUERYNEWPALETTE message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to realize its logical palette when it receives the focus.

    Declaration
    public const int WM_QUERYNEWPALETTE = 783
    Field Value
    Type
    System.Int32

    WM_QUERYOPEN

    Sent to an icon when the user requests that the window be restored to its previous size and position.

    Declaration
    public const int WM_QUERYOPEN = 19
    Field Value
    Type
    System.Int32

    WM_QUERYUISTATE

    An application sends the WM_QUERYUISTATE message to retrieve the UI state for a window.

    Declaration
    public const int WM_QUERYUISTATE = 297
    Field Value
    Type
    System.Int32

    WM_QUEUESYNC

    Sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK procedure.

    Declaration
    public const int WM_QUEUESYNC = 35
    Field Value
    Type
    System.Int32

    WM_QUIT

    Indicates a request to terminate an application, and is generated when the application calls the PostQuitMessage function. This message causes the GetMessage function to return zero.

    Declaration
    public const int WM_QUIT = 18
    Field Value
    Type
    System.Int32

    WM_RBUTTONDBLCLK

    Posted when the user double-clicks the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_RBUTTONDBLCLK = 518
    Field Value
    Type
    System.Int32

    WM_RBUTTONDOWN

    Posted when the user presses the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_RBUTTONDOWN = 516
    Field Value
    Type
    System.Int32

    WM_RBUTTONUP

    Posted when the user releases the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

    Declaration
    public const int WM_RBUTTONUP = 517
    Field Value
    Type
    System.Int32

    WM_REFLECT

    Represents the reflect window message.

    Declaration
    public const int WM_REFLECT = 8192
    Field Value
    Type
    System.Int32

    WM_RENDERALLFORMATS

    Sent to the clipboard owner before it is destroyed, if the clipboard owner has delayed rendering one or more clipboard formats. For the content of the clipboard to remain available to other applications, the clipboard owner must render data in all the formats it is capable of generating, and place the data on the clipboard by calling the SetClipboardData function.

    Declaration
    public const int WM_RENDERALLFORMATS = 774
    Field Value
    Type
    System.Int32

    WM_RENDERFORMAT

    Sent to the clipboard owner if it has delayed rendering a specific clipboard format and if an application has requested data in that format. The clipboard owner must render data in the specified format and place it on the clipboard by calling the SetClipboardData function.

    Declaration
    public const int WM_RENDERFORMAT = 773
    Field Value
    Type
    System.Int32

    WM_SETCURSOR

    Sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.

    Declaration
    public const int WM_SETCURSOR = 32
    Field Value
    Type
    System.Int32

    WM_SETFOCUS

    Sent to a window after it has gained the keyboard focus.

    Declaration
    public const int WM_SETFOCUS = 7
    Field Value
    Type
    System.Int32

    WM_SETFONT

    Sets the font that a control is to use when drawing text.

    Declaration
    public const int WM_SETFONT = 48
    Field Value
    Type
    System.Int32

    WM_SETHOTKEY

    Sent to a window to associate a hot key with the window. When the user presses the hot key, the system activates the window.

    Declaration
    public const int WM_SETHOTKEY = 50
    Field Value
    Type
    System.Int32

    WM_SETICON

    Associates a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption.

    Declaration
    public const int WM_SETICON = 128
    Field Value
    Type
    System.Int32

    WM_SETREDRAW

    Indicates the window requests to the redrawn.

    Declaration
    public const int WM_SETREDRAW = 11
    Field Value
    Type
    System.Int32

    WM_SETTEXT

    Sets the text of a window.

    Declaration
    public const int WM_SETTEXT = 12
    Field Value
    Type
    System.Int32

    WM_SETTINGCHANGE

    A message that is sent to all top-level windows when the SystemParametersInfo function changes a system-wide setting or when policy settings have changed.

    Declaration
    public const int WM_SETTINGCHANGE = 26
    Field Value
    Type
    System.Int32

    WM_SHOWWINDOW

    Sent to a window when the window is about to be hidden or shown.

    Declaration
    public const int WM_SHOWWINDOW = 24
    Field Value
    Type
    System.Int32

    WM_SIZE

    Sent to a window after its size has changed.

    Declaration
    public const int WM_SIZE = 5
    Field Value
    Type
    System.Int32

    WM_SIZECLIPBOARD

    Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area has changed size.

    Declaration
    public const int WM_SIZECLIPBOARD = 779
    Field Value
    Type
    System.Int32

    WM_SIZING

    Sent to a window that the user is resizing. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position.

    Declaration
    public const int WM_SIZING = 532
    Field Value
    Type
    System.Int32

    WM_SPOOLERSTATUS

    The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.

    Declaration
    public const int WM_SPOOLERSTATUS = 42
    Field Value
    Type
    System.Int32

    WM_STYLECHANGED

    Sent to a window after the SetWindowLong function has changed one or more of the window's styles.

    Declaration
    public const int WM_STYLECHANGED = 125
    Field Value
    Type
    System.Int32

    WM_STYLECHANGING

    Sent to a window when the SetWindowLong function is about to change one or more of the window's styles.

    Declaration
    public const int WM_STYLECHANGING = 124
    Field Value
    Type
    System.Int32

    WM_SYSCHAR

    Posted to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. It specifies the character code of a system character key — that is, a character key that is pressed while the ALT key is down.

    Declaration
    public const int WM_SYSCHAR = 262
    Field Value
    Type
    System.Int32

    WM_SYSCOLORCHANGE

    The WM_SYSCOLORCHANGE message is sent to all top-level windows when a change is made to a system color setting.

    Declaration
    public const int WM_SYSCOLORCHANGE = 21
    Field Value
    Type
    System.Int32

    WM_SYSCOMMAND

    A window receives this message when the user chooses a command from the Window menu (formerly known as the system or control menu) or when the user chooses the maximize button, minimize button, restore button, or close button.

    Declaration
    public const int WM_SYSCOMMAND = 274
    Field Value
    Type
    System.Int32

    WM_SYSDEADCHAR

    Sent to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. WM_SYSDEADCHAR specifies the character code of a system dead key — that is, a dead key that is pressed while holding down the ALT key.

    Declaration
    public const int WM_SYSDEADCHAR = 263
    Field Value
    Type
    System.Int32

    WM_SYSKEYDOWN

    Posted to the window with the keyboard focus when the user presses the F10 key (which activates the menu bar) or holds down the ALT key and then presses another key. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYDOWN message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter.

    Declaration
    public const int WM_SYSKEYDOWN = 260
    Field Value
    Type
    System.Int32

    WM_SYSKEYUP

    Posted to the window with the keyboard focus when the user releases a key that was pressed while the ALT key was held down. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYUP message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter.

    Declaration
    public const int WM_SYSKEYUP = 261
    Field Value
    Type
    System.Int32

    WM_TCARD

    Sent to an application that has initiated a training card with Windows Help. The message informs the application when the user clicks an authorable button. An application initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function.

    Declaration
    public const int WM_TCARD = 82
    Field Value
    Type
    System.Int32

    WM_TIMECHANGE

    A message that is sent whenever there is a change in the system time.

    Declaration
    public const int WM_TIMECHANGE = 30
    Field Value
    Type
    System.Int32

    WM_TIMER

    Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.

    Declaration
    public const int WM_TIMER = 275
    Field Value
    Type
    System.Int32

    WM_UNDO

    An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted.

    Declaration
    public const int WM_UNDO = 772
    Field Value
    Type
    System.Int32

    WM_UPDATEUISTATE

    An application sends the WM_UPDATEUISTATE message to change the UI state for the specified window and all its child windows.

    Declaration
    public const int WM_UPDATEUISTATE = 296
    Field Value
    Type
    System.Int32

    WM_USER

    Used to define private messages for use by private window classes, usually of the form WM_USER+x, where x is an integer value.

    Declaration
    public const int WM_USER = 1024
    Field Value
    Type
    System.Int32

    WM_USERCHANGED

    Sent to all windows after the user has logged on or off. When the user logs on or off, the system updates the user-specific settings. The system sends this message immediately after updating the settings.

    Declaration
    public const int WM_USERCHANGED = 84
    Field Value
    Type
    System.Int32

    WM_VKEYTOITEM

    Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message.

    Declaration
    public const int WM_VKEYTOITEM = 46
    Field Value
    Type
    System.Int32

    WM_VSCROLL

    Occurs when the window scroll event is occur on the vertical scrollbar.

    Declaration
    public const int WM_VSCROLL = 277
    Field Value
    Type
    System.Int32

    WM_VSCROLLCLIPBOARD

    Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image and update the scroll bar values.

    Declaration
    public const int WM_VSCROLLCLIPBOARD = 778
    Field Value
    Type
    System.Int32

    WM_WINDOWPOSCHANGED

    Sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function.

    Declaration
    public const int WM_WINDOWPOSCHANGED = 71
    Field Value
    Type
    System.Int32

    WM_WINDOWPOSCHANGING

    Sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function.

    Declaration
    public const int WM_WINDOWPOSCHANGING = 70
    Field Value
    Type
    System.Int32

    WM_WININICHANGE

    An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI.

    Declaration
    public const int WM_WININICHANGE = 26
    Field Value
    Type
    System.Int32

    WS_BORDER

    The window has a thin-line border.

    Declaration
    public const int WS_BORDER = 8388608
    Field Value
    Type
    System.Int32

    WS_CAPTION

    The window has a title bar (includes the WS_BORDER style).

    Declaration
    public const int WS_CAPTION = 12582912
    Field Value
    Type
    System.Int32

    WS_CHILD

    The window is a child window. A window with this style cannot have a menu bar. This style cannot be used with the WS_POPUP style.

    Declaration
    public const int WS_CHILD = 1073741824
    Field Value
    Type
    System.Int32

    WS_CLIPCHILDREN

    Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.

    Declaration
    public const int WS_CLIPCHILDREN = 33554432
    Field Value
    Type
    System.Int32

    WS_CLIPSIBLINGS

    Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window.

    Declaration
    public const int WS_CLIPSIBLINGS = 67108864
    Field Value
    Type
    System.Int32

    WS_DISABLED

    The window is initially disabled. A disabled window cannot receive input from the user. To change this after a window has been created, use the EnableWindow function.

    Declaration
    public const int WS_DISABLED = 134217728
    Field Value
    Type
    System.Int32

    WS_DLGFRAME

    The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar.

    Declaration
    public const int WS_DLGFRAME = 4194304
    Field Value
    Type
    System.Int32

    WS_EX_APPWINDOW

    Forces a top-level window onto the task-bar when the window is visible.

    Declaration
    public const int WS_EX_APPWINDOW = 262144
    Field Value
    Type
    System.Int32

    WS_EX_CLIENTEDGE

    The window has a border with a sunken edge.

    Declaration
    public const int WS_EX_CLIENTEDGE = 512
    Field Value
    Type
    System.Int32

    WS_EX_CONTEXTHELP

    The title bar of the window includes a question mark. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window. WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles.

    Declaration
    public const int WS_EX_CONTEXTHELP = 1024
    Field Value
    Type
    System.Int32

    WS_EX_CONTROLPARENT

    The window itself contains child windows that should take part in dialog box navigation. If this style is specified, the dialog manager recursive into children of this window when performing navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic.

    Declaration
    public const int WS_EX_CONTROLPARENT = 65536
    Field Value
    Type
    System.Int32

    WS_EX_DLGMODALFRAME

    The window has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter.

    Declaration
    public const int WS_EX_DLGMODALFRAME = 1
    Field Value
    Type
    System.Int32

    WS_EX_LAYERED

    The window is a layered window. This style cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC.

    Declaration
    public const int WS_EX_LAYERED = 524288
    Field Value
    Type
    System.Int32

    WS_EX_LAYOUTRTL

    If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the horizontal origin of the window is on the right edge. Increasing horizontal values advance to the left.

    Declaration
    public const int WS_EX_LAYOUTRTL = 4194304
    Field Value
    Type
    System.Int32

    WS_EX_LEFT

    The window has generic left-aligned properties. This is the default.

    Declaration
    public const int WS_EX_LEFT = 0
    Field Value
    Type
    System.Int32

    WS_EX_LEFTSCROLLBAR

    If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the vertical scroll bar (if present) is to the left of the client area. For other languages, the style is ignored.

    Declaration
    public const int WS_EX_LEFTSCROLLBAR = 16384
    Field Value
    Type
    System.Int32

    WS_EX_MDICHILD

    The window is a MDI child window.

    Declaration
    public const int WS_EX_MDICHILD = 64
    Field Value
    Type
    System.Int32

    WS_EX_NOINHERITLAYOUT

    The window has a border with a raised edge.

    Declaration
    public const int WS_EX_NOINHERITLAYOUT = 1048576
    Field Value
    Type
    System.Int32

    WS_EX_RIGHT

    The window has generic "right-aligned" properties. This depends on the window class. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is ignored.

    Declaration
    public const int WS_EX_RIGHT = 4096
    Field Value
    Type
    System.Int32

    WS_EX_RTLREADING

    If the shell language is Hebrew, Arabic, or another language that supports reading-order alignment, the window text is displayed using right-to-left reading-order properties. For other languages, the style is ignored.

    Declaration
    public const int WS_EX_RTLREADING = 8192
    Field Value
    Type
    System.Int32

    WS_EX_STATICEDGE

    The window has a three-dimensional border style intended to be used for items that do not accept user input.

    Declaration
    public const int WS_EX_STATICEDGE = 131072
    Field Value
    Type
    System.Int32

    WS_EX_TOOLWINDOW

    The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE.

    Declaration
    public const int WS_EX_TOOLWINDOW = 128
    Field Value
    Type
    System.Int32

    WS_EX_TOPMOST

    The window should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the SetWindowPos function.

    Declaration
    public const int WS_EX_TOPMOST = 8
    Field Value
    Type
    System.Int32

    WS_EX_WINDOWEDGE

    The window has a border with a raised edge.

    Declaration
    public const int WS_EX_WINDOWEDGE = 256
    Field Value
    Type
    System.Int32

    WS_HSCROLL

    The window has a horizontal scroll bar.

    Declaration
    public const int WS_HSCROLL = 1048576
    Field Value
    Type
    System.Int32

    WS_MAXIMIZE

    The window is initially maximized.

    Declaration
    public const int WS_MAXIMIZE = 16777216
    Field Value
    Type
    System.Int32

    WS_MAXIMIZEBOX

    The window has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.

    Declaration
    public const int WS_MAXIMIZEBOX = 65536
    Field Value
    Type
    System.Int32

    WS_MINIMIZE

    The window is initially minimized. Same as the WS_ICONIC style.

    Declaration
    public const int WS_MINIMIZE = 536870912
    Field Value
    Type
    System.Int32

    WS_MINIMIZEBOX

    The window has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.

    Declaration
    public const int WS_MINIMIZEBOX = 131072
    Field Value
    Type
    System.Int32

    WS_OVERLAPPED

    The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS_TILED style.

    Declaration
    public const int WS_OVERLAPPED = 0
    Field Value
    Type
    System.Int32

    WS_POPUP

    The windows is a pop-up window. This style cannot be used with the WS_CHILD style.

    Declaration
    public const int WS_POPUP = -2147483648
    Field Value
    Type
    System.Int32

    WS_SYSMENU

    The window has a window menu on its title bar. The WS_CAPTION style must also be specified.

    Declaration
    public const int WS_SYSMENU = 524288
    Field Value
    Type
    System.Int32

    WS_TABSTOP

    The window is a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style.

    Declaration
    public const int WS_TABSTOP = 65536
    Field Value
    Type
    System.Int32

    WS_THICKFRAME

    The window has a sizing border. Same as the WS_SIZEBOX style.

    Declaration
    public const int WS_THICKFRAME = 262144
    Field Value
    Type
    System.Int32

    WS_VISIBLE

    The window is initially visible. This style can be turned on and off by using the ShowWindow or SetWindowPos function.

    Declaration
    public const int WS_VISIBLE = 268435456
    Field Value
    Type
    System.Int32

    WS_VSCROLL

    The window has a vertical scroll bar.

    Declaration
    public const int WS_VSCROLL = 2097152
    Field Value
    Type
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved