Windows-specific message constant identifiers

Source: Internet
Author: User

' ========================================
' Windows-specific message constant identifiers
' ========================================
Public Const wm_null = &H0&
Public Const wm_create = &H1& ' application creates a window
Public Const Wm_destroy = &H2& ' A window is destroyed
Public Const Wm_move = &H3& ' move a window
Public Const wm_size = &H5& ' Change the size of a window
Public Const wm_activate = &H6& ' A window is activated or inactive
Public Const Wm_setfocus = &H7& ' after gaining focus
Public Const Wm_killfocus = &H8& ' loses focus
Public Const wm_enable = &HA& ' Change ENABLE state
Public Const Wm_setredraw = &HB& ' Sets whether the window can repaint
Public Const Wm_settext = &HC& ' application sends this message to set the text of a window
Public Const Wm_gettext = &HD& ' application sends this message to copy the corresponding window's text to the buffer
Public Const wm_gettextlength = &HE& ' Gets the length of the text associated with a window (does not contain null characters)
Public Const WM_PAINT = &HF& ' requires a window to repaint itself
Public Const wm_close = &H10& ' sends a signal when a window or application is to be closed
Public Const wm_queryendsession = &H11& ' When the user chooses the End dialog box or the program calls the ExitWindows function itself
Public Const wm_quit = &H12& ' used to end program run or when program calls PostQuitMessage function
Public Const Wm_queryopen = &H13& ' When the user window restores the previous size position, send this message to an icon
Public Const WM_ERASEBKGND = &H14& ' When the window background must be erased (example when the window changes size)
Public Const Wm_syscolorchange = &H15& ' When the system color changes, send this message to all the top-level windows
Public Const Wm_endsession = &H16& ' When the system process issues a public const WM_QUERYENDSESSION message, this message is sent to the application to notify it that the conversation is over
Public Const Wm_systemerror = &H17&
Public Const Wm_showwindow = &H18& ' When the hidden or displayed window is sending this message to this window
Public Const Wm_activateapp = &H1C& ' sends this message to the application which window is active and which is inactive
Public Const Wm_fontchange = &H1D& "Sends this message to all top-level windows when the system's font repository changes
Public Const Wm_timechange = &H1E& ' sends this message to all top-level windows when the system's time changes
Public Const Wm_cancelmode = &H1F& ' sends this message to cancel an in-progress state (operation)
Public Const wm_setcursor = &H20& ' If the mouse causes the cursor to move through a window and the mouse input is not captured, send a message to a window

