Window message Daquan

Source: Internet
Author: User

A notification from Windows that tells the application something has happened. For example, clicking the mouse, changing the window size, and pressing a key on the keyboard will cause Windows to send a message to the application. The message itself is passed to the application as a record that contains the type of message and other information. For example, for a message that results from a mouse click, the record contains the coordinates of the mouse click. This record type is called Tmsg, which is declared in the Windows unit: type tmsg = packed record hwnd:hwnd; Window handle message:uint;//message constant identifier Wparam:wparam;//32-bit message with specific additional information lparam:lparam;//32-bit message with specific additional information time:dword;//the time when the message was created PT: Tpoint; The mouse position at the time the message was created end; what's in the message? Do you think the information in a message record is the same as in Greek? If so, take a look at the following explanation: The HWND 32-bit window handle. A window can be any type of screen object because Win32 maintains a handle to most visual objects (Windows, dialogs, buttons, edit boxes, and so on). The message is used to differentiate the constant values of other messages, which can be predefined constants in Windows cells or custom constants. WParam is typically a message-related constant value or a handle to a window or control. LParam is typically a pointer to data in memory. Since wparam, lparam, and pointer are all 32-bit, they can be converted to each other. Wm_null =$0000//wm_create =$0001//application creates a window Wm_destroy = $0002//A window is destroyed wm_move = $0003//move a window wm_size= $0005//Change a The size of a window wm_activate= $0006//A window is activated or deactivated; wm_setfocus= $0007//Get focus wm_killfocus= $0008//Lose Focus wm_enable= $000a//Change Ena BLE status wm_setredraw= $000b//Settings window can redraw wm_settext= $000c//The application sends this message to set the text of a window Wm_gettext = $000d//The application sends thisMessage to copy the text of the corresponding window 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//When a window or send a signal when the application is shutting down wm_queryendsession= $0011//When the user chooses the End dialog box or the program calls the ExitWindows function itself wm_quit= $0012// Used to end the program run or when the program calls the PostQuitMessage function Wm_queryopen = $0013//When the user window restores the previous size position, sends this message 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 emits wm_ After the message is queryendsession, this message is sent to the application informing it that the conversation is over wm_systemerror = $0017//wm_showwindow= $0018//When the hidden or displayed window is sending 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//When the system's font repository changes, send this message to all top-level windows wm_timechange= $001e/ /When the system time changes, send this message 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, send a message to a window Wm_mouseactivate = $0021//When the cursor is in an inactive window and the user is pressing a key of the mouse to send the 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 the size wm_queuesync= $0023//This message is sent by the computer-based training program via Wh_ The Journalpalyback hook program separates the user input message Wm_getminmaxinfo= $0024//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//When the visual appearance of Button,combobox,listbox,menu changes, send this message to the owner of these empty pieces wm_measureitem= $ 002C//When button, combo box, list box, List View control, or menu item is created when this message is sent to the owner of the control Wm_deleteitem = $002d//When the list B Ox or combo box is destroyed or when certain items are removed by lb_deletestring, lb_resetcontent, cb_deletestring, or cb_resetcontent message Wm_vkeytoitem = $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_ The Wantkeyboardinput style list box is sent to his owner to respond to the WM_CHAR message wm_setfont= $0030//When the text is drawn 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 to make a window associated with a hotkey wm_gethotkey= $0033//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, 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 the icon or the 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//display memory is very low wm_windowposchanging = $0046//Send 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//Send this message to the size and position of the window has been changed, To call the SetWindowPos function or other window management functions 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 one application passes data to another application wm_canceljournal= $004b//When a user cancels the program Log activation state, submits this message to the program wm_notify = $004e// When an event for 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//When the program has initialized the Windows Help routine, send this message to the application Wm_help = $0053// This message shows that the user pressed the 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 no focus, send this message to the currently active window wm_userchanged= $0054// When the user has logged in or exited to send 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 sends this message immediately; Wm_notifyformat = $0055//Common controls, Custom controls and their parent window 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// This message is sent to this window when the user clicks the right button in a window wm_stylechanging= $007c//When the call to SetWindowLong function will 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 associated with a window; wm_seticon= $0080//program sends this message to have a new large icon or small icon associated with a window; wm_nccreate = $0081//When a window is first created, 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 being destroyed wm_nccalcsize = $0083//When a window's customer area must be accounted for when this message is sent Wm_ nchittest= $0084//Move the mouse, press and hold or release the mouse when the wm_ncpaint= $0085//program sends this message to a window when it (the window) of the 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 associated with a dialog box program, Widdows control the Azimuth Key and TAB key to make the input enter this control by responding Wm_ Getdlgcode message, the application can treat him as a special input control and be able to handle it wm_ncmousemove = $00a0//When the cursor moves within the non-client area of a window, this message is sent to this window//non-client area: the title bar of the form and the border of the window wm_ nclbuttondown= $00A1//Submit this message when the cursor is in the non-client area of a window while the left mouse button is pressed wm_nclbuttonup= $00a2//When the user releases the left mouse button while the cursor is in a window in the non-client area 10 sends this message; WM_ nclbuttondblclk= $00A3//When the user double-clicks the mouse button at the same time a window in the non-client area 10 sends this message wm_ncrbuttondown= $00A4//When the user presses the right mouse button while the cursor is in the window's non-client area, this message is sent Wm_ ncrbuttonup= $00A5//when the user releasesPlace the right mouse button while the cursor is in the window's non-client area when you send this message 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//Send this message 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 emitted a wm_keydown,wm_keyup message Wm_deadchar = $0103//When you translate WM_KEYUP messages with the TranslateMessage function, send this message to the window that has focus Wm_syskeydown = $ 0104//When the user presses the ALT key while pressing another key, submits this message to the focus window; wm_syskeyup = $0105//When the user releases a key while the ALT key is also pressed, the message is submitted to the window with focus wm_syschar= $0106//When WM_ The Syskeydown message is translated by the TranslateMessage function to submit this message to the window that has focus wm_sysdeadchar= $0107//When WM_ Syskeydown message is translated by the TranslateMessage function to send this message to the window that has focus wm_keylast= $0108//Wm_initdialog = $0110//Send this message to it before a dialog box is displayed, Typically use 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//Timer event occurred wm_hscroll= $0114// When a window standard horizontal scrollbar produces a scrolling event, this message is sent to that window and 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 also sent to the control that owns it wm_initmenu = $0116//When a menu is about to be activated when this message is sent, 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 wm_initmenupopup= $0117//When a drop-down menu or submenu is about to be activated, this message is sent, allowing the program to change the menu before it is displayed, without changing all wm_ MenuSelect = $011f//When the user selects a menu item to send this message to the owner of the menu (typically a window) 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//When a modal dialog box or menu enters an empty state to send this message to its owner, a modal dialog box or menu enters an empty state that is waiting for a message in its queue after processing one or several previous messages to wm_menurbuttonup= $ 0122//Wm_menudrag = $0123//wm_menugetobject= $0124//wm_uninitmenupopup= $0125//wm_menucommand= $0126//WM_CHANGEU istate= $0127//wm_updateuistate= $0128//wm_queryuistate = $0129//Wm_ctlcolormsgbox = $0132//Send this message to message box before Windows Draw message box In response 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 Wm_ctlcoloredit = $0133//When an edit control is about to be drawn, send this message to its parent window, 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 wm_ctlcolorlistbox= $0134//When a ListBox control is going to be drawn before sending this message to its parent window, in response to this message, the owner window can Sets the text and background color of a list box by using the handle of a given related display device wm_ctlcolorbtn= $0135//When a button control is about to be drawn, send this message to its parent window; by responding to this message, the owner windowThe port can set the text and background color of the button by using the handle of the given related display device wm_ctlcolordlg= $0136//When a dialog box control is about to be drawn, send this message to its parent window, and in response to this message, the owner window can Sets the text background color of the dialog box by using the handle of the given related display device wm_ctlcolorscrollbar= $0137//When a ScrollBar control is about to be drawn, send this message to its parent window, and in response to this message, the owner window can Sets the background color of the scrollbar by using the handle of the given related display device wm_ctlcolorstatic = $0138//When a static control is about to be drawn, send this message to its parent window, and in response to this message, the owner window can Sets the text and background color of a static control by using the handle of a given related display device Wm_mousefirst = $0200//wm_mousemove= $0200//Move mouse wm_lbuttondown= $0201//Press the left mouse button Wm_lbu ttonup= $0202//Release left mouse button wm_lbuttondblclk= $0203//Double left mouse button wm_rbuttondown= $0204//Press right mouse button wm_rbuttonup= $0205//Release right mouse button Wm_rbu ttondblclk= $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 a control that currently has focus 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 when 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//When the user is resizing the window to send this message to the window, this message application can monitor the window size andThe location can also be modified by their wm_capturechanged = 533//Send this message to the window when it loses the captured mouse; wm_moving = 534//When the user sends this message while moving the window, the application can monitor the window size and position by this message, and can also modify them; W M_powerbroadcast = 536//This message is sent to the application to notify it about power management events; wm_devicechange = 537//Send this message to the application or device driver when the device's hardware configuration changes Wm_ime_ startcomposition= $010d//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= $ 285//wm_ime_char= $0286//Wm_ime_request = $0288//Wm_ime_keydown = $0290//Wm_ime_keyup = $0291//WM_MDICREATE= $02 20//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// The application sends this message to the 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 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 minimum to the original size wm_mdinext= $0224//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//program sends this message to the MDI client window to rearrange all MDI in a tiled mannerchild window Wm_mdicascade = $0227//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 minimized MDI child windows wm_mdigetactive = $0229//program sends this message to the MDI client window to find the handle of the active child window 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_MDIREFRESHM ENU = $0234//Wm_mousehover = $02A1//Wm_mouseleave = $02A3//wm_cut= $0300//Programs send this message to an edit box or ComboBox to delete the currently selected text Wm_copy = $0301//program sends this message to an edit box or ComboBox to copy the currently selected text to the Clipboard wm_paste= $0302//program sends this message to Editcontrol or ComboBox to get data from Clipboard wm_clear= $ 0303//program sends this message to Editcontrol or ComboBox to clear the currently selected content; Wm_undo = $0304//program sends this message to Editcontrol or ComboBox to undo the last action Wm_renderformat = $0305;//Wm_renderallformats = $0306//Wm_destroyclipboard = $0307//Send this message to the owner of the Clipboard when the Enptyclipboard function is called wm_ drawclipboard= $0308//When the contents of the Clipboard are changed, this message is sent to the first window of the Clipboard Watch chain, which allows the Clipboard viewing window to display the new contents of the Clipboard; Wm_paintclipboard = $0309//When the Clipboard contains cf_ Ownerdiplay formatted data and the client area of the Clipboard Watch window needs to be redrawn; Wm_vscrollclipboard = $030a//wm_sizeclipboard= $030b//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; wm_askcbformatname= $030c// Send this message through the Clipboard Watch window to the owner of the Clipboard to request a Cf_ownerdisplay-formatted 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 when the focus is received wm_paletteischanging = $0310//When an application is about to implement its logical palette, this message notifies all applications wm_palettechanged = $0311//This message sends this message to all top-level and overlapping windows after it implements its logical palette in a window that has the focus. To change the system palette Wm_hotkey = $0312//Submit this message 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//W m_penwinfirst= $0380//Wm_penwinlast = $038f//Wm_coalesce_first = $0390//wm_coalesce_last= $039F//WM_DDE_FIRST= $03 E0//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 customer or a server)Give 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 a DDE service by this message that the item specified or a special Clipboard format is not updated 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, The customer uses this message to request that the server receive an unsolicited data item; The server prompts the Wm_dde_ack message to receive the data item by replying to it; 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//This message can help the application to customize the private message;///////////////////////////////////////////////////////////////////// Notification messages (Notification message) refer to a message that a child control within a window has something that needs to be notified to the parent window. Notification messages apply only to standard window controls such as buttons, list boxes, combo boxes, edit boxes, and Windows 95 common controls such as tree view, List view, and so on. For example, clicking or double-clicking a control, selecting theA notification message is generated for the selected text and the scroll bar of the manipulation control. Press Twist bn_clicked//user clicked the button bn_disable//button is forbidden bn_doubleclicked//user double-clicked button Bn_hilite//user highlighted button Bn_paint//button should redraw bn_unhilite// Highlight should remove combo box cbn_closeup//combo box The list box is closed CBN_DBLCLK//the user double-clicked a string Cbn_dropdown//combo box The list box was pulled out Cbn_editchange//user modified the text in the edit box cbn_ Editupdate//edit box text is about to be updated cbn_errspace//combo box out of memory Cbn_killfocus//combo box loses input focus cbn_selchange//Select an item in combo box Cbn_selendcancel/ /The user's choice should be canceled Cbn_selendok//The user's choice is legal cbn_setfocus//combo box Get input focus edit box En_change//edit box text has been updated en_errspace//edit box not enough memory En_ HScroll//user clicked the horizontal scroll bar en_killfocus//edit box is losing input focus En_maxtext//insert content is truncated en_setfocus//edit box Get input focus en_update//edit box text will be updated EN _vscroll//user clicked the vertical scroll bar message meaning list box LBN_DBLCLK//user double-clicked an item Lbn_errspace//list box memory is not enough lbn_killfocus//list box is losing input focus lbn_selcancel// Selection is canceled Lbn_selchange//Select another item Lbn_setfocus//list box get input focus

Window message Daquan

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.