Windows system message

xiaoxiao2021-03-06  42

The message means a notification issued by Windows to tell the application a matter. For example, click the mouse, change the window size, press a key on the keyboard to send Windows to your application. The message itself is passed to the application as a record, and this record contains the type of message and other information. For example, for messages generated by clicking on the mouse, this record contains the coordinates when clicking the mouse. This record type is called TMSG, which is declared in the Windows unit: typeTMSG = Packed RecordhWnd: hWnd; // Window handle Message: uint; // message constant identifier WPARAM: WPARAM; // 32-bit messages specific additional information LPARAM: LPARAM; // 32-bit message Specific additional information Time: DWORD; // Message time PT: tpoint; // Message Create Mouse Location END; What is there in the message? Do you feel that the information in a message record is like Greek? If this is the case, then take a look at the explanation below: HWND: 32-bit window handle. The window can be any type of screen object because Win32 is able to maintain the handle of most visual objects (windows, dialogs, buttons, edit boxes, etc.). Message is used to distinguish constant values ​​for other messages, which may be predefined in the Windows unit, or they can be custom constants. WPARAM: It is usually a constant value related to the message, or the handle of a window or control. LPARAM: It is usually a pointer to data in memory. Because WPARAM, LPARAM and POIIters are 32-bit, they can be converted between them.

After WM_SETFOCUS = $ 0007 gets the focus; WM_NULL = $ 0000WM_CREATE = $ 0001 an application creates a window WM_DESTROY = $ 0002 a window is destroyed WM_MOVE = $ 0003 to move a window WM_SIZE = $ 0005 to change a window's size WM_ACTIVATE = $ 0006 a window is active or lose activation status WM_KILLFOCUS = $ 0008 Lost Focus WM_ENABLE = $ 000A Change Enable Status WM_SETREDREDRAW = 000B Settings window Cannot Heavy WM_SETTEXT = $ 000c application Send this message to set a window WM_GETTEXT = $ 000D application Send this message to copy the corresponding window The text to the buffer WM_GETTEXTLENGTH = $ 000E gets the length of the text related to a window (does not include empty characters) WM_Paint = $ 000f requires a window to call yourself WM_CLOSE = 0010 When a window or application is turned off, send a signal WM_QueryEndSession = 0011 When the user selects the end dialog or the program calls the exitWindows function wm_quit = 0012 to end the program run or when the program calls postquitMessage function wm_queryopen = $ 0013 When the user window recovers the previous size position, turn this message to an icon WM_ERASEBKGND = 0014 When the window background must be erased (Example When the window changes the size) WM_SYSCOLORCHANGE = $ 0015 When the system color changes, this message is sent to all top-level windows WM_ENDSESSION = $ 0016 When the system process issues a WM_QueryEndSession message, this message is sent to the application Program, notify it to end if the conversation ends WM_SYSTEMERROR = 0017 Send a signal when a window or application is to close, send a signal wm_showWindow = 0018 When the hidden or display window is sent to this message to this message WM_ACTIVATEAPP = $ 001c Send this message Which window is given? Activated, which is non-activated; WM_FONTCHANGE = $ 001d Send this message when the system's font resource library changes to all top window WM_TIMECHANGE = $ 001E Send this message when the system changes to all top windows WM_CANCELMODE = $ 001f Send this Messages to cancel some of the ongoing touch state (operation) WM_SETCURSOR = $ 0020 If the mouse causes the cursor to move in a window and the mouse input is not captured, Send a message to a window WM_MouseActivate = $ 0021 When the cursor is in a non-activated window and the user is in accordance with a key in the mouse, send this message to the current window WM_CHILDACTIVATE = 0022 Send this message to the MDI child window When the user clicks this The title bar of the window, or when the window is activated, move, change the size WM_QUEESYNC = $ 0023 This message is sent by the computer-based training program, separated by the WH_Journalpalyback hook program separated by the user input message WM_GETMAXINFO = $ 0024 This message is sent to the window When it will change Size or position; WM_PAINTICON = 0026 Send to Minimize Window When it icon will be edited by WM_ICONERASEBKGND = $ 0027 This message is sent to a minimization window, only when it is drawn, it must be retransmond WM_NEXTDLGCTL = $ 0028 Send This message gives a dialog program to change the focus position wm_spoolerstatus = $ 002A Whenever you send this message whene_drawItem = $ 002B when the print management queue increases or decreases a job?

