WINDOW message Daquan use details

zhaozj2021-02-16  75

[WINDOW? Message Detailed Use Detailed] ?? ???? Message, means a notification issued by Windows and tells 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 this declared in the Windows unit: TyPETMSG? =? Packed? Recordhwnd:? HWnd;? /? / Window handle Message:? Uint;? /? / Message constant identifier WPARM:? WPARAM •? //? 32-bit message Specific additional information lparam:? Lparam?;? //? 32-bit message Time:? Dword;? /? / Message Create time PT:? Tpoint ;? /? / Message creation mode position END; what is there? Do you feel that the information in a message record is like Greek? If so, 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? The constant value of other messages can be used, which can be predefined in the Windows unit, or it can be custom constants. WPARAM? is usually a constant value related to the message, or the handle of a window or control. LPARAM? is usually a pointer to data in memory. Due to W? P? A? R? A? M, l? P? A? R? A? M and p? O? I? N? T? E? R is 3? 2, so they It can be converted between each other.

WM_NULL? =? $ 0000; WM_CREATE? =? $ 0001; application creation a window wm_destroy? =? $ 0002; one window is destroying WM_MOVE? =? 0003; moving a window WM_SIZE? =? $ 0005; change a window size WM_ACTIVATE? = $ 0006; a window is activated or lost activation status; WM_SETFOCUS? =? $ 0007; WM_KILLFOCUS? =? $ 0008 after getting focus; lost focus WM_ENABLE? =? $ 000A; change Enable Status WM_SETREDREDRAW? =? 000B; Settings window Heavy painting? WM_SETTEXT? =? $ 000c; application sends this message to set the text WM_GETTEXT? =? $ 000d in the window; the application sends this message to copy the text to the buffer WM_GETTEXTLENGTH? =? 000E; get The length of text related to a window (does not include empty characters) WM_Paint? =? $ 000f; ask a window to call yourself =? $ 0010; send a signal WM_QUERYENDSession? =? $ 0011 when a window or application is to close When the user selects the end dialog or the program you call the exitwindows function wm_quit? =? $ 0012; use to end the program run or when the program calls postquitMessage function? WM_QUERYOPEN? =? $ 0013; turn this message when the user window restores the previous size position Send to an icon WM_ERASEBKGND? =? $ 0014; When the window background must be erased (examples in the window change the size) WM_SYSCOLORCHANGE? =? $ 0015; When the system color changes, this message is sent to all top window WM_ENDSession? =? $ 0016; After the system process issues a WM_QueryEndSession message, this message is sent to the application, informs it to end if the conversation ends WM_SYSTEMERROR? =? $ 0017; WM_SHOWINDOW? =? $ 0018; When the hidden or display window is sent to this message to this message to this message WM_ACTIVATEAPP? =? $ 001c; send this message Which window is activated, which is not activated; WM_FONTCHANGE? =? $ 001D; send this message when the system's font resource library changes this message to all top windows WM_TIMECHANGE? =? $ 001E; When the system time changes, this message is sent to all top windows WM_CANCELMODE? =? $ 001f; send this message to cancel Some kind of ongoing touch state (operation) WM_SETCURSOR? =? $ 0020; if the mouse causes the cursor to move in a window and when the mouse input is not captured, send a message to a window WM_MOUSEACTIVATE? =? $ 0021; When the cursor is in a In a non-activated window, the user is in pressing a key in the mouse to send this message to the current window WM_CHILDACTIVATE? =? $ 0022; send this message to the MDI sub-window When the user clicks on this window, or when the window is activated, Move, change the size of WM_QUEESYNC? =? $ 0023; This message is sent by the computer-based training program, separating the user input message WM_GETMAXINFO? =? $ 0024 via the WH_Journalpalyback hook program; this message is sent to the window When it will change the size or position; WM_Painticon ? =? $ 0026; Send to the minimization window When it is the icon to be redrawed by WM_ICONERaseBkGnd? =? $ 0027; this message is sent to a minimization window, only when it is drawing the icon, its background must be returned WM_NEXTDLGCTL? = $ 0028;