Public Const wm_mouseactivate = &H21& ' When the cursor is in an inactive window and the user is pressing a key on the mouse to send this message to the current window
Public Const wm_childactivate = &H22& ' sends this message to the MDI child window when the user taps the title bar of this window, or when the window is activated, moves, changes size
Public Const Wm_queuesync = &H23& ' This message is sent by a computer-based training program that separates the user input message through the Wh_journalpalyback hook program
Public Const wm_getminmaxinfo = &H24& ' This message is sent to the window when it is going to change size or position
Public Const Wm_painticon = &H26& ' Send to minimized window when its icon is going to be redrawn
Public Const Wm_iconerasebkgnd = &H27& ' This message is sent to a minimized window only if it's background must be redrawn before drawing the icon
Public Const wm_nextdlgctl = &H28& ' Send this message to a dialog program to change the focus position
Public Const wm_spoolerstatus = &H2A& ' sends this message whenever a print management queue increases or decreases a job
Public Const Wm_drawitem = &H2B& ' Send this message to the owner of these empty pieces when the visual appearance of Button,combobox,listbox,menu changes
Public Const Wm_measureitem = &H2C& ' when button, combo box, list box, List View control, or menu item is created when this message is sent to all controls Stakeholders
Public Const Wm_deleteitem = &H2D& ' When the list box or combo box is destroyed or when certain items are removed through lb_deletestring, Lb_resetcontent, CB _deletestring, or Cb_resetcontent message
Public Const WM_VKEYTOITEM = &H2E& ' This message has a lbs_wantkeyboardinput style issued to its owner in response to the public const WM_KEYDOWN message
Public Const Wm_chartoitem = &H2F& ' This message is sent by a lbs_wantkeyboardinput-style list box to his owner in response to the public const WM_CHAR message
Public Const Wm_setfont = &H30& ' When the text is drawn the program sends this message to get the color of the control to be used
Public Const Wm_getfont = &H31& ' application sends this message to get the font of the current control drawing text
Public Const Wm_sethotkey = &H32& ' application sends this message to have a window associated with a hotkey
Public Const Wm_gethotkey = &H33& ' application sends this message to determine if a hotkey is associated with a window
Public Const Wm_querydragicon = &H37& ' This message is sent to the minimized window, and when this window is about to be dragged and there is no icon defined in its class, the application can return an icon or a handle to the cursor, The system displays this icon or cursor when the user drags and drop the icon
Public Const Wm_compareitem = &H39& ' sends this message to determine the relative position of the newly added item in the ComboBox or ListBox
Public Const Wm_getobject = &H3D&
Public Const wm_compacting = &H41& ' Show memory is low
Public Const wm_windowposchanging = &H46& ' sends this message to the size and position of the window to be changed, to invoke the SetWindowPos function or other window management functions
Public Const wm_windowposchanged = &H47& ' sends this message to the window when the size and position has been changed, to call the SetWindowPos function or other window management functions
Public Const Wm_power = &H48& ' sends this message when the system is about to enter a paused state (for 16-bit Windows)
Public Const Wm_copydata = &H4A& ' sends this message when one application passes data to another application
Public Const wm_canceljournal = &H4B& ' When a user cancels the program Log activation state, submits this message to the program
Public Const wm_notify = &H4E& ' When an event of a control has occurred or the control needs to get some information, send this message to its parent window
Public Const wm_inputlangchangerequest = &H50& ' When the user chooses an input language, or the hotkey of the input language changes
Public Const Wm_inputlangchange = &H51& ' When the platform field has been changed send this message to the affected top-level window
Public Const Wm_tcard = &H52& "sends this message to the application when the program has initialized Windows Help routines
Public Const wm_help = &H53& ' This message shows that the user pressed F1, if a menu is active, send this message to the menu associated with this window, otherwise it will be sent to the focus window, if there is currently no focus, Sends this message to the currently active window
Public Const wm_userchanged = &H54& ' When the user has logged in or exited to send this message to all windows, when the user login or exit when the system updates the user's specific settings information, the user updates the settings when the system immediately send this message;
Public Const Wm_notifyformat = &H55& ' Common controls, custom controls and their parent window through this message to determine whether the control is using an ANSI or Unicode structure, in the WM_NOTIFY message, Use this control to enable communication between a control and its parent control
Public Const Wm_contextmenu = &H7B& ' When a user clicks the right button in a window to send this message to this window
Public Const wm_stylechanging = &H7C& ' When the call to SetWindowLong function is going to change the style of one or more windows, send this message to that window
Public Const wm_stylechanged = &H7D& ' when calling SetWindowLong function one or more window styles send this message to that window
Public Const Wm_displaychange = &H7E& ' When the resolution of the monitor is changed send this message to all windows
Public Const Wm_geticon = &H7F& ' This message is sent to a window to return a handle to a large icon or small icon connected to a window;
Public Const Wm_seticon = &H80& ' program sends this message to have a new large icon or small icon associated with a window;
Public Const Wm_nccreate = &H81& ' When a window is first created, this message is sent before the public Const wm_create message is sent;
Public Const Wm_ncdestroy = &H82& ' This message notifies a window that the non-client area is being destroyed
Public Const wm_nccalcsize = &H83& ' When a client area of a window must be accounted for when this message is sent
Public Const wm_nchittest = &H84& ' Moves the mouse, while holding or releasing the mouse occurs
Public Const wm_ncpaint = &H85& ' program sends this message to a window when it (window) 's frame must be drawn;
Public Const wm_ncactivate = &H86& ' This message is sent to a window only if its non-client area needs to be changed to show whether it is active or inactive;
Public Const WM_GETDLGCODE = &H87& ' sends this message to a control that is associated with a dialog box program, widdows the control azimuth key and TAB key to enter this control by responding to public const WM_ Getdlgcode message, the application can treat him as a special input control and can handle it
Public Const Wm_ncmousemove = &HA0& ' sends this message when the cursor moves within the non-client area of a window to this window the non-client area is: the title bar of the form and the border of the window
Public Const Wm_nclbuttondown = &HA1& ' submits this message when the cursor is in the non-client area of a window while the left mouse button is pressed
Public Const Wm_nclbuttonup = &HA2& ' When the user releases the left mouse button while the cursor is in a window in the non-client area 10 sends this message;
Public Const wm_nclbuttondblclk = &HA3& ' When the user double-clicks the left mouse button while the cursor is in a window in the non-client area 10 sends this message
Public Const Wm_ncrbuttondown = &HA4& ' sends this message when the user presses the right mouse button while the cursor is in the non-client area of the window
Public Const Wm_ncrbuttonup = &HA5& ' sends this message when the user releases the right mouse button while the cursor is in the non-client area of the window
Public Const wm_ncrbuttondblclk = &HA6& ' When the user double-clicks the right mouse button at the same time cursor a window in the non-client area 10 sends this message
Public Const Wm_ncmbuttondown = &HA7& ' sends this message when the user presses the middle mouse button while the cursor is in the non-client area of the window
Public Const Wm_ncmbuttonup = &HA8& ' sends this message when the user releases the middle mouse button while the cursor is in the non-client area of the window
Public Const WM_NCMBUTTONDBLCLK = &HA9& ' sends this message when the user double-clicks the middle mouse button while the cursor is in the non-client area of the window