ListBox, MENU's visual appearance changes this message to these empty owners WM_MEASUREITEM = $ 002c When Button, ComboBox, ListBox, ListViewControl, or MenuItem is created, send this message to the control owner WM_DELETEITETEM = $ 002d this message thelistbox 002F or combobox is destroyed or when certain items are deleted by LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, orCB_RESETCONTENT news WM_VKEYTOITEM = $ 002E this message has sent a LBS_WANTKEYBOARDINPUT style to its owner in response to WM_KEYDOWN message WM_CHARTOITEM = $ consists of a LBS_WANTKEYBOARDINPUT style list box Send him owner to respond to WM_CHAR messages WM_SETFONT = $ 0030 When the text is drawn, the program is sent to the color WM_GETFONT = 0031 application to send this message to get the current control to draw the text WM_SETHOTKEY = $ 0032 The application sends this message to make a window associated with a hot key to send this message to determine whether the hotkey is associated with a window WM_QueryDragicon = 0037 This message is sent to the minimum window, when this window will be dragged The icon is not defined in its class, the application can return a handle of an icon or cursor, when the user drags and drop icons, the system displays this icon or cursor WM_CompareItem = $ 0039 Send this message to determine the relative item of the new item of ComboBox or Listbox. location WM_GETOBJECT = $ 003DWM_COMPACTING = $ 0041 display memory, few WM_WINDOWPOSCHANGING = $ 0046 when you send this message to the size and location of the window to be changed, to call setwindowpos function or other window management functions WM_WINDOWPOSCHANGED = $ 0047 sends the message to that window When the size and position have been changed, call the SETWINDOWPOS function or other window management function WM_POWER = $ 0048 (for 16-bit Windows) When the system will send this message when the system will send this message WM_COPYDATA = 004a When an application passes the data Send this message when an application is WM_CANCELJournall = $ 004B A user cancels the program log activation status, submit this message to the program WM_NOTIFY = 004e Send this message to its parent window WM_INPUTLANGCHANGEREQUEST = $ 0050 when a control is required or this control needs to get some information Select a certain input language, or the hotkey of the input language changes WM_INPUTLANGCHANGE = $ 0051 When the platform has been changed to send this message to the affected top window WM_TCARD = $ 0052 When the program has initialized the Windows Help routine, send this message to the application Program WM_HELP = 0053 This message shows that the user presses F1. If a menu is activated, send this message and this message is associated with the menu, otherwise send a window with focus, if there is no focus, The message is sent to the currently activated window WM_USERCHANGED = $ 0054 When the user has already logged in or exits, the message is sent to all the windows, and the system updates the user's specific setting information when the user logs in or exits, and the system will immediately send this message when the user update settings; WM_NOTIFORMAT = $ 0055 public control, custom controls and their parent windows to determine that the control is using ANSI or the Unicode structure in WM_NOTIFY message,

Use this control to make a control with its parent controls WM_CONTEXTMENU = 007b When you click on the right button in a window, send this message to this message to this window WM_StyleChanging = 007c When the calling setWindowlong function will change one When you send this message to that message to the window WM_Stylechanged = $ 007d, send this message to that message to the window WM_DISPLAYCHANGE = $ 007E When the resolution of the display is changed to the window WM_DISPLAYCHANGE = $ 007E Send this message after the resolution of the display changes All Windows WM_GETICON = $ 007F This message is sent to a window to return the handle of the big icon or small icon with a window; WM_SETICON = $ 0080 program Send this message to make a new big icon or small icon with one Window association; wm_nccreate = 0081 When a window is created first, this message is sent before the WM_CREATE message is sent; WM_NCDESTROY = 0082 This message notifies a window, the non-client area is destroying WM_NCCALCSIZE = 0083 When a window The area must be asked to send this message when it is allowed to move the mouse, hit or release the mouse when the mouse will send this message to a window. When it (window) frame must be drawn; wm_ncactivate = $ 0086 This message is sent Give a window only when its non-client needs to be changed to display is activated or inactive; WM_GETDLGCODE = 0087 Send this message to a control associated with the dialog program, Widdows control orientation keys and TAB keys make input This control responds to the WM_GETDLGCODE message, the application can treat him as a special input control and can handle it WM_NCMOUSEMOVE = $ 00A0 when the cursor is moving this message when moving this message when moving in a window. // Non-client : Side frame of the form of the form and the edge of the window WM_NCLBUTTONDOWN = $ 00A1 Submit this message when the cursor is pressed at the non-client area of ​​a window simultaneously press the left mouse button, WM_NCLBUTTONUP = $ 00A2 When the user releases the left mouse button and the target a window is at a window. Non-customer zone ten sends this message; WM_NCLBUTTONDBLCLK = $ 00A3 When the user doubles the left mouse button while the cursor one window sends this message WM_NCRBUTTONDOWN = $ 00A4 when the user presses the mouse button while the cursor is in the Non-Customer area of ​​the window Send this message when sending this message wm_ncrbuttonup = $ 00A5 When the user releases the right mouse button The standard also sends this message in the non-client district of the window to send this message WM_ncrButtondBlClk = $ 00A6 When the user doubles the mouse button, the cursor one window sends this message WM_NCMBUTTONDOWN = $ 00A7 when the user presses the mouse button while the cursor is in the window When the non-client district is sent to this message WM_NCMBUTTONUP = $ 00A8 When the user releases the mouse button while the cursor is in the non-client district of the window, it will send this message when the window is in the non-client district. this message is sent when WM_KEYFIRST = $ 0100WM_KEYDOWN = $ 0100 a key is pressed WM_KEYUP = $ 0101 a key is released WM_CHAR = $ 0102 a key is pressed, and has issued the WM_KEYDOWN, WM_KEYUP message WM_DEADCHAR = $ 0103 sends the message to when the translation WM_KEYUP message with translatemessage function Window with focus WM_SYSKEYDOWN = $ 0104 Submit this message to the window with focus when the ALT button is pressed; wm_syskeyup = $ 0105 When the user releases a button while the Alt key is saved to have the focus Window WM_SYSCHAR =