Send this message to a dialog program to change the focus position WM_SPOOLERSTATUS? =? $ 002a; Whenever the print management column is added or decreases this message? WM_DRAWITEM? =? $ 002B; when Button, ComboBox, Listbox, Menu When the appearance changes, this message is sent to the owner of these empty members WM_MeasureItem? =? $ 002c; when Button,? Combo? Box,? List? Box,? List? View? Control,? Or? Menu? Item? Was When you create this message, you will send this message to the owner of the control WM_DELETEITETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETETED; if the? List? Box? Or? COMBO? BOX? Is it destroyed? Or? , or? cb_resetcontent? message WM_VKEYTOITEM? =? $ 002e; This message has a LBS_WANTKEYBOARDINPUT style to the owner of it to respond to the WM_KEYDOWN message? WM_KEYDOTEM? =? $ 002f; this message is sent by a LBS_WANTKEYBOARDINPUT style list box sent to the list box His owner responds to WM_CHAR messages? WM_SETFONT? =? 0030; when the program is drawn, the program sends this message to get the color you want to use. WM_GETFONT? =? $ 0031; Application Send this message Get the current control to draw the text WM_SETHOTKEY? =? $ 0032; Application Send this message Let a window related to a hotkey WM_GETHOTKEY? =? $ 0033; the application sends this message to determine if the hotkey is related to the associated WM_QueryDragicon? =? 0037; this message is sent Minimize the window, when this window will be dragged and 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_Comparetem? =? 0039; send This message determines the relative position of ComboBox or ListBox added, WM_GETOBJECT? =? $ 003d; wm_compacting? =? $ 0041; Show memory already wm_windowposchanging? =? $ 0046; send this message to the size and location of the window When it is changed, call the SETWINDOWPOS function or other window management function WM_WINDOWPOSCHANGE D? =? $ 0047; Send this message to the size and location of the window have been changed to call the SETWINDOWPOS function or other window management functions WM_Power? =? $ 0048; (for 16-bit Windows) When the system will enter the suspension state Send this message WM_COPYDATA? =? $ 004a; send this message when an application delivers the data to another application WM_CANCELJOURNAL? =? $ 004b; When a user cancels the program log activation status, submit this message to the program WM_NOTIFY? =? $ 004E; When a control has occurred or this control needs to get some information, send this message to its parent window WM_INPUTLANGCHANGEREQUEST? =? $ 0050; when the user selects some kind of input language, or enter language Hotkey changes WM_INPUTLANGCHANGE? =? $ 0051; When the platform has been changed to send this message to the affected top window WM_TCARD? =? $ 0052; send this message when the program has initialized the Windows Help routine to send this message to the application WM_HELP? = $ 0053; This message shows that the user presses F1. If a menu is activated, send this message and the menu associated with this window, otherwise send it to the focus window, if there is no focus,

