Standard constant of sendwindowmessage --

Source: Internet
Author: User

This is the help explanation in Seraph.
Sendwindowmessage (windowid, messageid, lparam, wparam)
Send a message to a specified window. The messageid here refers to the Windows Standard Message constant. If it can be used flexibly, I believe the following content can help you write scripts.
The following content is a Windows Standard Message constant, which can be easily found and learned ~

Wm_null = & h0000;
Wm_create = & h0001;
Application creation window
Wm_destroy = & h0002;
A window is destroyed.
Wm_move = & h0003;
Move a window
Wm_size = & h0005;
Change the size of a window
Wm_activate = & h0006;
A window is activated or inactive;
Wm_setfocus = & h0007;
After getting focus
Wm_killfocus = & h0008;
No focus
Wm_enable = & h000a;
Enable status change
Wm_setredraw = & h000b;
Set whether the window can be re-painted
Wm_settext = & h000c;
The application sends this message to set the text of a window.
Wm_gettext = & h000d;
The application sends this message in sequence to copy the text of the corresponding window to the buffer zone.
Wm_gettextlength = & h000e;
Obtain the length of the text related to a window (excluding empty characters)
Wm_paint = & h000f;
Require a window to redraw itself
Wm_close = & h0010;
Send a signal when a window or application is closed
Wm_queryendsession = & h0011;
When the user selects the end dialog box or the program calls the exitwindows Function
Wm_quit = & h0012;
Used to end the program running or when the program calls the postquitmessage Function
Wm_queryopen = & h0013;
Send the message to an icon when the user window restores the previous size position.
Wm_erasebkgnd = & h0014;
When the window background must be erased (for example, when the window size changes)
Wm_syscolorchange = & h0015;
When the system color changes, send this message to all top-level windows.
Wm_endsession = & h0016;
After the system process sends the wm_queryendsession message, the message is sent to the application,
Indicates whether the conversation ends.
Wm_systemerror = & h0017;
Wm_showwindow = & h0018;
This message is sent to the hidden or displayed window.
Wm_activateapp = & h001c;
Which window of the application is activated and which is not activated;
Wm_fontchange = & h001d;
This message is sent to all top-level windows when the font resource library of the system changes
Wm_timechange = & h001e;
Send this message to all top-level windows when the system time changes
Wm_cancelmode = & h001f;
Send this message to cancel an ongoing touch (Operation)
Wm_setcursor = & h0020;
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 = & h0021;
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 = & h0022;
Send this message to the MDI subwindow. When the user clicks the title bar of this window, or the window is activated, move and change the size.
Wm_queuesync = & h0023;
This message is sent by a computer-based training program through the wh_journalpalyback hook Program
Separates user input messages
Wm_getminmaxinfo = & h0024;
This message is sent to the window when it is about to change the size or position;
Wm_painticon = & h0026;
Send to minimize window when its icon is to be repainted
Wm_iconerasebkgnd = & h0027;
This message is sent to a minimal window, only when its background must be re-painted before the icon is painted.
Wm_nextdlgctl = & h0028;
Send this message to a dialog box program to change the focus position
Wm_spoolerstatus = & h002a;
This message is sent every time a job is added or removed in the print management queue.
Wm_drawitem = & h002b;
Send a message when the visual appearance of Button, ComboBox, ListBox, and menu changes
This message is sent to the owner of these empty parts.
Wm_measureitem = & h002c;
When a button, combo box, list box, List View control, or menu item is created
Send this message to the control owner
Wm_deleteitem = & h002d;
When the list box or combo box is destroyed or some items are deleted, messages are sent through lb_deletestring, lb_resetcontent, cb_deletestring, or cb_resetcontent.
Wm_vkeytoitem = & h002e;
This message has an lbs_wantkeyboardinput style sent to its owner to respond to the wm_keydown message.
Wm_chartoitem = & h002f;
This message is sent to its owner by a list box in the lbs_wantkeyboardinput style to respond to the wm_char message.
Wm_setfont = & h0030;
When drawing text, the program sends this message to obtain the color used by the control.
Wm_getfont = & h0031;
Use the program to send this message to get the font of the text drawn by the current control
Wm_sethotkey = & h0032;
The application sends this message to connect a window to a hotkey.
Wm_gethotkey = & h0033;
The application sends this message to determine whether the hotkey is associated with a window.
Wm_querydragicon = & h0037;
This 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 = & h0039;
Send this message to determine the relative position of the newly added items in ComboBox or ListBox
Wm_getobject = & h003d;
Wm_compacting = & h0041;
The Display memory is very small.
Wm_windowposchanging = & h0046;
When the size and position of the window to which the message is sent are about to be changed, call the setwindowpos function or other window management functions.
Wm_windowposchanged = & h0047;
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 = & h0048; (applicable to 16-bit Windows)
This message is sent when the system is about to suspend
Wm_copydata = & h004a;
This message is sent when an application transmits data to another application.
Wm_canceljournal = & h004b;
When a user cancels the activation status of the program log, submit the message to the program
Wm_notify = & h004e;
When an event of a control has occurred or the control needs to obtain some information, send the message to its parent window.
Wm_inputlangchangerequest = & h0050;
When the user selects an input language or the hotkey of the input language changes
Wm_inputlangchange = & h0051;
Send this message to the affected top-level window when the platform site has been changed
Wm_tcard = & h0052;
This message is sent to the application when the program has initialized the Windows Help routine.
Wm_help = & h0053;
This message indicates that the user presses F1. If a menu is activated, the user sends the message to the menu associated with this window. Otherwise
Send to a window with focus. If there is no focus at present, send the message to the current active window.
Wm_userchanged = & h0054;
After a user has logged on or exited, the system sends this message to all windows. When the user logs on or exits, the system updates the user's details.
Setting information. The system sends the message immediately when the user updates the setting;
Wm_policyformat = & h0055;
Public controls, custom controls, and their parent Windows use this message to determine whether the controls use ANSI or Unicode structures.
In the wm_notify message, this control enables communication between a control and its parent control.
Wm_contextmenu = & h007b;
Right-click a user in a window and send the message to this window.
Wm_stylechanging = & h007c;
This message is sent to the window when the setwindowlong function is called to change the style of one or more windows.
Wm_stylechanged = & h007d;
This message is sent to the window when one or more window styles of the setwindowlong function are called.
Wm_displaychange = & h007e;
Send this message to all windows when the resolution of the monitor changes
Wm_geticon = & h007f;
This message is sent to a window to return the handle of the large icon or small icon associated with a window;
Wm_seticon = & h0080;
The program sends this message to associate a new large or small icon with a window;
Wm_nccreate = & h0081;
When a window is created for the first time, the message is sent before the wm_create message is sent;
Wm_ncdestroy = & h0082;
This message notifies a window that the non-customer zone is being destroyed.
Wm_nccalcsize = & h0083;
Send this message when the customer region of a window must be calculated
Wm_nchittest = & h0084; // move the mouse, hold down or release the mouse
Wm_ncpaint = & h0085;
The program sends this message to a window when its frame (window) must be drawn;
Wm_ncactivate = & h0086;
This message is sent to a window only when its non-customer zone needs to be changed to show whether it is active or not;
Wm_getdlgcode = & h0087;
Send this message to a control associated with the phone box program. The Widdows control orientation key and Tab key enable the input to enter this control.
By responding to the wm_getdlgcode message, the application can treat it as a special input control and process it.
Wm_ncmousemove = & h00a0;
When the cursor moves in a non-customer area of a window, the message is sent to this window. // The non-customer area is the title bar and window of the form.
Border body
Wm_nclbuttondown = & h00a1;
This message is submitted when you press the left mouse button in a non-customer area of a window.