$ 0106 when WM_SYSKEYDOWN message after being TRANSLATEMESSAGE function translated submitting this message to the window WM_SYSDEADCHAR has focus = $ 0107 when WM_SYSKEYDOWN message is sent after TRANSLATEMESSAGE function to translate the message to the window WM_KEYLAST has focus = $ 0108WM_INITDIALOG = $ 0110 in a dialog program is displayed before Send this message to it, usually 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 is translated by w_sysCommand = $ 012 When users Select a command to select the window menu or when the user selects maximizes or minimizes the message. The message will receive this message WM_TIMER = $ 0113 Timer event WM_HSCROLL = $ 0114 When a window standard horizontal scroll bar generates a scroll event to send this message to That window, also sent to the control WM_VSCROLL = $ 0115 when a window standard vertical scroll bar generates a scroll event to send this message to that window, send it to the control WM_INITMENU = $ 0116 When a menu is to be activated This message, it happens to a certain menu button in the user menu bar, which allows the program to change the menu WM_INITMENUPOPUP = $ 0117 before displaying the menu, when a drop-down menu or submenu will be activated, it allows the program Change the menu before it is displayed, not to change all WM_MENUSELECT = $ 011f Send this message to the menu when the user selects a menu item (general window) WM_MENUCHAR = $ 0120 When the menu has been activated by the user presses a key (Different from acceleration keys), send this message to the owner of the menu; WM_EnterIdle = $ 0121 Send this message to the owner of the owner when a modal dialog or menu enters an empty-loaded state, a modal dialog or menu into the empty the overload state is no message after one or several previous messages processed its queued WM_MENURBUTTONUP = $ 0122WM_MENUDRAG = $ 0123WM_MENUGETOBJECT = $ 0124WM_UNINITMENUPOPUP = $ 0125WM_MENUCOMMAND = $ 0126WM_CHANGEUISTATE = $ 0127WM_UPDATEUISTATE = $ 0128WM_QUERYUISTATE = $ 0129WM_CTLCOLORMSGBOX = $ 0132 in windows Send this message to the message box before drawing the message box Owner window, by responding to this message, the owner window can set the text and background color wm_ctlcoloredit = $ 0133 using the given related display device, when a editing control will be drawn, send this message to Its parent window; by responding to this message, the owner window can set the edit box for text and background color wm_ctlcolorlistbox = $ 0134 by using a given relevant display device handle, send this message before a list box control will be drawn Its parent window; by responding to this message, the owner window can set the list box for text and background color wm_ctlcolorbtn = $ 0135 by using the handle of the given related display device, when a button control will be drawn, send this message to it The parent window; by responding to this message, the owner window can set the message and background color wm_ctlcolordlg = $ 0136 by using a given relevant display device, when a dialog control will be drawn, send this message to it. The parent window; by responding to this message, the owner window can set the text background color wm_ctlcolorscrollbar = by using the handle of a given related display device.

