Windows message definition

Source: Internet
Author: User

Wm_null 0 0
Wm_create 1 1 Application Program Create a window
Wm_destroy? 2 2. A window is destroyed.
Wm_move 3 3 move a window
Wm_size 5 5 change the size of a window
Wm_activate 6 6 a window is activated or inactive
Wm_setfocus 7 7 after getting the focus
Wm_killfocus 8 loses focus
Wm_enable a 10 changes the Enable status
Can the wm_setredraw B 11 setting window be repainted ??
The wm_settext C 12 application sends this message to set the text of a window.
The wm_gettext D 13 application sends this message to copy the text of the corresponding window to the buffer zone.
Wm_gettextlength E 14 get the length of the text related to a window (excluding empty characters)
Wm_paint F 15 requires a window to redraw itself
Wm_close 10 16 send a signal when a window or application is closed
Wm_queryendsession 11 17. When the user selects the end dialog box or the program calls the exitwindows Function
Wm_quit 12 18 is used to end the program running or when the program calls the postquitmessage Function
Wm_queryopen 13 19 send this message to an icon when the user window restores the previous size position
Wm_erasebkgnd 14 20 when the window background must be erased (for example, when the window size changes)
Wm_syscolorchange 15 21 send this message to all top-level windows when the system color changes
Wm_endsession 16 22 when the system process sends the wm_queryendsession message, the message is sent to the application to notify whether the conversation ends.
Wm_systemerror 17 23 after a system error occurs
Wm_showwindow 18 24 when the hidden or displayed window is sent to this window
Wm_activateapp 1C 28 sends this message to the application, which window is activated and which is not activated.
Wm_fontchange 1D 29 send this message to all top-level windows when the system's font repository changes
Wm_timechange 1E 30 send this message to all top-level windows when the system time changes
Wm_cancelmode 1f 31 sends this message to cancel an ongoing touch (Operation)
Wm_setcursor 20 32 If the mouse causes the cursor to move in a window and the mouse input is not captured, a message is sent to a window.
Wm_mouseactivate 21 33 when the cursor is in an inactive window and the user is pressing a key of the mouse to send this message to the current window
Wm_childactivate 22 34 send this message to the MDI subwindow. When the user clicks the title bar of this window, or when the window is activated, move and change the size
Wm_queuesync 23 35 the message is sent by a computer-based training program. The user input message is separated by the wh_journalpalyback hook program.
Wm_getminmaxinfo 24 36 this message is sent to the window when it is about to change the size or position
Wm_painticon 26 38 is sent to the minimization window when its icon is to be repainted
Wm_iconerasebkgnd 27 39 the message is sent to a minimal window, only when the background must be repainted before the icon is painted.
Wm_nextdlgctl 28 40 send this message to a dialog box program to change the focus position
Wm_spoolerstatus 2a 42 this message is sent whenever the print management queue adds or removes a job
Wm_drawitem 2B 43 the message is sent when the visual appearance of the button, ComboBox, ListBox, and menu changes. The message is sent to the control owner.
Wm_measureitem 2C 44 send this message to the control owner when button, combo box, list box, List View control, or menu item is created.
Wm_deleteitem 2D 45 when ListBox or ComboBox is destroyed or when some items are deleted, messages are sent through lb_deletestring, lb_resetcontent, cb_deletestring, or cb_resetcontent.
Wm_vkeytoitem 2E 46 this message has an lbs_wantkeyboardinput style sent to its owner to respond to the wm_keydown message.
Wm_chartoitem 2f 47 The message is sent to its owner by a list box in the lbs_wantkeyboardinput style to respond to the wm_char message ??
Wm_setfont 30 48 when drawing text, the program sends this message to obtain the color used by the Control
The wm_getfont 31 49 Application sends this message to obtain the font of the text drawn by the current control.
Wm_sethotkey 32 50 the application sends this message to associate a window with a hotkey
The wm_gethotkey 33 51 Application sends this message to determine whether the hotkey is associated with a window.
Wm_querydragicon 37 55 the message is sent to the minimal window. When the window is to be dragged and its class does not have a defined icon, the application can return an icon or a cursor handle, this icon or cursor is displayed when you drag and drop an icon.
Wm_compareitem 39 57 send this message to determine the relative position of the newly added items in ComboBox or ListBox
Wm_getobject 3D 61 this event is triggered when the control in the server-side application is activated
Wm_compacting? 41 65 shows that the memory is very small
Wm_windowposchanging 46 70 call the setwindowpos function or other window management functions when the size and position of the window to be sent to is about to be changed.
Wm_windowposchanged 47 71 when the size and position of the window to which the message is sent have been changed, call the setwindowpos function or other window management functions.
Wm_power 48 72 send this message when the system is about to pause
Wm_copydata 4A 74 send this message when one application delivers data to another application
Wm_canceljournal 4B 75 when a user cancels the activation status of the program log, submit the message to the program
Wm_notify 4E 78 when an event of a control has occurred or the control needs to obtain some information, send this message to its parent window
Wm_inputlangchangerequest 50 80 when the user selects an input language or the input language's hot key changes
Wm_inputlangchange 51 81 send this message to the affected top-level window when the platform site has been changed
Wm_tcard 52 82 send this message to the application when the program has initialized the Windows Help routine
Wm_help 53 83 The message indicates that the user presses F1. If a menu is activated, the user sends the message to the menu associated with the window; otherwise, the message is sent to the window with focus, if no focus exists, send the message to the active window.
Wm_userchanged 54 84 when the user has logged on or exited, this message is sent to all windows. When the user logs on or exits, the system updates the user's specific settings, the system sends this message immediately when the user updates the settings.
Wm_policyformat 55 85 public control, custom control and their parent window through this message to determine whether the control uses the ANSI or Unicode structure in the wm_notify message, this control enables communication between a control and its parent control.
Wm_contextmenu 7b 123 when you right-click a window and send the message to the window
Wm_stylechanging 7C 124 send this message to the window when the setwindowlong function is called to change the style of one or more windows
Wm_stylechanged 7d 125 send this message to the window when you call the setwindowlong function in the style of one or more windows
Wm_displaychange 7E 126 send this message to all windows when the display resolution changes
Wm_geticon 7f 127 This message is sent to a window to return the handle of a large icon or small icon associated with a window
Wm_seticon 80 128 program sends this message to associate a new large icon or small icon with a window
Wm_nccreate 81 129 When a window is created for the first time, this message is sent before the wm_create message is sent.
Wm_ncdestroy 82 130 this message notifies a window in which a non-customer zone is being destroyed
Wm_nccalcsize 83 131 send this message when the customer region of a window must be calculated
Wm_nchittest 84 132 move the mouse, hold down or release the mouse
Wm_ncpaint 85 133 program sends this message to a window when its frame (window) must be drawn
Wm_ncactivate 86 134 this message is sent to a window only when its non-customer zone needs to be changed to show whether the message is activated or not.
Wm_getdlgcode 87 135 sends this message to a control associated with the dialog box program. The orientation key and Tab key of the Windows Control allow the input to enter the control and respond to the wm_getdlgcode message, an application can treat it as a special input control and process it.
Wm_ncmousemove A0 160 send this message to the window when the cursor moves in a non-customer zone of a window
Wm_nclbuttondown A1 161 submit this message when the cursor is in a non-customer area of a window and the left mouse button is clicked
Wm_nclbuttonup A2 162 when the user releases the left mouse button and a window cursor is sent in non-customer Zone 10
Wm_nclbuttondblclk A3 163 send this message when you double-click the left mouse button and cursor a window in a non-customer Zone
Wm_ncrbuttondown A4 164 send this message when you right-click the user and the cursor is in a non-customer area of the window
Wm_ncrbuttonup A5 165 when the user releases the right mouse and the cursor sends this message in the non-customer area of the window
Wm_ncrbuttondblclk? A6 166 send this message when you right-click a user and cursor a window in a non-customer Zone
Wm_ncmbuttondown A7 167 send this message when you press the middle mouse button and the cursor is in a non-customer area of the window
Wm_ncmbuttonup A8 168 This message is sent when the user releases the middle mouse button and the cursor is in a non-customer area of the window.
Wm_ncmbuttondblclk A9 169 this message is sent when you double-click the key and the cursor is in a non-customer area of the window.
Wm_keydown 100 256 press the key
Wm_keyfirst 100 256 accept the first Keyboard Message
Wm_ime_startcomposition 10d 269 this message is generated when IME starts to convert
Wm_ime_endcomposition 10E 270 this message is generated when IME ends the conversion
This message is generated when wm_ime_composition 10f 271 IME changes the writing string
Wm_ime_keylast 10f 271 receives the last Keyboard Message
Wm_mousefirst 200 512 start moving the mouse
Wm_mouselast 20a 512 move the mouse
Wm_mousemove? 200 move the mouse
Wm_mousewheel 20a 512 send this message a control with focus when the mouse wheel turns
Wm_lbuttondown 201 513 press the left mouse button
Wm_lbuttonup 202 514 release the left mouse button
Wm_lbuttondblclk 203 double-click the left mouse button
Wm_rbuttondown 204 516 right-click
Wm_rbuttonup 205 517 release right-click
Wm_rbuttondblclk 206 double-click
Wm_mbuttondown 207 519 press the middle mouse button
Wm_mbuttonup 208 520 release the middle mouse button
Wm_mbuttondblclk 209 double-click the key
Wm_parentnotify 210 528 when the MDI child window is created or destroyed, or when the user presses the mouse key and the cursor sends this message to its parent window
Wm_entermenuloop 211 529 sends this message to the main window of the application, which has entered the menu loop mode
Wm_exitmenuloop 212 530 sends this message to the main window of the notification application. The menu loop mode has been exited.
Wm_nextmenu 213 531 is triggered when you use the direction key (left, right) to switch the menu or system menu of an application.
Wm_mdicreate 220 544 the application sends this message to the client window of the Multi-text file to create an MDI subwindow
Wm_mdidestroy 221 545 The application sends this message to the customer window of the Multi-text file to close an MDI subwindow
Wm_mdirestore 223 547 program sends this message to the MDI customer window so that the sub-window is restored from the minimum to the original size
Wm_mdinext 224 548 program sends this message to the MDI customer window to activate the next or previous window
Wm_mdimaximize 225 549 program sends this message to the MDI customer window to maximize an MDI child window
The wm_mditile 226 550 program sends this message to the MDI customer window to rearrange all MDI child windows in a tiled manner
Wm_mdicascade 227 551 program sends this message to the MDI customer window to rearrange all MDI child windows in a stacked manner
Wm_mdiiconarrange 228 552 program sends this message to the MDI customer window to rearrange all the minimized MDI child windows
Wm_mdigetactive 229 553 program sends this message to the MDI customer window to find the handle of the activated subwindow
Wm_mdisetmenu 230 560 program sends this message to the MDI customer window, replacing the sub-Window Menu With the MDI menu
Wm_entersizemove 231 561 triggered when the window starts scaling or the position changes
Wm_exitsizemove 232 562 triggered when the window ends scaling or the position changes
Wm_dropfiles 233 triggered when the program dragged the file to the target location
Wm_mdirefreshmenu 234 564 triggered when the menu in the Framework Window is refreshed in the customer window
Wm_ime_setcontext 281 641 when a window is activated, the input method system sends this message to the application.
This event is triggered when the status of the wm_ime_notify 282 642 IME window changes normally.
Wm_ime_control 283 643 this event is triggered when the input method record window is changed
Wm_ime_compositionfull 284 644 triggered when the size of the encoding window cannot be increased in the user interface window
Wm_ime_select 285 645 this event is triggered when the input method is switched
Wm_ime_char 286 646 this event is triggered when a character is entered in the input method record window
Wm_ime_request 288 648 this event is triggered when an application requests an Input Method
Wm_ime_keydown 290 656 this event is triggered when the key is pressed in the input method record window
Wm_ime_keyup 291 657 this event is triggered when the button is released in the input method record window
This event is triggered when wm_mousehover 2a1 673 moves the mouse over the control.
Wm_mouseleave 2A3 675 this event is triggered when the mouse leaves the control.
The wm_cut 300 program sends this message to an edit box or ComboBox to delete the selected text.

