Wm_null = $0000; Wm_create = $0001; The application creates a window Wm_destroy = $0002; A window is destroyed wm_move = $0003; Move a window wm_size = $0005; Change the size of a window wm_activate = $0006; A window is activated or inactive; wm_setfocus = $0007; After gaining focus wm_killfocus = $0008; Loss of focus wm_enable = $000a; Change the Enable state Wm_setredraw = $000b; Sets whether the window can repaint wm_settext = $000c; The application sends this message to set the text of a window Wm_gettext = $000d; The application sends this message to copy the corresponding window's text to the buffer wm_gettextlength = $000e; Gets the length of the text associated with a window (does not contain null characters) WM_PAINT = $000f; Requires a window to repaint itself wm_close = $0010; Send a signal when a window or application is about to close wm_queryendsession = $0011; When the user selects the End dialog box or the program calls the ExitWindows function itself wm_quit = $0012; Used to end a program run or when a program calls the PostQuitMessage function wm_queryopen = $0013; When the user window restores the previous size position, the message is sent to an icon WM_ERASEBKGND = $0014; When the window background must be erased (example when the window changes size) Wm_syscolorchange = $0015; When the system color changes, send this message to all top-level windows wm_endsession = $0016; When the system process issues a WM_QUERYENDSESSION message, the message is sent to the application informing it whether the conversation is over wm_systemerror = $0017; Wm_showwindow = $0018; When the Hide or show window is sent this message to this window Wm_activateapp = $001c; Send this message to the application which window is active and which is inactive; wm_fontchange = $001d; This message is sent to all top-level windows when the system's font repository changes wm_timechange = $001e; When the systemThe time changes when this message is sent to all top-level windows Wm_cancelmode = $001f; Send this message to cancel some kind of in-progress (operation) wm_setcursor = $0020; If the mouse causes the cursor to move through a window and the mouse input is not captured, a message is sent to a window wm_mouseactivate = $0021; When the cursor is in a non-activated window and the user is pressing a key of the mouse to send this message to the current window wm_childactivate = $0022; Send this message to the MDI child window when the user clicks on the title bar of this window, or when the window is activated, moves, changes size Wm_queuesync = $0023; This message is sent by the computer-based training program, which separates the user input message Wm_getminmaxinfo = $0024 through the wh_journalpalyback hook program; This message is sent to the window when it is going to change size or position; Wm_painticon = $0026; Send to minimized window when its icon is going to be redrawn wm_iconerasebkgnd = $0027; This message is sent to a minimized window only if it's background must be redrawn before drawing the icon Wm_nextdlgctl = $0028; Send this message to a dialog box program to change the focus position wm_spoolerstatus = $002a; This message is emitted whenever a print management queue increases or decreases a job wm_drawitem = $002b; This message is sent to the owner of these empty pieces when the visual appearance of the Button,combobox,listbox,menu changes wm_measureitem = $002c; When the button, combo box, list box, List View control, or menu item is created, this message is sent to the owner of the control Wm_deleteitem = $002d; When the list box or combo box is destroyed or when certain items are deleted through lb_deletestring, lb_resetcontent, cb_deletestring, or cb_resetcontent messages Wm_vkey Toitem = $002e; This message has a lbs_wantkeyboardinput style issued to its owner to respond to the WM_KEYDOWN message Wm_chartoitem = $002f; This message consists of a lbs_wantThe Keyboardinput style list box is sent to his owner to respond to the WM_CHAR message Wm_setfont = $0030; When drawing text, the program sends this message to get the color of the control to be used Wm_getfont = $0031; The application sends this message to get the font of the current control drawing text Wm_sethotkey = $0032; The application sends this message so that a window is connected to a hotkey Wm_gethotkey = $0033; The application sends this message to determine if the hotkey is associated with a window Wm_querydragicon = $0037; This message is sent to the minimized window, and when the window is about to be dragged and the icon is not defined in its class, the application can return an icon or a handle to the cursor, which is displayed when the user drags and drop the icon or cursor Wm_compareitem = $0039; Send this message to determine the relative position of the newly added item in the ComboBox or ListBox wm_getobject = $003d; wm_compacting = $0041; The display memory is very little wm_windowposchanging = $0046; When sending this message to the size and position of the window to be changed, call the SetWindowPos function or other window management function wm_windowposchanged = $0047; When sending this message to the size and position of the window has been changed, call the SetWindowPos function or other window management function wm_power = $0048; (for 16-bit Windows) Send this message when the system is about to enter a paused state Wm_copydata = $ 004A; This message is sent when an application passes data to another application wm_canceljournal = $004b; When a user cancels the program Log activation state, submit this message to the program wm_notify = $004e; When an event of a control has occurred or the control needs some information, send this message to its parent window wm_inputlangchangerequest = $0050; When the user chooses an input language, or the hotkey of the input language changes wm_inputlangchange = $0051; When the platform field has been changed send this message to the affected top-level window Wm_tcard = $0052; This message is sent to the application Wm_help = $0053 When the program has initialized the Windows Help routine; This message shows that the user pressed the F1 if a menu is active, send this message to the menu associated with this window, or send it to the focus window, if there is no current focus, send this message to the currently active window wm_userchanged = $0054; When the user has logged in or exited after sending this message to all windows, when the user login or exit the system updates the user's specific settings information, the user updates the settings when the system immediately send this message; Wm_notifyformat = $0055; Common controls, custom controls, and their parent Windows use this message to determine whether a control is using an ANSI or Unicode structure in a WM_NOTIFY message, which enables a control to communicate with its parent control Wm_contextmenu = $007b; When the user clicks the right button in a window, send this message to this window wm_stylechanging = $007c; When calling the SetWindowLong function to change the style of one or more windows, send this message to that window wm_stylechanged = $007d; When calling the SetWindowLong function one or more window styles send this message to that window Wm_displaychange = $007e; When the resolution of the monitor is changed, send this message to all windows Wm_geticon = $007f; This message is sent to a window to return a handle to a large icon or small icon connected to a window; wm_seticon = $0080; The program sends this message to have a new large icon or small icon associated with a window; wm_nccreate = $0081; When a window is created for the first time, this message is sent before the wm_create message is sent; Wm_ncdestroy = $0082; This message notifies a window that the non-client area is destroying wm_nccalcsize = $0083; This message is sent when a client area of a window must be accounted for wm_nchittest = $0084;//moves the mouse, while holding or releasing the mouse occurs wm_ncpaint = $0085; The program sends this message to a window when it (the window) 's frame must be drawn; wm_ncactivate = $0086; 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; wm_getdlgcode = $0087; Send this message to a control that is associated with a dialog box program, widdows the control azimuth key and TAB key to make the input enter this control by responding to the Wm_getdlgcode message, the application can treat him as a special input control and handle it Wm_ncmousemove = $00a0; This message is sent when the cursor is moved within a window's non-client area: the title bar of the form and the border of the window Wm_nclbuttondown = $00a1; This message is submitted when the cursor presses the left mouse button at the same time in the non-client area of a window Wm_nclbuttonup = $00A2; When the user releases the left mouse button at the same time, a window in the non-client area 10 sends this message; WM_NCLBUTTONDBLCLK = $00A3; When the user double-clicks the left mouse button at the same time, a window in the non-client area 10 sends this message Wm_ncrbuttondown = $00A4; This message is sent when the user presses the right mouse button while the cursor is in the non-client area of the window Wm_ncrbuttonup = $00a5; This message is sent when the user releases the right mouse button while the cursor is in the non-client area of the window WM_NCRBUTTONDBLCLK = $00a6; 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 Wm_ncmbuttondown = $00A7; This message is sent when the user presses the middle mouse button while the cursor is in the non-client area of the window Wm_ncmbuttonup = $00a8; This message is sent when the user releases the middle mouse button while the cursor is in the non-client area of the window WM_NCMBUTTONDBLCLK = $00a9; This message is sent when the user double-clicks the middle mouse button while the cursor is in the non-client area of the window Wm_keyfirst = $0100; Wm_keydown = $0100; Press a key wm_keyup = $0101; Release a key WM_CHAR = $0102; Press a key, and has issued WM_KEYDOWN, wm_keyup message Wm_deadchar = $0103; When the WM_KEYUP message is translated with the TranslateMessage function, this message is sent to the window with focus wm_syskeydown = $0104; Submits this message to the window with focus when the user presses the ALT key while pressing another key; wm_syskeyup = $0105; When the user releases a key while the ALT key is still pressed, the message is submitted to the window that has focus Wm_syschar = $0106; When the Wm_syskeydown message is translated by the TranslateMessage function, the message is submitted to the window with focus Wm_sysdeadchar = $0107; When the WM_SYSKEYDOWN message is TranslatemessaAfter the GE function is translated, send this message to the window that has focus wm_keylast = $0108; Wm_initdialog = $0110; Send this message to a dialog box before it is displayed, usually using this message to initialize the control and perform other tasks wm_command = $0111; When the user selects a menu command item or when a control sends a message to its parent window, a shortcut key is translated wm_syscommand = $0112; The window receives this message when the user chooses a command on the Window menu or when the user chooses to maximize or minimize wm_timer = $0113; A Timer event occurred wm_hscroll = $0114; When a window standard horizontal scrollbar produces a scrolling event, this message is sent to that window, which is also sent to the control that owns it wm_vscroll = $0115; When a window standard vertical scrollbar produces a scrolling event when the message is sent to that window, it is sent to the control that owns it wm_initmenu = $0116; This message is sent when a menu is about to be activated, it occurs on an item in the user's menu bar, or a menu key is pressed, which allows the program to change the menu before it is displayed wm_initmenupopup = $0117; This message is sent when a drop-down menu or submenu is about to be activated, allowing the program to change the menu before it is displayed, rather than changing all wm_menuselect = $011f; Send this message to the owner of the menu (typically a window) when the user selects a menu item Wm_menuchar = $0120; 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; wm_enteridle = $0121; Sends this message to its owner when a modal dialog box or menu enters an empty state, and a modal dialog box or menu enters no-load state waiting for wm_menurbuttonup = $0122 in the queue after processing one or several previous messages; Wm_menudrag = $0123; Wm_menugetobject = $0124; Wm_uninitmenupopup = $0125; Wm_menucommand = $0126; Wm_changeuistate = $0127; Wm_updateuistate = $0128; Wm_queryuistate = $0129; Wm_ctlcolormsgbox = $0132; Send this message to the owner window of the message box before Windows draws the message box, by responding to thisMessage, the owner window can set the text and background color of the message box by using the handle of the given related display device wm_ctlcoloredit = $0133; Sends this message to its parent window when an edit control is about to be drawn; In response 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 Wm_ctlcolorlistbox = $0134; When a ListBox control is about to be drawn before sending this message to its parent window, by responding to this message, the owner window can set the text and background color of the list box by using the handle of the given related display device wm_ctlcolorbtn = $0135; Sends this message to its parent window when a button control is about to be drawn; In response to this message, the owner window can set the text and background color of the buttons by using the handle of the given related display device Wm_ctlcolordlg = $0136; When a dialog box control is about to be drawn before sending this message to its parent window, 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 wm_ctlcolorscrollbar= $0137; Sends this message to its parent window when a scrollbar control is about to be drawn; In response to this message, the owner window can set the background color of the scrollbar by using the handle of the given related display device wm_ctlcolorstatic = $0138; Sends this message to its parent window when a static control is about to be drawn; In response to this message, the owner window can set the text and background color of the static control by using the handle of the given related display device Wm_mousefirst = $0200; Wm_mousemove = $0200; Mobile Mouse wm_lbuttondown = $0201; Press the left mouse button wm_lbuttonup = $0202; Release the left mouse button wm_lbuttondblclk = $0203; Double-click the left mouse button wm_rbuttondown = $0204; Press the right mouse button wm_rbuttonup = $0205; Release the right mouse button wm_rbuttondblclk = $0206; Double-click the right mouse button wm_mbuttondown = $0207; Press the middle mouse button wm_mbuttonup = $0208; Release the middle mouse button WM_MBUTTONDBLCLK = $0209; Double-click the middle mouse button WM_MouseWheel = $020A; When the mouse wheel rotates, this message is sent with the currently focused control wm_mouselast = $020a; Wm_parentnotify = $0210; 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 Wm_entermenuloop = $0211; Send this message to notify the application of the main window that has entered the menu loop mode wm_exitmenuloop = $0212; Send this message to notify the application of the main window that has exited the menu loop mode wm_nextmenu = $0213; 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 as well as modify them wm_capturechanged = 533; Send this message to the window when it loses the captured mouse; wm_moving = 534; When the user sends this message when the window is moved, the message application can monitor the window size and position as well as modify them; wm_powerbroadcast = 536; This message is sent to the application to notify it about power management events; wm_devicechange = 537; This message is sent to the application or device driver Wm_ime_startcomposition = $010d When the hardware configuration of the device changes; Wm_ime_endcomposition = $010e; Wm_ime_composition = $010f; Wm_ime_keylast = $010f; Wm_ime_setcontext = $0281; Wm_ime_notify = $0282; Wm_ime_control = $0283; Wm_ime_compositionfull = $0284; Wm_ime_select = $0285; Wm_ime_char = $0286; Wm_ime_request = $0288; Wm_ime_keydown = $0290; Wm_ime_keyup = $0291; Wm_mdicreate = $0220; The application sends this message to a multi-document client window to create an MDI child window Wm_mdidestroy = $0221; The application sends this message to a multi-document client window to close an MDI child window wm_mdiactivate = $0222; Application processThis message is sent to the client window of a multi-document to notify the client window to activate another MDI child window, and when the client window receives this message, it emits a wm_mdiactive message to the MDI child window (not activated) to activate it; wm_mdirestore = $0223; The program sends this message to the MDI client window to let the child window recover from the maximum minimization to the original size wm_mdinext = $0224; The program sends this message to the MDI client window to activate the next or previous window wm_mdimaximize = $0225; The program sends this message to the MDI client window to maximize an MDI child window; wm_mditile = $0226; The program sends this message to the MDI client window to re-arrange all MDI child windows in a tiled wm_mdicascade = $0227; The program sends this message to the MDI client window to cascade all MDI child windows Wm_mdiiconarrange = $0228; The program sends this message to the MDI client window to rearrange all the minimized MDI child windows wm_mdigetactive = $0229; The program sends this message to the MDI client window to find the handle of the activated subwindow wm_mdisetmenu = $0230; The program sends this message to the MDI client window using the MDI menu instead of the child window menu wm_entersizemove = $0231; Wm_exitsizemove = $0232; Wm_dropfiles = $0233; Wm_mdirefreshmenu = $0234; Wm_mousehover = $02A1; Wm_mouseleave = $02a3; Wm_cut = $0300; The program sends this message to an edit box or ComboBox to delete the currently selected text wm_copy = $0301; The program sends this message to an edit box or ComboBox to copy the currently selected text to the Clipboard wm_paste = $0302; The program sends this message to the Editcontrol or ComboBox to get data from the Clipboard wm_clear = $0303; The program sends this message to Editcontrol or ComboBox to clear the currently selected content; Wm_undo = $0304; The program sends this message to Editcontrol or ComboBox to undo the last Operation Wm_renderformat = $0305; wm_renderallformats = $0306; Wm_destroyclipBOARD = $0307; This message is sent to the owner of the Clipboard when the Enptyclipboard function is called Wm_drawclipboard = $0308; This message is sent to the Clipboard in the first window of the watch chain when the contents of the Clipboard change, allowing the Clipboard to be viewed with a window to display the new contents of the Clipboard; wm_paintclipboard = $0309; When the Clipboard contains data in Cf_ownerdiplay format and the client area of the Clipboard Watch window needs to be redrawn; wm_vscrollclipboard = $030a; Wm_sizeclipboard = $030b; When the Clipboard contains Cf_ownerdiplay formatted data and the size of the client area of the Clipboard Watch window has changed, this message is sent to the Clipboard owner through the Clipboard observation window; wm_askcbformatname = $030c; Send this message through the Clipboard Watch window to the owner of the Clipboard to request a cf_ownerdisplay format of the Clipboard name wm_changecbchain = $030d; When a window is removed from the Clipboard watch chain, this message is sent to the first window of the Clipboard watch chain; wm_hscrollclipboard = $030e; This message is sent to the owner of the Clipboard through a Clipboard observation window, which 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 scrollbar's value; wm_ Querynewpalette = $030f; This message is sent to the window that will receive the focus, which gives the window the opportunity to implement his logical palette wm_paletteischanging= $0310 while receiving focus; When an application is about to implement its logical palette, this message notifies all applications wm_palettechanged = $0311; 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 wm_hotkey = $0312; This message is submitted when the user presses the hotkey registered by the RegisterHotKey function wm_print = 791; The application sends this message only when Windows or other applications issue a request to draw part of an application; wm_printclient = 792; Wm_handheldfirst = 856; Wm_handheldlast = 863; Wm_penwinfirst = $0380; Wm_penwinlast = $038f; Wm_coalesce_first = $0390; Wm_coalesce_last = $039f; Wm_dde_first = $03E0; 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; wm_dde_terminate = Wm_dde_first + 1; A DDE application (either a client or a server) submits this message to terminate a session; 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 Wm_dde_unadvise = Wm_dde_first + 3; A DDE client notifies this message that a DDE service program does not update the specified item or a special Clipboard format entry Wm_dde_ack = Wm_dde_first + 4; This message informs a DDE (Dynamic data exchange) 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 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 wm_dde_request = Wm_dde_first + 6; A DDE client submits this message to a DDE service program to request a value for a data item; wm_dde_poke = Wm_dde_first + 7; A DDE client submits this message to a DDE service program, which is used by the client to request that the server receive an unsolicited data item; The server prompts whether it receives the data item by replying to the wm_dde_ack message; 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 responds by submitting a wm_dde_ack message; wm_dde_last = Wm_dde_first + 8; Wm_app = $8000; Wm_user = $0400; Press Twist B N _ C L I C K e d//user clicked Button B N _ d i S A b L E//button is forbidden B N _ d O U b l e C L c K E D//user double-click Button B N _ H i L i T E/ /user Highlighted button B N _ PA I n T button should redraw B N _ u N H I L t e highlight should remove combo box C B N _ C L O S E U p combo box list box closed C B N _ D b l C L k user double-click a character String C B N _ d R O P D o W N combo box list box is pulled out c B N _ E D i t C H A N G E User modified edit box text C B N _ E D I T U P D at E edit box text is about to update C B N _ E R r S PA c e combo box low memory c B N _ K I l F O C U S combo box lose input focus c B N _ S e l C H A n G E in combo box selected a c B n _ S e L e n D c A n c E L user's choice should be canceled C B N _ s e L e n D O K user's choice is legal c B N _ S e T F O c U s combo box get input focus edit box e n _ C H A N G E edit box text has been updated e n _ e R r S PA c e edit box Low memory E n _ H S C R O l l user clicked horizontal scroll bar e n _ K I l l F O C U S edit box is losing input focus e n _ M A X t e x t Insert content truncated e n _ S e t F o C U S edit box Get input focus e n _ u P D at e edit box text to be updated e n _ V S C R O l l user clicked vertical scroll bar message meaning list box L B N _ D B l C L k user double-click an item l B N _ E R r S PA C e list box memory not enough L B N _ K I l F O C U S list box is losing input focus L B N _ S e L c a n c e l select canceled l B N _ S e l C H A n G E Select another l B N _ s E T F O C U s list box get input focus
Win32 Message Description