$ 0137 When a scroll bar control will be drawn, this message will be sent to its parent window; 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 to set the scroll bar background color wm_ctlcolorstatic = $ 0138 A static control will send this message to the parent window to send this message; by responding to this message, the owner window can set the text and background color WM_MouseFirst = $ 0200WM_MouseMove = $ 0200WM_MouseMove = $ 0200WM_MOUSEMOVE = $ 0200 to move the mouse WM_LBUTTONDOWN = $ 0201 by pressing the left mouse button WM_LBUTTONUP = $ 0202 release the left mouse button WM_LBUTTONDBLCLK = $ 0203, double-click the left mouse button WM_RBUTTONDOWN = $ 0204 by pressing the right mouse button WM_RBUTTONUP = $ 0205 release, right WM_RBUTTONDBLCLK = $ 0206, double-click the right mouse button WM_MBUTTONDOWN = $ 0207 down the mouse button WM_MBUTTONUP = $ 0208 releases the mouse button WM_MBUTTONDBLCLK = $ 0209 double clicking the mouse button WM_MOUSEWHEEL = $ 020A sends this message number currently has the focus control when the mouse wheel is rotated WM_MOUSELAST = $ 020AWM_PARENTNOTIFY = $ 0210 when MDI child window is created or destroyed, Or the user presses the mouse button and the cursor sends this message on the sub-window WM_EnterMenuloop = $ 0211 Send this message to notify the application's main window That has entered the menu loop mode WM_EXITMENULOOP = $ 0212 Send this message to notify the application The main window THAT has exited menu loop mode WM_NEXTMENU = $ 0213WM_SIZING = 532 When the user is adjusting the window to send this message to the window; you can monitor the window size and location can also modify their WM_CAPTureChanged = 533 Send this message Give the window When it lost the captured mouse; WM_MOVING = 534 When the user sends this message while the mobile window, you can monitor the window size and location can also modify them; WM_PowerBroadcast = 536 This message is sent to the application to notify It relates to power management events; WM_DeviceChange = 537 Send this message to the application or device driver WM_IME_StartComposition = $ 010DWM_IME_ENDCMMPSITION = $ 010E WM_IME_COMPOSITION = $ 010FWM_IME_KEYLAST = $ 010FWM_IME_SETCONTEXT = $ 0281WM_IME_NOTIFY = $ 0282WM_IME_CONTROL = $ 0283WM_IME_COMPOSITIONFULL = $ 0284WM_IME_SELECT = $ 0285WM_IME_CHAR = $ 0286WM_IME_REQUEST = $ 0288WM_IME_KEYDOWN = $ 0290WM_IME_KEYUP = $ 0291WM_MDICREATE = $ 0220 application sends this message to the client window multiple document to create a MDI child windows WM_MDIDESTROY = $ 0221 application sends this message to the client window multiple documents to close a MDI child window WM_MDIACTIVATE = $ 0222 application sends this message to the client window, multi-document notification client window activates another MDI child window, when the client window After receiving this message, it issues a WM_MDIACTIVE message to activate it to the MDI sub-window (not activated); WM_MDIRESTORE =

