Desktop Functions: Smart Device Functions:
|
Search Results for "WM" in [All]netapi32
string lpNewMachineName, lpNewMachineName - (in) Pointer to a constant string that specifies the new name of the computer. If specified, the local computer name is changed as well. If this parameter is NULL, the function assumes you have already called the SetComputerNameEx function.
string lpNewMachineName, There is a possible way via the WMI ManagementClass - see: WMI can do this sort of thing (the System.Management namespace in .Net 2.0) If you want to find the user logged in to the workstation, consider instead a WMI query ("select UserName from Win32_ComputerSystem"), which has certain advantages (runs faster, less ambigious results, doesn't require Interop if using .Net 2.0 System.Management namespace, etc.) oleacc
uint nMsg = RegisterWindowMessage("WM_HTML_GETOBJECT"); wtsapi32
const int WM_WTSSESSION_CHANGE = 0x2b1;
private const int WM_WTSSESSION_CHANGE = 0x2b1;
if (m.Msg == WM_WTSSESSION_CHANGE) gdiplus
/// Use the EmfToWmfBits function in the GDI+ specification to convert a
static extern IntPtr GdipEmfToWmfBits(HandleRef hEmf, uint uBufferSize,
byte[] bBuffer, int iMappingMode, EmfToWmfBitsFlags flags);
private declare function GdipEmfToWmfBits lib "gdiplus.dll"(ByVal hEmf as IntPtr, _
ByVal flags as EmfToWmfBitsFlags) as UInteger Enums7: ClassStyles
/// Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.
''' Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image.
///<Summary>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.</Summary>
///<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>
'''<Summary>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.</Summary>
'''<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>
enum DeskBandInfoViewMode : int
DBIF_VIEWMODE_NORMAL = 0x0000,
DBIF_VIEWMODE_VERTICAL = 0x0001,
DBIF_VIEWMODE_FLOATING = 0x0002,
DBIF_VIEWMODE_TRANSPARENT = 0x0004
Enum DeskBandInfoViewMode
/// <summary>DCX_USESTYLE: Undocumented, something related to WM_NCPAINT message.</summary> 11: DLGC
/// <summary> Control processes WM_CHAR messages. </summary>
[DllImport("dwmapi.dll", PreserveSig = true)]
public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize);
<DllImport("dwmapi.dll", PreserveSig:=True)>
Public Shared Function DwmSetWindowAttribute(hwnd As IntPtr, attr As DWMWINDOWATTRIBUTE, ByRef attrValue As Integer, attrSize As Integer) As Integer Use the DwmIsCompositionEnabled function to set the value of non-client rendering attributes for a window. 14: DWM_BB 15: FOS
FOS_ALLOWMULTISELECT = 0x00000200,
ALLOWMULTISELECT = &H200 16: ListViewMessages
public enum ListViewMessages : int
Enum ListViewMessages SendMessage(listView.Handle, (uint)ListViewMessages.LVM_SCROLL, scrollX, scrollY);
/// unless the message is allowed process-wide by using the ChangeWindowMessageFilter function or globally 18: MouseActivate 19: OLECMDID
OLECMDID_SHOWMESSAGE = 41,
OLECMDID_SHOWMESSAGE = 41
OFN_ALLOWMULTISELECT = 0x200
OFN_ALLOWMULTISELECT = &H200
OFN_ALLOWMULTISELECT As Long = &H200 21: RawMouseButtons 22: RawMouseFlags
/// <summary>Causes the OS to post a WM_PAINT message to the window regardless of whether a portion of the window is invalid.</summary>
/// Causes the window to receive a WM_ERASEBKGND message when the window is repainted.
/// This value does not affect internal WM_PAINT messages.
/// <summary>Suppresses any pending WM_ERASEBKGND messages.</summary>
/// <summary>Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND and WM_PAINT messages before the RedrawWindow returns, if necessary.</summary>
/// Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND messages before RedrawWindow returns, if necessary.
/// The affected windows receive WM_PAINT messages at the ordinary time.
''' <summary>Causes the OS to post a WM_PAINT message to the window regardless of whether a portion of the window is invalid.</summary>
''' Causes the window to receive a WM_ERASEBKGND message when the window is repainted.
''' This value does not affect internal WM_PAINT messages.
''' <summary>Suppresses any pending WM_ERASEBKGND messages.</summary>
''' <summary>Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND and WM_PAINT messages before the RedrawWindow returns, if necessary.</summary>
''' Causes the affected windows, which you specify by setting the RDW_ALLCHILDREN and RDW_NOCHILDREN values, to receive WM_ERASEBKGND messages before RedrawWindow returns, if necessary.
''' The affected windows receive WM_PAINT messages at the ordinary time.
/// <summary>Prevents generation of the WM_SYNCPAINT message.</summary>
/// <summary>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
/// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>
''' <summary>Prevents generation of the WM_SYNCPAINT message.</summary>
''' <summary>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
''' <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary> 25: SE_OBJECT_TYPE
SE_WMIGUID_OBJECT,
SE_WMIGUID_OBJECT
ShowMinimized = 2,
ShowMaximized = 3,
/// <see cref="Win32.ShowWindowCommand.ShowMinimized"/>, except the
ShowMinNoActive = 7,
ShowMinimized = 2
ShowMaximized = 3
''' <see cref="Win32.ShowWindowCommands.ShowMinimized"/>, except the
ShowMinNoActive = 7 27: SHOWWINDOW_FLAGS
SW_SHOWMINIMIZED = 2,
SW_SHOWMAXIMIZED = 3,
/// Displays the window as a minimized window. This value is similar to <see cref="ShowWindowCommands.SW_SHOWMINIMIZED"/>, except the window is not activated.
SW_SHOWMINNOACTIVE = 7,
SW_SHOWMINIMIZED = 2
SW_SHOWMAXIMIZED = 3
SW_SHOWMINNOACTIVE = 7 28: ShutdownReason
MinorWMI = 0x00000015,
MinorWMI = &H15 29: SizingWindowSide This enumeration specifies what side of a form is being resized when the WM_SIZING notification when it is sent to a window.
/// <summary>WMSZ_LEFT: Left edge</summary>
/// <summary>WMSZ_RIGHT: Right edge</summary>
/// <summary>WMSZ_TOP: Top edge</summary>
/// <summary>WMSZ_TOPLEFT: Top-left corner</summary>
/// <summary>WMSZ_TOPRIGHT: Top-right corner</summary>
/// <summary>WMSZ_BOTTOM: Bottom edge</summary>
/// <summary>WMSZ_BOTTOMLEFT: Bottom-left corner</summary>
/// <summary>WMSZ_BOTTOMRIGHT: Bottom-right corner</summary>
''' <summary>WMSZ_LEFT: Left edge</summary>
''' <summary>WMSZ_RIGHT: Right edge</summary>
''' <summary>WMSZ_TOP: Top edge</summary>
''' <summary>WMSZ_TOPLEFT: Top-left corner</summary>
''' <summary>WMSZ_TOPRIGHT: Top-right corner</summary>
''' <summary>WMSZ_BOTTOM: Bottom edge</summary>
''' <summary>WMSZ_BOTTOMLEFT: Bottom-left corner</summary>
''' <summary>WMSZ_BOTTOMRIGHT: Bottom-right corner</summary> 30: SPI
/// <summary>Broadcasts the WM_SETTINGCHANGE message after updating the user profile.</summary>
SPIF_SENDCHANGE = &H2 ' Broadcasts the WM_SETTINGCHANGE message after updating the user profile. 31: SPIF
/// <summary>Broadcasts the WM_SETTINGCHANGE message after updating the user profile.</summary>
SPIF_SENDCHANGE = &H2 ' Broadcasts the WM_SETTINGCHANGE message after updating the user profile. 32: STGM
STGM_DIRECT_SWMR = 0x400000, 33: SWP
/// <summary>Prevents generation of the WM_SYNCPAINT message
/// <summary>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.
/// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message. 34: SysCommands
'''then clicks a control in the dialog box, the control receives a WM_HELP message. In WM_SYSCOMMAND messages, the four low-order bits of the wParam parameter are used internally by the system. To obtain the correct result when testing the value of wParam, an application must combine the value 0xFFF0 with the wParam value by using the bitwise AND operator. 35: SystemMetric
/// A window can override this value by processing the WM_GETMINMAXINFO message.
/// A window can override this value by processing the WM_GETMINMAXINFO message.
/// the WM_GETMINMAXINFO message.
/// A window can override this value by processing the WM_GETMINMAXINFO message.
SM_SLOWMACHINE = 73,
SM_SLOWMACHINE = 73, // 0x49
SM_SLOWMACHINE = 73
''' Minimum tracking width of a window in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message.
''' Minimum tracking height of a window in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message
''' Default maximum width of a window that has a caption and sizing borders in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message.
''' Default maximum height of a window that has a caption and sizing borders in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message.
SM_SLOWMACHINE = 73 36: VK
///Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP 37: WindowsMessages To see definitions of these messages, see http://www.pinvoke.net/default.aspx/Constants/WM.html
public enum WM : uint
/// The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.
/// The WM_CREATE message is 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.
/// The WM_DESTROY message is 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.
/// The WM_MOVE message is sent after a window has been moved.
/// The WM_SIZE message is sent to a window after its size has changed.
/// The WM_ACTIVATE message is 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.
/// The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus.
/// The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard focus.
/// The WM_ENABLE message is 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.
/// An application sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to prevent changes in that window from being redrawn.
/// An application sends a WM_SETTEXT message to set the text of a window.
/// An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.
/// An application sends a WM_GETTEXTLENGTH message to determine the length, in characters, of the text associated with a window.
/// The WM_PAINT message is sent when the system or another application makes a request to paint a portion of an application's window. The message is sent when the UpdateWindow or RedrawWindow function is called, or by the DispatchMessage function when the application obtains a WM_PAINT message by using the GetMessage or PeekMessage function.
/// The WM_CLOSE message is sent as a signal that a window or an application should terminate.
/// 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.
/// The WM_QUERYOPEN message is sent to an icon when the user requests that the window be restored to its previous size and position.
/// 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.
/// The WM_QUIT message indicates a request to terminate an application and is generated when the application calls the PostQuitMessage function. It causes the GetMessage function to return zero.
/// The WM_ERASEBKGND message is 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.
/// The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown.
/// 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.
/// Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. Applications should use the WM_SETTINGCHANGE message.
/// 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.
/// Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. Applications should use the WM_SETTINGCHANGE message.
/// The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings.
/// The WM_ACTIVATEAPP message is 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.
/// An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
/// The WM_CANCELMODE message is 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.
/// The WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.
/// The WM_MOUSEACTIVATE message is 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.
/// The WM_CHILDACTIVATE message is sent to a child window when the user clicks the window's title bar or when the window is activated, moved, or sized.
/// The WM_QUEUESYNC message is sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK Hook procedure.
/// The WM_GETMINMAXINFO message is 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.
/// Windows NT 3.51 and earlier: The WM_PAINTICON message is sent to a minimized window when the icon is to be painted. This message is not sent by newer versions of Microsoft Windows, except in unusual circumstances explained in the Remarks.
/// Windows NT 3.51 and earlier: The WM_ICONERASEBKGND 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. This message is not sent by newer versions of Windows.
/// The WM_NEXTDLGCTL message is sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box.
/// The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.
/// The WM_DRAWITEM message is 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.
/// The WM_MEASUREITEM message is sent to the owner window of a combo box, list box, list view control, or menu item when the control or menu is created.
/// 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.
/// Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message.
/// Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message.
/// An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text.
/// An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.
/// An application sends a WM_SETHOTKEY message to a window to associate a hot key with the window. When the user presses the hot key, the system activates the window.
/// An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.
/// The WM_QUERYDRAGICON message is 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.
/// The system sends the WM_COMPAREITEM message 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.
/// Active Accessibility sends the WM_GETOBJECT message to obtain information about an accessible object contained in a server application.
/// The WM_COMPACTING message is 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.
/// WM_COMMNOTIFY is Obsolete for Win32-Based Applications
/// The WM_WINDOWPOSCHANGING message is 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.
/// The WM_WINDOWPOSCHANGED message is 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.
/// An application sends the WM_COPYDATA message to pass data to another application.
/// The WM_CANCELJOURNAL message is posted to an application when a user cancels the application's journaling activities. The message is posted with a NULL window handle.
/// The WM_INPUTLANGCHANGEREQUEST message is 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.
/// The WM_INPUTLANGCHANGE message is 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.
/// 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.
/// The WM_USERCHANGED message is 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.
/// 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.
/// The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button (right-clicked) in the window.
/// The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.
/// The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the window's styles
/// The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.
/// The WM_GETICON message is 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.
/// An application sends the WM_SETICON message to associate 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.
/// The WM_NCCREATE message is sent prior to the WM_CREATE message when a window is first created.
/// The WM_NCDESTROY message informs a window that its nonclient 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.
/// The WM_NCCALCSIZE message is 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.
/// The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. 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.
/// The WM_NCPAINT message is sent to a window when its frame must be painted.
/// The WM_NCACTIVATE message is sent to a window when its nonclient area needs to be changed to indicate an active or inactive state.
/// The WM_GETDLGCODE message is 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.
/// The WM_SYNCPAINT message is used to synchronize painting while avoiding linking independent GUI threads.
/// The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient 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.
/// The WM_NCLBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is within the nonclient 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.
/// The WM_NCLBUTTONUP message is posted when the user releases the left mouse button while the cursor is within the nonclient 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.
/// The WM_NCLBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is within the nonclient 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.
/// The WM_NCRBUTTONDOWN message is posted when the user presses the right mouse button while the cursor is within the nonclient 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.
/// The WM_NCRBUTTONUP message is posted when the user releases the right mouse button while the cursor is within the nonclient 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.
/// The WM_NCRBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is within the nonclient 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.
/// The WM_NCMBUTTONDOWN message is posted when the user presses the middle mouse button while the cursor is within the nonclient 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.
/// The WM_NCMBUTTONUP message is posted when the user releases the middle mouse button while the cursor is within the nonclient 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.
/// The WM_NCMBUTTONDBLCLK message is posted when the user double-clicks the middle mouse button while the cursor is within the nonclient 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.
/// The WM_NCXBUTTONDOWN message is posted when the user presses the first or second X button while the cursor is in the nonclient 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.
/// The WM_NCXBUTTONUP message is posted when the user releases the first or second X button while the cursor is in the nonclient 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.
/// The WM_NCXBUTTONDBLCLK message is posted when the user double-clicks the first or second X button while the cursor is in the nonclient 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.
/// The WM_INPUT_DEVICE_CHANGE message is sent to the window that registered to receive raw input. A window receives this message through its WindowProc function.
/// The WM_INPUT message is sent to the window that is getting raw input.
/// The WM_KEYDOWN message is 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.
/// The WM_KEYUP message is 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.
/// The WM_CHAR message is 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.
/// The WM_DEADCHAR message is 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.
/// The WM_SYSKEYDOWN message is 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.
/// The WM_SYSKEYUP message is 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.
/// The WM_SYSCHAR message is 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.
/// The WM_SYSDEADCHAR message is 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.
/// The WM_UNICHAR message is posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function. The WM_UNICHAR message contains the character code of the key that was pressed.
/// The WM_UNICHAR message is equivalent to WM_CHAR, but it uses Unicode Transformation Format (UTF)-32, whereas WM_CHAR uses UTF-16. It is designed to send or post Unicode characters to ANSI windows and it can can handle Unicode Supplementary Plane characters.
/// The WM_INITDIALOG message is 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.
/// The WM_COMMAND message is 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.
/// The WM_TIMER message is posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.
/// The WM_HSCROLL message is sent to a window when a scroll event occurs in the window's standard horizontal scroll bar. This message is also sent to the owner of a horizontal scroll bar control when a scroll event occurs in the control.
/// The WM_VSCROLL message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar. This message is also sent to the owner of a vertical scroll bar control when a scroll event occurs in the control.
/// The WM_INITMENU message is 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.
/// The WM_INITMENUPOPUP message is 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.
/// The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item.
/// The WM_MENUCHAR message is 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.
/// The WM_ENTERIDLE message is 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.
/// The WM_MENURBUTTONUP message is sent when the user releases the right mouse button while the cursor is on a menu item.
/// The WM_MENUDRAG message is sent to the owner of a drag-and-drop menu when the user drags a menu item.
/// The WM_MENUGETOBJECT message is sent to the owner of a drag-and-drop menu when the mouse cursor enters a menu item or moves from the center of the item to the top or bottom of the item.
/// The WM_UNINITMENUPOPUP message is sent when a drop-down menu or submenu has been destroyed.
/// The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
/// An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed.
/// An application sends the WM_UPDATEUISTATE message to change the user interface (UI) state for the specified window and all its child windows.
/// An application sends the WM_QUERYUISTATE message to retrieve the user interface (UI) state for a window.
/// The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By responding to this message, the owner window can set the text and background colors of the message box by using the given display device context handle.
/// 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.
/// 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.
/// The WM_CTLCOLORDLG message is 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.
/// The WM_CTLCOLORSCROLLBAR message is sent to the parent window of a scroll bar control when the control is about to be drawn. By responding to this message, the parent window can use the display context handle to set the background color of the scroll bar control.
/// 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 and background colors of the static control.
/// Use WM_MOUSEFIRST to specify the first mouse message. Use the PeekMessage() Function.
/// The WM_MOUSEMOVE message is 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.
/// The WM_LBUTTONDOWN message is 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.
/// The WM_LBUTTONUP message is 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.
/// The WM_LBUTTONDBLCLK message is 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.
/// The WM_RBUTTONDOWN message is 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.
/// The WM_RBUTTONUP message is 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.
/// The WM_RBUTTONDBLCLK message is 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.
/// The WM_MBUTTONDOWN message is 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.
/// The WM_MBUTTONUP message is 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.
/// The WM_MBUTTONDBLCLK message is 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.
/// The WM_MOUSEWHEEL message is 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.
/// The WM_XBUTTONDOWN message is posted when the user presses the first or second X 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.
/// The WM_XBUTTONUP message is posted when the user releases the first or second X 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.
/// The WM_XBUTTONDBLCLK message is posted when the user double-clicks the first or second X 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.
/// The WM_MOUSEHWHEEL message is sent to the focus window when the mouse's horizontal scroll wheel is tilted or 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.
/// Use WM_MOUSELAST to specify the last mouse message. Used with PeekMessage() Function.
/// The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window. 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.
/// The WM_ENTERMENULOOP message informs an application's main window procedure that a menu modal loop has been entered.
/// The WM_EXITMENULOOP message informs an application's main window procedure that a menu modal loop has been exited.
/// The WM_NEXTMENU message is sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu.
/// The WM_SIZING message is 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.
/// The WM_CAPTURECHANGED message is sent to the window that is losing the mouse capture.
/// The WM_MOVING message is sent to a window that the user is moving. By processing this message, an application can monitor the position of the drag rectangle and, if needed, change its position.
/// An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.
/// An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.
/// 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.
/// 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.
/// An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.
/// 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.
/// 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.
/// 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.
/// 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.
/// 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.
/// 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.
/// The WM_ENTERSIZEMOVE message is 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.
/// The WM_EXITSIZEMOVE message is 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.
/// 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.
/// The WM_MOUSEHOVER message is 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.
/// The WM_MOUSELEAVE message is posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent.
/// The WM_NCMOUSEHOVER message is posted to a window when the cursor hovers over the nonclient area of the window for the period of time specified in a prior call to TrackMouseEvent.
/// The WM_NCMOUSELEAVE message is posted to a window when the cursor leaves the nonclient area of the window specified in a prior call to TrackMouseEvent.
/// The WM_WTSSESSION_CHANGE message notifies applications of changes in session state.
/// 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.
/// 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.
/// 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.
/// 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.
/// 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.
/// The WM_RENDERFORMAT message is 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.
/// The WM_RENDERALLFORMATS message is 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.
/// The WM_DESTROYCLIPBOARD message is sent to the clipboard owner when a call to the EmptyClipboard function empties the clipboard.
/// The WM_DRAWCLIPBOARD message is 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.
/// The WM_PAINTCLIPBOARD message is 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.
/// The WM_VSCROLLCLIPBOARD message is 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.
/// The WM_SIZECLIPBOARD message is 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.
/// The WM_ASKCBFORMATNAME message is sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format.
/// The WM_CHANGECBCHAIN message is sent to the first window in the clipboard viewer chain when a window is being removed from the chain.
/// The WM_HSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window. This occurs 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.
/// The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette.
/// The WM_HOTKEY message is 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.
/// 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.
/// 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.
/// The WM_APPCOMMAND message notifies a window that the user generated an application command event, for example, by clicking an application command button using the mouse or typing an application command key on the keyboard.
/// The WM_THEMECHANGED message is broadcast to every window following a theme change event. Examples of theme change events are the activation of a theme, the deactivation of a theme, or a transition from one theme to another.
/// The system will send a window the WM_DWMCOMPOSITIONCHANGED message to indicate that the availability of desktop composition has changed.
DWMCOMPOSITIONCHANGED = 0x031E,
/// WM_DWMNCRENDERINGCHANGED is called when the non-client area rendering status of a window has changed. Only windows that have set the flag DWM_BLURBEHIND.fTransitionOnMaximized to true will get this message.
DWMNCRENDERINGCHANGED = 0x031F,
DWMCOLORIZATIONCOLORCHANGED = 0x0320,
/// WM_DWMWINDOWMAXIMIZEDCHANGE will let you know when a DWM composed window is maximized. You also have to register for this message as well. You'd have other windowd go opaque when this message is sent.
DWMWINDOWMAXIMIZEDCHANGE = 0x0321,
/// The WM_APP constant is used by applications to help define private messages, usually of the form WM_APP+X, where X is an integer value.
/// The WM_USER constant is used by applications to help define private messages for use by private window classes, usually of the form WM_USER+X, where X is an integer value.
/// An application sends the WM_CPL_LAUNCH message to Windows Control Panel to request that a Control Panel application be started.
/// The WM_CPL_LAUNCHED message is sent when a Control Panel application, started by the WM_CPL_LAUNCH message, has closed. The WM_CPL_LAUNCHED message is sent to the window identified by the wParam parameter of the WM_CPL_LAUNCH message that started the application.
/// WM_SYSTIMER is a well-known yet still undocumented message. Windows uses WM_SYSTIMER for internal actions like scrolling.
/// The user completed an input event (for example, pressed an application command button on the mouse or an application command key on the keyboard), and the application did not handle the WM_APPCOMMAND message generated by that input.
/// If the Shell procedure handles the WM_COMMAND message, it should not call CallNextHookEx. See the Return Value section for more information.
'''The WM_ACTIVATE message is sent when a window is being activated or deactivated. This message is sent first to the window procedure of the top-level window being deactivated; it is then sent to the window procedure of the top-level window being activated.
WM_ACTIVATE = &H6
'''The WM_ACTIVATEAPP message is 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.
WM_ACTIVATEAPP = &H1C
WM_AFXFIRST = &H360
WM_AFXLAST = &H37F
'''The WM_APP constant is used by applications to help define private messages usually of the form WM_APP+X where X is an integer value.
WM_APP = &H8000
'''The WM_ASKCBFORMATNAME message is sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format.
WM_ASKCBFORMATNAME = &H30C
'''The WM_CANCELJOURNAL message is posted to an application when a user cancels the application's journaling activities. The message is posted with a NULL window handle.
WM_CANCELJOURNAL = &H4B
'''The WM_CANCELMODE message is 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.
WM_CANCELMODE = &H1F
'''The WM_CAPTURECHANGED message is sent to the window that is losing the mouse capture.
WM_CAPTURECHANGED = &H215
'''The WM_CHANGECBCHAIN message is sent to the first window in the clipboard viewer chain when a window is being removed from the chain.
WM_CHANGECBCHAIN = &H30D
'''An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed.
WM_CHANGEUISTATE = &H127
'''The WM_CHAR message is 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.
WM_CHAR = &H102
'''Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message.
WM_CHARTOITEM = &H2F
'''The WM_CHILDACTIVATE message is sent to a child window when the user clicks the window's title bar or when the window is activated moved or sized.
WM_CHILDACTIVATE = &H22
'''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.
WM_CLEAR = &H303
'''The WM_CLOSE message is sent as a signal that a window or an application should terminate.
WM_CLOSE = &H10
'''The WM_COMMAND message is 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.
WM_COMMAND = &H111
'''The WM_COMPACTING message is 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.
WM_COMPACTING = &H41
'''The system sends the WM_COMPAREITEM message 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.
WM_COMPAREITEM = &H39
'''The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button (right-clicked) in the window.
WM_CONTEXTMENU = &H7B
'''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.
WM_COPY = &H301
'''An application sends the WM_COPYDATA message to pass data to another application.
WM_COPYDATA = &H4A
'''The WM_CREATE message is 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.
WM_CREATE = &H1
'''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.
WM_CTLCOLORBTN = &H135
'''The WM_CTLCOLORDLG message is 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.
WM_CTLCOLORDLG = &H136
'''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.
WM_CTLCOLOREDIT = &H133
WM_CTLCOLORLISTBOX = &H134
'''The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By responding to this message the owner window can set the text and background colors of the message box by using the given display device context handle.
WM_CTLCOLORMSGBOX = &H132
'''The WM_CTLCOLORSCROLLBAR message is sent to the parent window of a scroll bar control when the control is about to be drawn. By responding to this message the parent window can use the display context handle to set the background color of the scroll bar control.
WM_CTLCOLORSCROLLBAR = &H137
'''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 and background colors of the static control.
WM_CTLCOLORSTATIC = &H138
'''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.
WM_CUT = &H300
'''The WM_DEADCHAR message is 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.
WM_DEADCHAR = &H103
'''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.
WM_DELETEITEM = &H2D
'''The WM_DESTROY message is 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.
WM_DESTROY = &H2
'''The WM_DESTROYCLIPBOARD message is sent to the clipboard owner when a call to the EmptyClipboard function empties the clipboard.
WM_DESTROYCLIPBOARD = &H307
WM_DEVICECHANGE = &H219
'''The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings.
WM_DEVMODECHANGE = &H1B
'''The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.
WM_DISPLAYCHANGE = &H7E
'''The WM_DRAWCLIPBOARD message is 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.
WM_DRAWCLIPBOARD = &H308
'''The WM_DRAWITEM message is 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.
WM_DRAWITEM = &H2B
WM_DROPFILES = &H233
'''The WM_ENABLE message is 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.
WM_ENABLE = &HA
'''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.
WM_ENDSESSION = &H16
'''The WM_ENTERIDLE message is 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.
WM_ENTERIDLE = &H121
'''The WM_ENTERMENULOOP message informs an application's main window procedure that a menu modal loop has been entered.
WM_ENTERMENULOOP = &H211
'''The WM_ENTERSIZEMOVE message is 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.
WM_ENTERSIZEMOVE = &H231
'''The WM_ERASEBKGND message is 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.
WM_ERASEBKGND = &H14
'''The WM_EXITMENULOOP message informs an application's main window procedure that a menu modal loop has been exited.
WM_EXITMENULOOP = &H212
'''The WM_EXITSIZEMOVE message is 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.
WM_EXITSIZEMOVE = &H232
'''An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
WM_FONTCHANGE = &H1D
'''The WM_GETDLGCODE message is 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.
WM_GETDLGCODE = &H87
'''An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.
WM_GETFONT = &H31
'''An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.
WM_GETHOTKEY = &H33
'''The WM_GETICON message is 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.
WM_GETICON = &H7F
'''The WM_GETMINMAXINFO message is 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.
WM_GETMINMAXINFO = &H24
'''Active Accessibility sends the WM_GETOBJECT message to obtain information about an accessible object contained in a server application. Applications never send this message directly. It is sent only by Active Accessibility in response to calls to AccessibleObjectFromPoint AccessibleObjectFromEvent or AccessibleObjectFromWindow. However server applications handle this message.
WM_GETOBJECT = &H3D
'''An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller.
WM_GETTEXT = &HD
'''An application sends a WM_GETTEXTLENGTH message to determine the length in characters of the text associated with a window.
WM_GETTEXTLENGTH = &HE
WM_HANDHELDFIRST = &H358
WM_HANDHELDLAST = &H35F
'''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.
WM_HELP = &H53
'''The WM_HOTKEY message is 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.
WM_HOTKEY = &H312
WM_HSCROLL = &H114
'''The WM_HSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window. This occurs 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.
WM_HSCROLLCLIPBOARD = &H30E
'''Windows NT 3.51 and earlier: The WM_ICONERASEBKGND 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. This message is not sent by newer versions of Windows.
WM_ICONERASEBKGND = &H27
WM_IME_CHAR = &H286
WM_IME_COMPOSITION = &H10F
WM_IME_COMPOSITIONFULL = &H284
WM_IME_CONTROL = &H283
WM_IME_ENDCOMPOSITION = &H10E
WM_IME_KEYDOWN = &H290
WM_IME_KEYLAST = &H10F
WM_IME_KEYUP = &H291
WM_IME_NOTIFY = &H282
WM_IME_REQUEST = &H288
WM_IME_SELECT = &H285
WM_IME_SETCONTEXT = &H281
WM_IME_STARTCOMPOSITION = &H10D
'''The WM_INITDIALOG message is 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.
WM_INITDIALOG = &H110
'''The WM_INITMENU message is 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.
WM_INITMENU = &H116
'''The WM_INITMENUPOPUP message is 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.
WM_INITMENUPOPUP = &H117
'''The WM_INPUTLANGCHANGE message is 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.
WM_INPUTLANGCHANGE = &H51
'''The WM_INPUTLANGCHANGEREQUEST message is 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.
WM_INPUTLANGCHANGEREQUEST = &H50
'''The WM_KEYDOWN message is 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.
WM_KEYDOWN = &H100
WM_KEYFIRST = &H100
WM_KEYLAST = &H108
'''The WM_KEYUP message is 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.
WM_KEYUP = &H101
'''The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard focus.
WM_KILLFOCUS = &H8
'''The WM_LBUTTONDBLCLK message is 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.
WM_LBUTTONDBLCLK = &H203
'''The WM_LBUTTONDOWN message is 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.
WM_LBUTTONDOWN = &H201
'''The WM_LBUTTONUP message is 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.
WM_LBUTTONUP = &H202
'''The WM_MBUTTONDBLCLK message is 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.
WM_MBUTTONDBLCLK = &H209
'''The WM_MBUTTONDOWN message is 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.
WM_MBUTTONDOWN = &H207
'''The WM_MBUTTONUP message is 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.
WM_MBUTTONUP = &H208
'''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.
WM_MDIACTIVATE = &H222
'''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.
WM_MDICASCADE = &H227
'''An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window.
WM_MDICREATE = &H220
'''An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window.
WM_MDIDESTROY = &H221
'''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.
WM_MDIGETACTIVE = &H229
'''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.
WM_MDIICONARRANGE = &H228
'''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.
WM_MDIMAXIMIZE = &H225
'''An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window.
WM_MDINEXT = &H224
'''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.
WM_MDIREFRESHMENU = &H234
'''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.
WM_MDIRESTORE = &H223
'''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.
WM_MDISETMENU = &H230
'''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.
WM_MDITILE = &H226
'''The WM_MEASUREITEM message is sent to the owner window of a combo box list box list view control or menu item when the control or menu is created.
WM_MEASUREITEM = &H2C
'''The WM_MENUCHAR message is 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.
WM_MENUCHAR = &H120
'''The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
WM_MENUCOMMAND = &H126
'''The WM_MENUDRAG message is sent to the owner of a drag-and-drop menu when the user drags a menu item.
WM_MENUDRAG = &H123
'''The WM_MENUGETOBJECT message is sent to the owner of a drag-and-drop menu when the mouse cursor enters a menu item or moves from the center of the item to the top or bottom of the item.
WM_MENUGETOBJECT = &H124
'''The WM_MENURBUTTONUP message is sent when the user releases the right mouse button while the cursor is on a menu item.
WM_MENURBUTTONUP = &H122
'''The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item.
WM_MENUSELECT = &H11F
'''The WM_MOUSEACTIVATE message is 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.
WM_MOUSEACTIVATE = &H21
'''Use WM_MOUSEFIRST to specify the first mouse message. Use the PeekMessage() Function.
WM_MOUSEFIRST = &H200
'''The WM_MOUSEHOVER message is 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.
WM_MOUSEHOVER = &H2A1
WM_MOUSELAST = &H20D
'''The WM_MOUSELEAVE message is posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent.
WM_MOUSELEAVE = &H2A3
'''The WM_MOUSEMOVE message is 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.
WM_MOUSEMOVE = &H200
'''The WM_MOUSEWHEEL message is 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.
WM_MOUSEWHEEL = &H20A
'''The WM_MOUSEHWHEEL message is sent to the focus window when the mouse's horizontal scroll wheel is tilted or 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.
WM_MOUSEHWHEEL = &H20E
'''The WM_MOVE message is sent after a window has been moved.
WM_MOVE = &H3
'''The WM_MOVING message is sent to a window that the user is moving. By processing this message an application can monitor the position of the drag rectangle and if needed change its position.
WM_MOVING = &H216
WM_NCACTIVATE = &H86
'''The WM_NCCALCSIZE message is 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.
WM_NCCALCSIZE = &H83
'''The WM_NCCREATE message is sent prior to the WM_CREATE message when a window is first created.
WM_NCCREATE = &H81
'''The WM_NCDESTROY message informs a window that its nonclient 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.
WM_NCDESTROY = &H82
'''The WM_NCHITTEST message is sent to a window when the cursor moves or when a mouse button is pressed or released. 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.
WM_NCHITTEST = &H84
'''The WM_NCLBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is within the nonclient 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.
WM_NCLBUTTONDBLCLK = &HA3
'''The WM_NCLBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is within the nonclient 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.
WM_NCLBUTTONDOWN = &HA1
'''The WM_NCLBUTTONUP message is posted when the user releases the left mouse button while the cursor is within the nonclient 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.
WM_NCLBUTTONUP = &HA2
'''The WM_NCMBUTTONDBLCLK message is posted when the user double-clicks the middle mouse button while the cursor is within the nonclient 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.
WM_NCMBUTTONDBLCLK = &HA9
'''The WM_NCMBUTTONDOWN message is posted when the user presses the middle mouse button while the cursor is within the nonclient 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.
WM_NCMBUTTONDOWN = &HA7
'''The WM_NCMBUTTONUP message is posted when the user releases the middle mouse button while the cursor is within the nonclient 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.
WM_NCMBUTTONUP = &HA8
''' The WM_NCMOUSELEAVE message is posted to a window when the cursor leaves the nonclient area of the window specified in a prior call to TrackMouseEvent.
WM_NCMOUSELEAVE = &H2A2
'''The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient 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.
WM_NCMOUSEMOVE = &HA0
'''The WM_NCPAINT message is sent to a window when its frame must be painted.
WM_NCPAINT = &H85
'''The WM_NCRBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is within the nonclient 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.
WM_NCRBUTTONDBLCLK = &HA6
'''The WM_NCRBUTTONDOWN message is posted when the user presses the right mouse button while the cursor is within the nonclient 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.
WM_NCRBUTTONDOWN = &HA4
'''The WM_NCRBUTTONUP message is posted when the user releases the right mouse button while the cursor is within the nonclient 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.
WM_NCRBUTTONUP = &HA5
'''The WM_NEXTDLGCTL message is sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box
WM_NEXTDLGCTL = &H28
'''The WM_NEXTMENU message is sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu.
WM_NEXTMENU = &H213
WM_NOTIFY = &H4E
'''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.
WM_NOTIFYFORMAT = &H55
'''The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.
WM_NULL = &H0
WM_PAINT = &HF
'''The WM_PAINTCLIPBOARD message is 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.
WM_PAINTCLIPBOARD = &H309
'''Windows NT 3.51 and earlier: The WM_PAINTICON message is sent to a minimized window when the icon is to be painted. This message is not sent by newer versions of Microsoft Windows except in unusual circumstances explained in the Remarks.
WM_PAINTICON = &H26
WM_PALETTECHANGED = &H311
'''The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette.
WM_PALETTEISCHANGING = &H310
'''The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed or when the user clicks a mouse button while the cursor is over the child window. 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.
WM_PARENTNOTIFY = &H210
'''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.
WM_PASTE = &H302
WM_PENWINFIRST = &H380
WM_PENWINLAST = &H38F
WM_POWER = &H48
WM_POWERBROADCAST = &H218
'''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.
WM_PRINT = &H317
'''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.
WM_PRINTCLIENT = &H318
'''The WM_QUERYDRAGICON message is 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.
WM_QUERYDRAGICON = &H37
'''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.
WM_QUERYENDSESSION = &H11
WM_QUERYNEWPALETTE = &H30F
'''The WM_QUERYOPEN message is sent to an icon when the user requests that the window be restored to its previous size and position.
WM_QUERYOPEN = &H13
'''The WM_QUEUESYNC message is sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK Hook procedure.
WM_QUEUESYNC = &H23
WM_QUIT = &H12
'''he WM_RBUTTONDBLCLK message is 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.
WM_RBUTTONDBLCLK = &H206
'''The WM_RBUTTONDOWN message is 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.
WM_RBUTTONDOWN = &H204
'''The WM_RBUTTONUP message is 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.
WM_RBUTTONUP = &H205
'''The WM_RENDERALLFORMATS message is 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.
WM_RENDERALLFORMATS = &H306
'''The WM_RENDERFORMAT message is 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.
WM_RENDERFORMAT = &H305
'''The WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.
WM_SETCURSOR = &H20
WM_SETFOCUS = &H7
'''An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text.
WM_SETFONT = &H30
'''An application sends a WM_SETHOTKEY message to a window to associate a hot key with the window. When the user presses the hot key the system activates the window.
WM_SETHOTKEY = &H32
'''An application sends the WM_SETICON message to associate 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.
WM_SETICON = &H80
'''An application sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to prevent changes in that window from being redrawn.
WM_SETREDRAW = &HB
'''Text / Caption changed on the control. An application sends a WM_SETTEXT message to set the text of a window.
WM_SETTEXT = &HC
'''An application sends the WM_SETTINGCHANGE 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.
WM_SETTINGCHANGE = &H1A
'''The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown
WM_SHOWWINDOW = &H18
'''The WM_SIZE message is sent to a window after its size has changed.
WM_SIZE = &H5
'''The WM_SIZECLIPBOARD message is 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.
WM_SIZECLIPBOARD = &H30B
'''The WM_SIZING message is 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.
WM_SIZING = &H214
'''The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.
WM_SPOOLERSTATUS = &H2A
'''The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the window's styles.
WM_STYLECHANGED = &H7D
'''The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.
WM_STYLECHANGING = &H7C
'''The WM_SYNCPAINT message is used to synchronize painting while avoiding linking independent GUI threads.
WM_SYNCPAINT = &H88
'''The WM_SYSCHAR message is 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.
WM_SYSCHAR = &H106
WM_SYSCOLORCHANGE = &H15
WM_SYSCOMMAND = &H112
'''The WM_SYSDEADCHAR message is 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.
WM_SYSDEADCHAR = &H107
'''The WM_SYSKEYDOWN message is 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.
WM_SYSKEYDOWN = &H104
'''The WM_SYSKEYUP message is 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.
WM_SYSKEYUP = &H105
WM_TCARD = &H52
WM_TIMECHANGE = &H1E
'''The WM_TIMER message is posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.
WM_TIMER = &H113
'''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.
WM_UNDO = &H304
'''The WM_UNINITMENUPOPUP message is sent when a drop-down menu or submenu has been destroyed.
WM_UNINITMENUPOPUP = &H125
'''The WM_USER constant is used by applications to help define private messages for use by private window classes usually of the form WM_USER+X where X is an integer value.
WM_USER = &H400
'''The WM_USERCHANGED message is 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.
WM_USERCHANGED = &H54
'''Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message.
WM_VKEYTOITEM = &H2E
'''The WM_VSCROLL message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar. This message is also sent to the owner of a vertical scroll bar control when a scroll event occurs in the control.
WM_VSCROLL = &H115
'''The WM_VSCROLLCLIPBOARD message is 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.
WM_VSCROLLCLIPBOARD = &H30A
'''The WM_WINDOWPOSCHANGED message is 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.
WM_WINDOWPOSCHANGED = &H47
'''The WM_WINDOWPOSCHANGING message is 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.
WM_WINDOWPOSCHANGING = &H46
'''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. Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. Applications should use the WM_SETTINGCHANGE message.
WM_WININICHANGE = &H1A
WM_XBUTTONDBLCLK = &H20D
WM_XBUTTONDOWN = &H20B
WM_XBUTTONUP = &H20C
WMAppcommand = &H319
''' In <see cref="WmSysCommand"/> messages,
WmSysCommand = &H112
''' Applications should send <see cref="WindowsMessages.WmSettingchange"/> to all top-level windows when
''' To send the <see cref="WindowsMessages.WmSettingchange"/> message to all top-level windows,
WmSettingchange = &H1A
WmCommand = &H111
WmGetText = &HD
WmGetTextLength = &HE
WmSetText = &HC
WmClose = &H10
WmMove = &H3
''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.
WmNcLButtonDown = &HA1
''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.
WmNcLButtonUp = &HA2
''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.
WmNcRButtonDown = &HA4
''' result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.
WmNcRButtonUp = &HA5
WmInitMenu = &H116
WmInitMenuPopup = &H117
WmNchitTest = &H84
''' <see cref="WindowsMessages.WmHotkey"/> message.
WmHotkey = &H312
WmSetRedraw = &HB
WmSizing = &H214
''' or when the window passes the <see cref="WindowsMessages.WmSysCommand"/> message to the
''' The system sends the <see cref="WmEnterSizeMove"/> message regardless of
WmEnterSizeMove = &H231
''' or when the window passes the <see cref="WindowsMessages.WmSysCommand"/> message to the
WmExitSizeMove = &H232
WmWindowPosChanging = &H46
''' as a result of processing the <see cref="WindowsMessages.WmNchitTest"/> message.
''' For a list of hit-test values, see <see cref="WindowsMessages.WmNchitTest"/>.
WmNcMouseMove = &HA0
WmMouseMove = &H200
WmShowWindow = &H18
WmSize = &H5
WmActivate = &H6
WmActivateApp = &H1C
WmChangeUiState = &H127
WmContextmenu = &H7B
WmCreate = &H1
WmDestroy = &H2
WmDestroyClipboard = &H307
WmDeviceChange = &H219
WmDevmodeChange = &H1B
WmDisplayChange = &H7E
WmEnable = &HA
''' results of the <c>WM_QUERYENDSESSION</c> message.
WmEndSession = &H16
WmEnterIdle = &H121
WmEraseBkgnd = &H14
WmFontChange = &H1D
WmGetHotkey = &H33
WmGetMinMaxInfo = &H24
''' If a menu is active when <c>F1</c> is pressed <see cref="WmHelp"/> is sent to the window associated with the menu;
''' otherwise WmHELP is sent to the window that has the keyboard focus.
''' If no window has the keyboard focus <see cref="WmHelp"/> is sent to the currently active window.
WmHelp = &H53
WmHScroll = &H114
WmInitDialog = &H110
WmKeyDown = &H100
WmKeyUp = &H101
WmKillFocus = &H8
WmLButtonDblClk = &H203
WmLButtonDown = &H201
WmLButtonUp = &H202
''' The WmMBUTTONDBLCLK message is posted when the user double-clicks the middle mouse button while the
WmMButtonDblClk = &H209
WmMButtonDown = &H207
WmMButtonUp = &H208
WmMdiActivate = &H222
WmMdiCreate = &H220
WmMdiDestroy = &H221
WmMenuCommand = &H126
WmMenuRButtonUp = &H122
WmMenuSelect = &H11F
WmMouseActivate = &H21
WmMouseHover = &H2A1
WmMouseLeave = &H2A3
WmMouseWheel = &H20A
WmMouseHWheel = &H20E
WmMoving = &H216
WmNcActivate = &H86
WmNcCalcSize = &H83
''' The message is sent prior to the <see cref="WmCreate"/> message when a window is first created.
WmNcCreate = &H81
''' The <c>DestroyWindow</c> function sends the <see cref="WmNcDestroy"/> message to the
''' window following the <see cref="WmDestroy"/> message.
''' <see cref="WmDestroy"/> is used to free the allocated memory object associated with the window.
WmNcDestroy = &H82
WmNcLButtonDblClk = &HA3
WmNcMButtonDblClk = &HA9
WmNcMButtonDown = &HA7
WmNcMButtonUp = &HA8
WmNcMouseLeave = &H2A2
WmNcPaint = &H85
WmNcRButtonDblClk = &HA6
WmPaint = &HF
WmPowerBroadcast = &H218
WmPrint = &H317
WmPrintClient = &H318
''' The system stops sending <see cref="WmQueryEndSession"/> messages as soon as one application returns zero.
''' After processing this message the system sends the <see cref="WmEndSession"/> message with the
''' <paramref name="wParam"/> parameter set to the results of the <see cref="WmQueryEndSession"/> message.
WmQueryEndSession = &H11
WmQuit = &H12
WmRButtonDblClk = &H206
WmRButtonDown = &H204
WmRButtonUp = &H205
WmSetFocus = &H7
WmSetHotkey = &H32
WmSpoolerStatus = &H2A
WmStyleChanged = &H7D
WmStyleChanging = &H7C
WmSysColorChange = &H15
''' in this case the <see cref="WmSysKeyDown"/> message is sent to the active window.
WmSysKeyDown = &H104
''' in this case the <see cref="WmSysKeyUp"/> message is sent to the active window.
WmSysKeyUp = &H105
WmTimeChange = &H1E
WmUndo = &H304
WmUserChanged = &H54
WmVScroll = &H115
WmWindowPosChanged = &H47
WmCopy = &H301
WmCut = &H300
WmPaste = &H302
WmClear = &H303
WmXButtonDown = &H20B
WmXButtonUp = &H20C
WmXButtonDblClk = &H20D
''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.
''' For a list of hit-test values, <see cref="WmNchitTest"/>.
WmNcXButtonDown = &HAB
''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.
''' For a list of hit-test values, <see cref="WmNchitTest"/>.
WmNcXButtonUp = &HAC
''' <c>DefWindowProc</c> function from processing the <see cref="WmNchitTest"/> message.
''' For a list of hit-test values, <see cref="WmNchitTest"/>.
WmNcXButtonDblClk = &HAD WM_SIZING:WM_NCHITTEST:
public const Int32 WM_SYSCOMMAND = 0x112;
public const Int32 WM_CLOSE = 0xF060;
if(m.Msg == WM_SYSCOMMAND)
case WM_CLOSE: 38: WindowStyles
/// 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.
/// Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.
''' 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.
''' Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed. 39: WindowStylesEx
/// 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.
/// Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.
''' 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.
''' Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed. 40: WinHelpCommands
HELP_WM_HELP = 0x000c;
HELP_WM_HELP = &H000c
HELP_WM_HELP As Long = &H000c DelegatesWindowsMessages the type of event. This will be WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN or WM_SYSKEYUP
WM_TIMER uMsg in Type: UINT The WM_TIMER message. The TimerProc Callback Function. An application-defined callback function that processes WM_TIMER messages. comctl32
/// This function is typically called in response to a WM_MOUSEMOVE message.
''' This function is typically called in response to a WM_MOUSEMOVE message. imm3244: ImmConfigureIME
UInt32 dwMode, shell3245: DllGetVersion
public int dwMajorVersion;
public int dwMinorVersion;
Dim ddwMajorVersion As Integer
Dim dwMinorVersion As Integer
public int dwMajorVersion;
public int dwMinorVersion;
Dim ddwMajorVersion As Integer
Dim dwMinorVersion As Integer 47: ITaskbarList3
THUMBBUTTONMASK dwMask; 48: SHAppBarMessage
/// <param name="dwMessage">
/// C++ ( dwMessage [in] Type: DWORD )<br />Appbar message value to send. This parameter can be one of the following
/// of the structure on entry and on exit depends on the value set in the dwMessage parameter. See the individual
static extern IntPtr SHAppBarMessage(uint dwMessage,
Shared Function SHAppBarMessage(ByVal dwMessage As Integer, ByRef pData As APPBARDATA) As Integer
Shared Function SHAppBarMessage(ByVal dwMessage As Integer, ByRef pData As APPBARDATA) As Integer
Private Shared Function RegisterWindowMessage(ByVal msg As String) As Integer
uCallbackMessage = RegisterWindowMessage("AppBarMessage")
public const int WM_USER = 0x400;
public const int BFFM_SETSTATUSTEXTA = WM_USER + 100;
public const int BFFM_ENABLEOK = WM_USER + 101;
public const int BFFM_SETSELECTIONA = WM_USER + 102;
public const int BFFM_SETSELECTIONW = WM_USER + 103;
public const int BFFM_SETSTATUSTEXTW = WM_USER + 104;
public const int BFFM_SETOKTEXT = WM_USER + 105; // Unicode only
public const int BFFM_SETEXPANDED = WM_USER + 106; // Unicode only
uint wMsg,
uint wMsg, 51: ShellExecuteEx
SW_SHOWMINIMIZED = 2,
SW_SHOWMAXIMIZED = 3,
SW_SHOWMINNOACTIVE = 7, 52: SHFormatDrive On Vista and better, you also have the Win32_Volume WMI classes. See http://msdn.microsoft.com/en-us/library/aa390432(VS.85).aspx 53: THUMBBUTTON
public THUMBBUTTONMASK dwMask; faultrep54: ReportFault
__in DWORD dwMode kernel3255: APIGetVersionEx
public uint dwMajorVersion;
public uint dwMinorVersion;
Public dwMajorVersion As Integer
Public dwMinorVersion As Integer
Return (osv.dwMajorVersion = 5 And osv.dwMinorVersion = 2)
Return (osv.wProductType = VER_NT_WORKSTATION And osv.dwMajorVersion = 6) 56: ConsoleFunctions
uint dwMode
public COORD dwMaximumWindowSize;
public COORD dwMaximumWindowSize;
public COORD dwMousePosition; 57: CreateFile
uint dwMaximumSizeHigh,
uint dwMaximumSizeLow,
dwMaximumSizeHigh As UInteger, _
dwMaximumSizeLow As UInteger, _
private static extern IntPtr CreateFileMapping(IntPtr hFile, IntPtr lpAttributes, FileMapProtection flProtect, Int32 dwMaxSizeHi, Int32 dwMaxSizeLow, string lpName);
uint dwMaximumSizeHigh,
uint dwMaximumSizeLow,
dwMaximumSizeHigh As UInteger, _
dwMaximumSizeLow As UInteger, _
private static extern IntPtr CreateFileMapping(IntPtr hFile, IntPtr lpAttributes, FileMapProtection flProtect, Int32 dwMaxSizeHi, Int32 dwMaxSizeLow, string lpName);
LowMemoryResourceNotification = 0, 60: DeviceIoControl
Dim wMoreVendorUnique As Short
Dim wMultSectorStuff As Short
Dim wMultiWordDMA As Short
Public dwMajorVersion As Integer
Public dwMinorVersion As Integer Cut off search results after 60. Please refine your search. |