Just send this message to the currently activated window WM_USERCHANGED? =? $ 0054; send this message to all the windows when the user has logged in or exit, when the user logs in or exits, the user's specific setting information is set, when the user update setting The system immediately sends this message; WM_NOTIFYFORMAT? =? $ 0055; public control, custom control, and their parent window to determine the control to use ANSI or Unicode structure in the WM_NOTIFY message, use this control to make a control with it Mutual communication WM_CONTEXTMENU? =? $ 007b between parent controls; when you click on the right button in a window, you will send this message to this message to this window WM_StyleChanging? =? $ 007c; When the calling setWindowlong function will change one or more? Window When you send this message, send this message to that message WM_Stylechanged? =? $ 007d; send this message to that message to the window WM_DisplayChange? =? $ 007E; send it to the resolution of the display when the SETWINDOWLONG function is called. This message gives all the windows WM_GETICON? =? $ 007f; this message is sent to a window to return a handle with a large icon or a small icon; WM_SETICON? =? $ 0080; program sends this message to make a new Large icon or small icon is associated with a window; 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 Non-client is destroying WM_NCCALCSIZE? =? $ 0083; send this message when a customer area must be asked to send this message WM_NCHITTEST? =? $ 0084; // Move the mouse, hold down or release the mouse when WM_NCPAINT? =? $ 0085; The program sends this message to a window When it (window) frame must be drawn; WM_NCActivate? =? $ 0086; This message is sent to a window? Only when its non-client needs to be changed to display is activated or not Activation status; WM_GETDLGCODE? =? $ 0087; Send this message to a control associated with the dialog program, Widdows Control orientation key, and Tab keys make input into this control by responding to WM_GETDLGCODE messages, the application can treat him as a special input Controls and can handle it WM_NCMOUSEMOVE? =? $ 00A0; send this message when the cursor is moving this message when moving in a window? // Non-customer area: The title bar and window of the form? Body WM_NCLBUTTONDOWN? =? $ 00A1; Submit this message when the cursor is in the non-customer area of ​​a window, submit this message WM_NCLBUTTONUP? =? $ 00A2; When the user releases the left mouse button, the point of the cursor is a window in the non-client area Send this message; WM_NCLBUTTONDBLCLK? =? $ 00A3; When the user doubles the left mouse button, the cursor is sent this message in the non-client zone 10 WM_NCRBUTTONDOWN? =? $ 00A4; When the user presses the right mouse button, the cursor is in the window When the client district, this message is sent to WM_NCRBUTTONUP? =? $ 00A5; when the user releases the mouse button while the cursor is sending this message when the cursor is in the non-client district of the window, WM_NCRBUTTONDBLCLK? =? $ 00A6; When the user doubles the mouse button, the cursor is in a window Customer District 10 Send this message WM_NCMBUTTONDOWN? =? $ 00A7; When the user presses the mouse button while the cursor is sent this message when the cursor is in the non-client district of the window, the message WM_NCMBUTTONUP? =? $ 00A8; When the window's non-customer district, this message is sent to WM_NCMBUTTONDBLCLK? =? $ 00A9; When the user doubles the mouse button while the cursor is also sent to the window WM_KEYFIRST? =? $ 0100; WM_KEYDOWN? =

$ 0100;? // Press a key WM_KEYUP? =? $ 0101;? // Release a key WM_CHAR? =? $ 0102; // Press a key and issue WM_KEYDOWN,? WM_KEYUP message WM_DEADCHAR? =? $ 0103; When you use the TranslateMessage function to translate the WM_KEYUP message, send this message to the window WM_SYSKEYDOWN? =? $ 0104; when the user presses the Alt button, submit this message to the window with the focus; WM_SYSKEYUP? =? $ 0105; The user releases a button while the Alt? Button is submitted to the window WM_SYSCHAR? =? $ 0106; when the WM_SYSKEYDOWN message is translated by the translateMessage function, submit this message to the window WM_SYSDEADCHAR? =? $ 0107; when wm_syskeydown The message is sent to the translateMessage function to send this message to the window WM_KEYLAST? =? $ 0108; WM_INITDIALOG? =? $ 0110; send this message before a dialog program is displayed, usually use this message to initialize the control and implement 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 the shortcut is translated, and a command to select the window menu or when the user selects When you maximize or minimize this message, WM_TIMER? =? $ 0113;? // The timer event WM_HSCROLL? =? $ 0114; when a window standard horizontal scroll bar generates a scrolling event to send this message to that message The window, also sent to the control WM_VSCROLL? =? $ 0115; when a window standard vertical scroll bar generates a scrolling event to send this message to that window, send it to the control? WM_INITMENU? =? $ 0116; when one The menu will be activated to send this message, which occurs one item in the user menu bar or presses a menu button, which allows the program to change the menu wm_initmenupopup =? $ 0117 before display; a drop-down menu or submenu will be Send this message when activated, it allows the program to change the menu before it is displayed, not to change all? WM_MENUSELECT? =? $ 011f; send this message to the owner of the menu when the user selects a menu item (general window) WM_MENUCHAR? =? $ 0120; When the menu has been activated by the user (different from the accelerator), send this message to the menu Owner; wm_enteridle? =? $ 0121; Send this message to the owner of this message when a modal dialog or menu enters an empty-loaded state, a modal dialog or menu enters an air-load status is handling one or a few Article previous message is no message from its queue waiting WM_MENURBUTTONUP = $ 0122;?? WM_MENUDRAG = $ 0123;?? WM_MENUGETOBJECT = $ 0124;?? WM_UNINITMENUPOPUP = $ 0125;?? WM_MENUCOMMAND = $ 0126;?? WM_CHANGEUISTATE = $ 0127;?? WM_UPDATEUISTATE? =? $ 0128; WM_QUERYUSTATE? =? $ 0129;? WM_CTLCOLORMSGBOX? =? $ 0132; Send this message to the owner window of the message box before the Windows Drawing Message box, by responding to this message, the owner window can be related to the reference Display the handle of the device to set the text and background color wm_ctlcoloredit? =? $ 0133; when a edit control will be drawn, send this message to its parent window; by response to this message,