Wm_nclbuttonup = & h00a2;
When the user releases the left mouse button and a window with the cursor sends the message in non-customer Zone 10;
Wm_nclbuttondblclk = & h00a3;
When you double-click the left mouse button, and the cursor in a window, send this message in non-customer Zone 10
Wm_ncrbuttondown = & h00a4;
This message is sent when you press the right mouse button and the cursor is in the non-customer area of the window.
Wm_ncrbuttonup = & h00a5;
This message is sent when the user releases the right mouse and the cursor is in a non-customer area of the window.
Wm_ncrbuttondblclk = & h00a6;
When you double-click and Right-click a window, the cursor will send the message in non-customer Zone 10.
Wm_ncmbuttondown = & h00a7;
This message is sent when you press the middle mouse button and the cursor is in a non-customer area of the window.
Wm_ncmbuttonup = & h00a8;
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 = & h00a9;
This message is sent when you double-click the middle mouse button and the cursor is in a non-customer area of the window.
Wm_keyfirst = & h0100;
Wm_keydown = & h0100;
// Press the next key
Wm_keyup = & h0101;
// Release a key
Wm_char = & h0102;
// Press a key and the wm_keydown and wm_keyup messages have been sent.
Wm_deadchar = & h0103;
Send this message to the window with focus when you use the translatemessage function to translate the wm_keyup message
Wm_syskeydown = & h0104;
When you press the Alt key and other keys, submit the message to the window with focus;
Wm_syskeyup = & h0105;
When you release a key and press the Alt key, submit the message to the window with focus
Wm_syschar = & h0106;
When the wm_syskeydown message is translated by the translatemessage function, submit the message to the window with focus
Wm_sysdeadchar = & h0107;
When the wm_syskeydown message is translated by the translatemessage function, this message is sent to the window with focus
Wm_keylast = & h0108;
Wm_initdialog = & h0110;
Send this message to a dialog box program before it is displayed. This message is usually used to initialize the control and execute other tasks.
Wm_command = & h0111;
When you select a menu command item or when a control sends a message to its parent window, a shortcut key is translated
Wm_syscommand = & h0112;
This message is received when you select a command in the window menu or when you choose to maximize or minimize it.
Wm_timer = & h0113; // a timer event occurs.
Wm_hscroll = & h0114;
When a standard horizontal scroll bar of a window generates a rolling event, this message is sent to that window and the control that owns it.
Wm_vscroll = & h0115;
When a standard vertical scroll bar of a window generates a rolling event, send this message to that window, and send it to the control wm_initmenu = & h0116;
This message is sent when a menu is to be activated. It occurs in a user menu bar or presses a menu key, which allows the program to change the menu before display.
Wm_initmenupopup = & h0117;
This message is sent when a drop-down menu or sub-menu is to be activated. It allows the program to change the menu before it is displayed, instead of changing all
Wm_menuselect = & h011f;
This message is sent to the menu owner (usually a window) when a menu item is selected)

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.