Public Const Wm_keyfirst = &H100&
Public Const wm_keydown = &H100& ' Press a key
Public Const wm_keyup = &H101& ' releases a key
Public Const WM_CHAR = &H102& ' pressed a key and issued a WM_KEYDOWN,WM_KEYUP message

Public Const Wm_deadchar = &H103& sends this message to the window with focus when translating wm_keyup messages with the TranslateMessage function
Public Const Wm_syskeydown = &H104& ' submits this message to the window with focus when the user holds down the ALT key while pressing the other key;
Public Const Wm_syskeyup = &H105& ' When the user releases a key while the ALT key is still pressed, the message is submitted to the window that has focus
Public Const Wm_syschar = &H106& ' When Wm_syskeydown message is translated by translatemessage function to submit this message to the window with focus
Public Const Wm_sysdeadchar = &H107& ' When Wm_syskeydown message is translated by translatemessage function send this message to the window with focus
Public Const wm_keylast = &H108&
Public Const Wm_initdialog = &H110& ' sends this message to it before a dialog box is displayed, typically using this message to initialize the control and perform other tasks
Public Const wm_command = &H111& ' When the user selects a menu command item or when a control sends a message to its parent window, a shortcut key is translated
Public Const Wm_syscommand = &H112& ' When the user chooses a command from the Window menu or when the user chooses to maximize or minimize, that window receives this message
Public Const Wm_timer = &H113& ' Timer event has occurred
Public Const wm_hscroll = &H114& ' When a window standard horizontal scrollbar produces a scrolling event when this message is sent to that window, also sent to the control that owns it
Public Const Wm_vscroll = &H115& ' When a window standard vertical scrollbar produces a scrolling event when this message is sent to that window, it is sent to the control that owns it
Public Const Wm_initmenu = &H116& ' sends this message when a menu is about to be activated, it occurs on an item in the user's menu bar or presses a menu key, which allows the program to change the menu before it is displayed
Public Const Wm_initmenupopup = &H117& "Sends this message when a drop-down menu or submenu is about to be activated, which allows the program to change the menu before it is displayed, without changing all
Public Const wm_menuselect = &H11F& ' sends this message to the owner of the menu when the user selects a menu item (typically a window)
Public Const Wm_menuchar = &H120& ' When the menu has been activated the user presses a key (different from the accelerator key), sends this message to the owner of the menu;
Public Const Wm_enteridle = &H121& ' sends this message to its owner when a modal dialog box or menu enters an empty state, A modal dialog box or menu enters no-load state and waits in the queue without a message after processing one or several previous messages
Public Const Wm_menurbuttonup = &H122&
Public Const Wm_menudrag = &H123&
Public Const Wm_menugetobject = &H124&
Public Const Wm_uninitmenupopup = &H125&
Public Const Wm_menucommand = &H126&
Public Const wm_changeuistate = &H127&
Public Const wm_updateuistate = &H128&
Public Const wm_queryuistate = &H129&
Public Const Wm_ctlcolormsgbox = &H132& ' sends this message to the owner window of the message box before Windows draws the message box, by responding to this message, The owner window can set the text and background color of the message box by using the handle of the given related display device
Public Const Wm_ctlcoloredit = &H133& ' When an edit control is about to be drawn, send this message to its parent window, and by responding to this message, The owner window can set the text and background color of the edit box by using the handle of the given related display device
Public Const Wm_ctlcolorlistbox = &H134& ' When a ListBox control is going to be drawn before the message is sent to its parent window; The owner window can set the text and background color of a list box by using the handle of a given related display device
Public Const wm_ctlcolorbtn = &H135& ' When a button control is about to be drawn, send this message to its parent window, and by responding to this message, The owner window can set the text and background color of the button by using the handle of the given related display device
Public Const Wm_ctlcolordlg = &H136& ' When a dialog box control is going to be drawn before the message is sent to its parent window, and by responding to this message, The owner window can set the text background color of the dialog box by using the handle of the given related display device
Public Const Wm_ctlcolorscrollbar = &H137& ' When a scrollbar control is about to be drawn, send this message to its parent window, and by responding to this message, The owner window can set the background color of the scroll bar by using the handle of the given related display device
Public Const wm_ctlcolorstatic = &H138& ' sends this message to its parent window when a static control is about to be drawn, by responding to this message, The owner window can set the text and background color of a static control by using the handle of a given related display device