The wm_copy 301 769 program sends this message to an edit box or ComboBox to copy the selected text to the clipboard.
The wm_paste 302 770 program sends this message to editcontrol or ComboBox to obtain information from the clipboard.
Wm_clear 303 771 program sends this message to editcontrol or ComboBox to clear the selected content
The wm_undo 304 772 program sends this message to editcontrol or ComboBox to cancel the last operation.
Wm_renderformat 305 773 is triggered when the system Clipboard data is required.
Wm_renderallformats 306 774 when the application exits, the window will send the message to the current program when the program exits. All format Clipboard data must be provided to avoid data loss.
Wm_destroyclipboard 307 775 when the enptyclipboard function is called, this message is sent to the clipboard owner.
Wm_drawclipboard 308 776 send this message to the first window of the clipboard observation chain when the content of the clipboard changes; it allows the clipboard observation window to display the new content of the clipboard
Wm_paintclipboard 309 777 when the Clipboard contains data in the cf_ownerdiplay format and the client area of the clipboard observation window needs to be re-painted
Wm_vscrollclipboard 30a 778 this event is triggered when the vertical scroll bar of the clipboard viewer is clicked
Wm_sizeclipboard 30B 779 when the Clipboard contains data in the cf_ownerdiplay format and the size of the client area in the clipboard observation window has changed, the message is sent to the clipboard owner through the clipboard observation window.
Wm_askcbformatname 30C 780 send this message to the clipboard owner through the clipboard observation window to request the name of the clipboard in cf_ownerdisplay format.
Wm_changecbchain 30d 781 send this message to the first window of the clipboard observation chain when a window is moved from the clipboard observation chain
Wm_hscrollclipboard 30E 782 this message is sent to the clipboard owner through a clipboard observation window. It occurs when the Clipboard contains information in the cfownerdispaly format and an event is on the horizontal scroll bar of the clipboard observation window, the owner should scroll the clipboard image and update the value of the scroll bar.
Wm_querynewpalette 30f 783 this message is sent to the window that will receive the focus, which gives the window the opportunity to implement a logical palette when receiving the focus
Wm_paletteischanging 310 784 when an application is about to implement its logical palette, this message notifies all applications
Wm_palettechanged 311 785 this message is sent to all top-level and overlapping windows after implementing its logical palette in a window with focus to change the system palette
Wm_hotkey 312 786 this message is submitted when you press the hotkey registered by the registerhotkey function.
Wm_penwinfirst 380 896
Wm_penwinla38f 911
Wm_coalesce_first 390 912
Wm_coalesce_last 39f 927
Wm_dde_first 3.00e + 00 992 this event is triggered when the client program starts a session with the server program
Wm_user 400 1024 this message helps the application customize private messages
Wm_sizing 532 1330 when the user is adjusting the window size to send this message to the window, the message application can monitor the window size and position,
Wm_capturechanged 533 1331 send this message to the window when the captured mouse is lost
Wm_moving 534 1332 this message is sent when a user moves the window. The message application can monitor the window size and position, and modify
Wm_powerbroadcast 536 1334 is sent to the application to notify it of power management events
Wm_devicechange 537 1335 send this message to the application or device driver when the device's hardware configuration changes
Wm_devicechange 537 1335 send this message to the application or device driver when the device's hardware configuration changes
Wm_print 791 1937 the application sends this message only when Windows or other applications send a request requesting to draw part of an application
Wm_printclient 792 1938 triggers this event when drawing the MDI window client area
Wm_handhheldfirst 856 2134
Wm_handheldlast 863 2147
Wm_app 8000 32768 bottom line mark of custom messages
Wm_dde_ack wm_dde_first + 4 this message notifies a DDE (Dynamic Data Exchange) program that it has received and is processing the wm_dde_poke, wm_dde_execute, wm_dde_data, begin, begin, or wm_dde_initiat message
Wm_dde_advise wm_dde_first + 2 a dde client program submits this message to a DDE Service Program requesting the server to update the data item whenever it changes
Wm_dde_data wm_dde_first + 5 a dde Service Program submits this message to the DDE client program to pass a data item to the customer or notify the customer of an available data item.
Wm_dde_execute wm_dde_first + 8 a dde client program submits this message to a DDE Service Program to send a string to the server for processing like a serial command. The server submits the wm_dde_ack message for response.
Wm_dde_initiate wm_dde_first + 0 a dde client program submits this message and starts a session with the server program to respond to the specified program and topic name
Wm_dde_last wm_dde_first + 8 this event is triggered when the client program ends a session with the server program
Wm_dde_poke wm_dde_first + 7 a dde client program submits the message to a DDE Service Program. The client uses the message to request the server to receive an unapproved data item; the server replies to the wm_dde_ack message and prompts whether the server receives the data item.
Wm_dde_request wm_dde_first + 6 a dde client program submits this message to a DDE Service Program to request the value of a data item
Wm_dde_terminate wm_dde_first + 1 a dde application (whether the client or server) submits this message to terminate a session
Wm_dde_unadvise wm_dde_first + 3 a dde client program notifies a DDE Service program not to update the specified item or an item in special clipboard format.

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.