$ 0223 Program Send this message to the MDI Customer window to restore the sub-window from the maximum minimization to the original size WM_MDINEXT = $ 0224 program Send this message to the MDI customer window to activate the next or the previous window WM_MDIMAXIMIZE = $ 0225 program Send this message to the MDI customer window Maximize a MDI sub-window; WM_MDITILE = $ 0226 program Sends this message to rearrange all MDI sub-window WM_MDICADE = $ 0227 program to the MDI customer window to rearrange all MDI child window WM_MDIICONARRANGE = $ 0228 Program Send this message Reissue all minimized MDI sub-window WM_MDIGETACTIVE = $ 0229 Program Send this message to the MDI Customer window to find this message WM_MDisetMenu = 0230 program to send this message to the MDI customer window MDI menu instead of the sub-window menu WM_ENTERSIZEMOVE = $ 0231WM_EXITSIZEMOVE = $ 0232WM_DROPFILES = $ 0233WM_MDIREFRESHMENU = $ 0234WM_MOUSEHOVER = $ 02A1WM_MOUSELEAVE = $ 02A3WM_CUT = $ 0300 sends the message to an edit box or combobox to delete the currently selected text WM_COPY = $ 0301 sends this message Give an edit box or ComboBox to copy the currently selected text to the clipboard WM_PASTE = $ 0302 program Send this message to EDITCONTROL or ComboBox from the clipboard WM_CLEAR = $ 0303 program Send this message to EDITCONTROL or ComboBox Clear the current selection; WM_UNDO = $ 0304 program sends the message to editcontrol or combobox undo the last time to send this message when WM_RENDERFORMAT = $ 0305WM_RENDERALLFORMATS = $ 0306WM_DESTROYCLIPBOARD = $ 0307 when calling ENPTYCLIPBOARD function to the owner of the clipboard WM_DRAWCLIPBOARD operations = $ 0308 this message is sent when the contents of clipboard changes Watch the chain of the clipboard; it allows the window to display the window to display the new content of the clipboard; WM_PaintClipboard = $ 0309 When the clipboard contains data in the CF_OWNERDIPLAY format and the clipboard observation window needs to redraw; WM_VScrollClip Board = $ 030BBM_SIZECLIPBOARD = $ 030b When the clipboard contains data in the CF_OWNERDIPLAY format and the size of the clipboard observation window has changed this message is sent to the owner of the clipboard via the clipboard watch window; WM_ASKCBFORMATNAME = $ 030c via clipboard The observation window sends this message to the owner of the clipboard to request a clipboard of a CF_OWNERDISPLAY format WM_CHANGECBCHAIN ​​= $ 030D When a window is removed from the clipboard observation chain to send this message to the first window of the clipboard observation chain. WM_HSCROLLLLIPBOARD = $ 030E This message sends the owner of the clipboard through a clipboard watch window; it occurs in the clipboard contains data in the CFOWNERDISPALY format and has an event on the horizontal scroll bar of the clipboard viewing window; owner should Scroll the clipboard image and update the value of the scroll bar WM_QUERYNEWPALETTE = $ 030F This message is sent to the window to receive the focus, this message enables the window to have the opportunity to achieve his logical palette WM_PALETTEISCHANGING = $ 0310 while receiving the focus When an application is to implement its logical palette, send this message to all applications WM_PALETTECHANGED = $ 0311 This message is sent to all top and overlapping windows that implement its logical palette after a focus window. ,

Change the system palette WM_HOTKEY = $ 0312 Submit this message when the user presses the hotkey registered by the RegisterhotKey function to send this message to send this message only when Windows or other applications issues a request to draw an application part; WM_PRINTCLIENT = 792WM_HANDHELDFIRST = 856WM_HANDHELDLAST = 863WM_PENWINFIRST = $ 0380WM_PENWINLAST = $ 038FWM_COALESCE_FIRST = $ 0390WM_COALESCE_LAST = $ 039FWM_DDE_FIRST = $ 03E0WM_DDE_INITIATE = WM_DDE_FIRST 0 a DDE client to submit this message to start a response to that specified procedures and topics session with the server program Name; WM_DDE_TERMINATE = WM_DDE_FIRST 1 A DDE application (whether a customer or 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 the server whenever data items Update it when you change it WM_DDE_UNADVISE = WM_DDE_FIRST 3 One DDE client notifies a DDE service program not updating the specified item or a special clipboard format Item WM_DDE_ACK = WM_DDE_First 4 This message notifies a DDE (dynamic data exchange) program has been received and is being processed WM_DDE_POKE, WM_DDE_EXECUTE, WM_DDE_DATA, WM_DDE_ADVISE, WM_DDE_UNADVISE, orWM_DDE_INITIAT news WM_DDE_DATA = WM_DDE_FIRST 5 a DDE service program submitted this message to the DDE client to pass a number of data items available data to a client or customer notification Item WM_DDE_REQUEST = WM_DDE_FIRST 6 A DDE client submits this message to a DDE service program to request a value of a data item; WM_DDE_POKE = WM_DDE_FIRST 7 A DDE client submits this message to a DDE service, customer uses this message to request The server receives an unadcoming data item; the server passes whether the WM_DDE_ACK message prompts whether it receives this data item; WM_DDE_EXECUTE = WM_DDE_FIRST 8 A DDE client submits this message to a DDE service program to send one A string gives the server as the serial command, the server responds by submitting the WM_DDE_ACK message; WM_DDE_LAST = WM_DDE_FIRST 8WM_APP = $ 8000WM_USER = $ 0400 This message can help the application custom private message; Notification Message (Notification Message ) Refers to such a message, some of the child controls in one window take some things, need to notify the parent window. The notification message is only available for standard window controls such as buttons, list boxes, combo boxs, edit boxes, and Windows 95 public controls such as tree views, list views, etc. For example, click or double-click a control, select some text in the control, and the scroll bar of the operating control will generate a notification message.

转载请注明原文地址:https://www.9cbs.com/read-52417.html

New Post(0)