Public Const Wm_mousefirst = &h200&,
Public Const WM_MOUSEMOVE = &H200& ' Move mouse
Public Const WM_LBU Ttondown = &H201& ' Press the left mouse button
Public Const WM_LBUTTONUP = &H202& ' release left mouse button
Public Const WM_LBUTTONDBLCLK = &H203& ' left mouse button
Public Const Wm_rbuttondown = &H204& ' right mouse button
Public Const WM_RBUTTONUP = &h205 & ' Release the right mouse button
Public Const WM_RBUTTONDBLCLK = &H206& ' right mouse button
Public Const Wm_mbuttondown = &H207& ' Press the middle mouse button
Public Const WM_MBUTTONUP = &H208& ' Release middle mouse button
Public Const WM_MBUTTONDBLCLK = &H209& ' Double click middle mouse button Br>public Const WM_MOUSEWHEEL = &H20A& ' sends this message when the mouse wheel rotates a control that currently has focus
public Const Wm_mouselast = &H20A&

Public Const Wm_parentnotify = &H210& ' When the MDI child window is created or destroyed, or the user presses the mouse button while the cursor is on the child window, the message is sent to its parent window
Public Const wm_ Entermenuloop = &H211& ' sends this message to notify the application of the main window that has entered the menu loop mode
Public Const wm_exitmenuloop = &H212& ' Send this message to notify the application of the main window that has exited the menu loop mode
Public Const WM_NEXTMENU = &h213&
Public Const wm_sizing = 532& ' This message is sent to the window when the user is resizing the window, and by this message the application can monitor the window size and position or modify them
public Const wm_capturechanged = 533& ' Send this message to the window when it loses the captured mouse
Public Const wm_moving = 534& ' When a user sends this message while moving a window, the message application can monitor the window size and position or modify them
public Const wm_powerbroadcast = 536& ' This message is sent to the application to notify it about power management events
Public Const wm_devicechange = 537& ' Send this message to the application or device driver when the device's hardware configuration changes