Owner window You can set the edit box for text and background color wm_ctlcolorlistbox? = $ 0134 by using a given related display device; a list box control will send this message to its parent window before drawn; Bar message, the owner window can set the text and background color of the list box by using the handle of a given related display device? WM_CTLCOLORBTN? =? $ 0135; when a button control will be drawn, this message will be sent to the parent window; By responding to this message, the owner window can set the text and background color wm_ctlcolordlg? =? $ 0136 by using the given related display device; when a dialog control is to 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 =? $ 0137 by using a given related display device; send this message to it when a scroll strip control will be drawn The parent window; by responding to this message, the owner window can set the background color wm_ctlcolorstatic? =? $ 0138 of the scroll bar by using the handle of the given related display device;? When a static control will be drawn, send this message to Its parent window; by responding to this message, the owner window can set the text and background color wm_mousefirst? =? $ 0200; WM_MOUSEMOVE? =? $ 0200;? //? Move 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 Right-click on the mouse button =? $ 0205; // Release the mouse right button WM_RBUTTONDBLCLK? =? $ 0206;? // Double-click the right mouse button? =? $ 0207;? // Press the mouse button? WM_MBUTTONUP? =? $ 0208;? // Release the mouse button WM_MBUTTONDBLCLK? =? $ 0209;? // Double click on the mouse button WM_MOUSEWHEEL? =? $ 020A; send this message when the mouse wheel rotates, the current focus control WM_MouseLast? =? $ 020210 When the MDI sub-window is created or destroyed, or the user presses the mouse button and the cursor will send this message to its parent window WM_Enterm when the cursor is on the child window. ENULOOP? =? $ 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's main window That has exited menu loop mode WM_NEXTMENU? =? $ 0213; WM_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 capture When the mouse; WM_MOVING? =? 534; When the user sends this message when the mobile window, this message application can monitor the window size and position can also modify them; WM_PowerBroadcast? =? 536; this message is sent to the application to notify It related to power management events; WM_DEVICECHANGE? =? 537; Send this message when the device's hardware configuration changes to the application or device driver? =? $ 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 = $ 0285;?? WM_IME_CHAR = $ 0286;?? WM_IME_REQUEST = $ 0288;?? WM_IME_KEYDOWN = $ 0290;?? WM_IME_KEYUP? =? $ 0291; wm_mdicreate? =? $ 0220; application sends this message to the multi-document customer window to create a MDI? Sub-window WM_MDIDESTROY? =? $ 0221; Application Send this message to multi-document customer window to close a MDI? Sub-window WM_MDIAACTIVATE? =? $ 0222; Application Send this message to the multi-document client window to activate another MDI sub-window, after the customer window receives this message, it issues a WM_MDIACTIVE message to the MDI child window (not activated) Activate it; WM_MDIRESTORE? =? $ 0223; Program? Send this message to the MDI Customer window to restore the sub-window to the original size WM_MDINEXT? =? $ 0224; program? Send this message to the MDI customer window to activate the next or the previous one Window wm_mdimaximize? =? $ 0225; Program Send this message to MDI customer window to maximize an MDI sub-window; WM_MDITILE? =? $ 0226; Program? Send this message to the MDI customer window Re-arrange all MDI sub-window WM_MDICADE? =? $ 0227; Program? Send this message to the MDI client window to rearrange all MDI sub-window WM_MDIICONARRANGE? =? $ 0228; Program? Send this message to rearrange all minimized MDI sub-window WM_MDIGETACTIVE? =? $ 0229; Program? Send this message to the MDI customer window to find the handle of the activated sub-window WM_MDisetMenu? =? $ 0230; =? $ 0232; wm_dropfiles? =? $ 0233; wm_mdirefreshmenu? =? $ 0234; wm_mousehover? =? $ 02A1; WM_MOUSELEAVE? =? $ 02A3; WM_CUT? =? $ 0300; program sends this elimination Interest to an edit box or ComboBox to delete the currently selected text wm_copy? =? $ 0301; program sends this message to a edit box or ComboBox to copy the currently selected text to the clipboard WM_PASTE? =? $ 0302; program Send this message to EditControl Or ComboBox gets data wm_clear? =? $ 0303 from the clipboard; program sends this message to eDitControl or ComboBox clears the currently selected content; WM_UNDO? =? $ 0304; program sends this message to editcontrol or comboBox to undo the last operation WM_RENDERFORMAT? =? $ 0305; WM_RENDERALLFORMATS? =? $ 0306; WM_DESTROYCLIPBOARD? =? $ 0307; When calling the enptyclipboard function? Send this message to the owner of the clipboard WM_DRAWCLIPBOARD? =? $ 0308; send this message to the clipboard to observe the chain when the content change of the clipboard The first window; 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 be heavy; WM_VSCROLLLLIPBOARD? =