Public Const wm_ime_startcomposition = &H10D&
Public Const wm_ime_endcomposition = &H10E&
Public Const wm_ime_composition = &H10F&
Public Const wm_ime_keylast = &H10F&
Public Const Wm_ime_setcontext = &H281&
Public Const wm_ime_notify = &H282&
Public Const Wm_ime_control = &H283&
Public Const wm_ime_compositionfull = &H284&
Public Const Wm_ime_select = &H285&
Public Const Wm_ime_char = &H286&
Public Const wm_ime_request = &H288&
Public Const Wm_ime_keydown = &H290&
Public Const Wm_ime_keyup = &H291&

Public Const wm_mdicreate = &H220& ' application sends this message to a multi-document customer window to create an MDI child window
Public Const Wm_mdidestroy = &H221& ' application sends this message to a multi-document client window to close an MDI child window
Public Const WM_MDIACTIVATE = &H222& ' application sends this message to a multi-document customer window to notify the client window to activate another MDI child window, and when the client window receives this message, it issues a public Const wm_ Mdiactive message to MDI child window (not activated) activates it
Public Const Wm_mdirestore = &H223& ' program sends this message to the MDI client window to restore the child window from the maximum minimized to its original size
Public Const wm_mdinext = &H224& ' program sends this message to the MDI client window to activate the next or previous window
Public Const wm_mdimaximize = &H225& ' program sends this message to the MDI client window to maximize an MDI child window
Public Const wm_mditile = &H226& ' program sends this message to the MDI client window to re-arrange all MDI child windows in a tiled manner
Public Const Wm_mdicascade = &H227& ' program sends this message to the MDI client window to cascade all MDI child windows
Public Const wm_mdiiconarrange = &H228& ' program sends this message to the MDI client window to rearrange all minimized MDI child windows
Public Const wm_mdigetactive = &H229& ' program sends this message to the MDI client window to find the handle to the active child window
Public Const wm_mdisetmenu = &H230& ' program sends this message to MDI client window using MDI menu instead of child window menu
Public Const Wm_entersizemove = &H231&
Public Const Wm_exitsizemove = &H232&
Public Const wm_dropfiles = &H233&
Public Const Wm_mdirefreshmenu = &H234&
Public Const Wm_mousehover = &H2A1&
Public Const Wm_mouseleave = &H2A3&
Public Const wm_cut = &H300& ' program sends this message to an edit box or ComboBox to delete the currently selected text
Public Const wm_copy = &H301& ' program sends this message to an edit box or ComboBox to copy the currently selected text to the Clipboard
Public Const wm_paste = &H302& ' program sends this message to Editcontrol or ComboBox to get data from clipboard
Public Const wm_clear = &H303& ' program sends this message to Editcontrol or ComboBox clears the currently selected content
Public Const Wm_undo = &H304& ' program sends this message to Editcontrol or ComboBox undo last action
Public Const Wm_renderformat = &H305&
Public Const wm_renderallformats = &H306&
Public Const Wm_destroyclipboard = &H307& ' sends this message to the owner of the Clipboard when the Enptyclipboard function is called
Public Const Wm_drawclipboard = &H308& ' When the contents of the Clipboard are changed, this message is sent to the first window of the Clipboard watch chain; it allows the clipboard viewing window to display new contents of the Clipboard;
Public Const Wm_paintclipboard = &H309& ' When the Clipboard contains data in Cf_ownerdiplay format and the client area of the Clipboard Watch window needs to be redrawn;
Public Const Wm_vscrollclipboard = &H30A&
Public Const Wm_sizeclipboard = &H30B& ' when Clipboard contains cf_ Ownerdiplay formatted data and the size of the client area of the Clipboard Observation window has changed to the owner of the Clipboard that this message was sent through the Clipboard Observation window;
Public Const wm_askcbformatname = &H30C& ' Send this message through the Clipboard Watch window to the owner of the Clipboard to request a Cf_ownerdisplay-formatted clipboard name
Public Const Wm_changecbchain = &H30D& ' sends this message to the first window of the Clipboard watch chain when a window is removed from the Clipboard watch chain;
Public Const Wm_hscrollclipboard = &H30E& ' This message is sent to the owner of the Clipboard through a clipboard observation window; It occurs when the Clipboard contains data in cfownerdispaly format and has an event on the horizontal scrollbar of the Clipboard Watch window; the owner should scroll the clipboard image and update the scroll bar value;
Public Const Wm_querynewpalette = &H30F& ' This message is sent to the window that will receive the focus, which gives the window the opportunity to implement his logical palette while receiving focus
Public Const wm_paletteischanging = &H310& ' When an application is about to implement its logical palette, send this message to notify all applications
Public Const wm_palettechanged = &H311& ' This message changes the system palette by sending this message to all top-level and overlapping windows after implementing its logical palette in a window that has the focus.
Public Const Wm_hotkey = &H312& ' submits this message when the user presses a hotkey registered by the RegisterHotKey function
Public Const wm_print = 791& ' application sends this message only when Windows or another application makes a request to draw part of an application;
Public Const wm_printclient = 792&
Public Const Wm_handheldfirst = 856&
Public Const wm_handheldlast = 863&
Public Const Wm_penwinfirst = &H380&
Public Const wm_penwinlast = &H38F&
Public Const Wm_coalesce_first = &H390&
Public Const wm_coalesce_last = &H39F&