? $ 030A; WM_SIZECLIPBOARD? =? $ 030b; When the clipboard contains the data of the CF_OWNERDIPLAY format and the size of the clipboard observation window has changed this message, the message is sent to the owner of the clipboard by the clipboard observation window; WM_ASKCBFORMATNAME? = $ 030c; send this message to the owner of the clipboard to request a clipboard of the clipboard by the clipboard observation window to request the name of the clipboard of the CF_OWNERDISPLAY format. WM_CHANGECBCHAIN? =? $ 030d; send this message when a window is removed from the clipboard Watch the first window of the clipboard; WM_HSCROLLLLIPBOARD? =? $ 030E;? This message sent to the owner of the clipboard via a clipboard watch window?; It happens in the clipboard contains data in the CFOWNERDISPALY format and has a The event is on the horizontal scroll bar of the clipboard viewing; the 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 can make the window When receiving the focus, there is a chance to implement his logical palette WM_PALETTEISCHANGINGINGINGINGINGINGINGINGING =? $ 0310; when an application is to implement its logical palette, send this message to notify all applications WM_PALETTECHANGED? =? $ 0311; this news After a logical palette that implements its logical palette in a focus window, send this message to all top-level and overlapping windows to change the system palette? WM_HOTKEY? =? $ 0312; when the user presses the heat registered by the RegisterhotKey function Submit this message when the button is submitted to this message to send this message only when Windows or other applications issues a request to draw a 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 program submitted This message starts a session with the server to respond to the specified program and theme name; WM_DDE_TERMINAT? =? WM_DDE_FIRST? ? 1; a DDE application (whether a customer or server ) Submit this message to terminate a session; WM_DDE_ADVISE? =? WM_DDE_FIRSE? ? 2; a DDE client submits this message to a DDE service program to update the server updated when the data item is changed when the data item changes it WM_DDE_FIRST? ? 3; a DDE client adopts this message to notify a DDE server does not update 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 Received and being processed WM_DDE_POKE,? WM_DDE_EXECUTE,? WM_DDE_EXECUTE,? WM_DDE_DATA,? WM_DDE_ADVISE,? WM_DDE_UNADVISE,? OR? WM_DDE_INITIAT message WM_DDE_DATA? =? WM_DDE_DATA? ? 5; a DDE service program submits this message to the DDE client to deliver a data A 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 of a data item; WM_DDE_POKE? =? WM_DDE_FIRST? 7 7 ;

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

New Post(0)