Public Const Wm_dde_first = &H3E0&
Public Const wm_dde_initiate = Wm_dde_first + 0& ' A DDE client submits this message to start a session with the server program in response to the specified program and subject name;
Public Const wm_dde_terminate = Wm_dde_first + 1& ' a DDE application (either client or server) submits this message to terminate a session;
Public Const wm_dde_advise = Wm_dde_first + 2& ' A DDE client submits this message to a DDE service program to request that the server update it whenever the data item changes
Public Const wm_dde_unadvise = Wm_dde_first + 3& ' A DDE client notifies a DDE service by this message that the item specified or a special Clipboard format is not updated by the program
Public Const wm_dde_ack = Wm_dde_first + 4& ' This message informs a DDE (Dynamic Data Interchange) program that it has received and is processing Wm_dde_poke,wm_dde_execute,wm_dde_data, Wm_dde_advise,wm_dde_unadvise, or Wm_dde_initiat message
Public Const Wm_dde_data = Wm_dde_first + 5& ' A DDE service program submits this message to a DDE client to pass a data item to the customer or to notify the customer of an available data item
Public Const wm_dde_request = Wm_dde_first + 6& ' A DDE client submits this message to a DDE service program to request the value of a data item;
Public Const Wm_dde_poke = Wm_dde_first + 7& ' A DDE client submits this message to a DDE service program that the customer uses to request that the server receive an unsolicited data item; The server replies to public The Const wm_dde_ack message indicates whether it receives this data item;
Public Const Wm_dde_execute = Wm_dde_first + 8& ' A DDE client submits this message to a DDE service program to send a string to the server so that it is processed like a serial command, and the server submits the public Const Wm_dde_ack message to respond;
Public Const wm_dde_last = Wm_dde_first + 8&

Public Const Wm_app = &H8000&
Public Const Wm_user = &H400& ' This message can help the application to customize the private message;

Font: Big Small medium Large to log edit delete

Previous article
Next article
| Return to the private log list

Comments
No one has commented to sit on the first couch.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.