Sendmessage function wparame

Source: Internet
Author: User
Code Windows is a message-driven system, and sendmessage is one of the main means of message transmission between applications. Here I have collected detailed parameter descriptions of the sendmessage function for your use.

Constant Value of the wmsg parameter:
Wm_create create a window
Wm_destroy is sent when a window is damaged
Wm_move move a window
Wm_size changes the size of a window.
Wm_activate a window is activated or inactive
Wm_setfocus: one window obtains the focus
Wm_killfocus: A window loses focus.
Wm_enable a window changes to enable status
Wm_setredraw: Specifies whether the window can be repainted.
The wm_settet application sends this message to set the text of a window.
The wm_gettet application sends this message to copy the text of the corresponding window to the buffer zone.
Wm_gettetlength to get the length of the text related to a window (excluding empty characters)
Wm_paint requires a window to redraw itself
Wm_close send a signal when a window or application is closed
Wm_queryendsession: when the user selects the end dialog box or the program calls the eitwindows Function
Wm_quit is used to end the program running
Wm_queryopen send this message to an icon when the user window recovers the previous size position
WM_ERASEBKGND: when the window background must be erased (for example, when the window size changes)
WM_SYSCOLORCHANGE send this message to all top-level windows when the system color changes
WM_ENDSESSION when the system process sends the WM_QUERYENDSESSION message, the message is sent to the application to notify it of the end of the conversation.
WM_SHOWWINDOW: When a hidden or displayed window is used, this message is sent to this window.
WM_ACTIVATEAPP sends this message to the application, which window is activated and which is not activated.
WM_FONTCHANGE send this message to all top-level windows when the system's Font Resource Library changes
WM_TIMECHANGE send this message to all top-level windows when the system time changes
WM_CANCELMODE sends this message to cancel an ongoing touch (Operation)
WM_SETCURSOR 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 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 sends 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 this message is sent by a computer-based training program, and the user input message is separated by the WH_JOURNALPALYBACK hook program.
WM_GETMINMAINFO this message is sent to the window when it is about to change the size or position
WM_PAINTICON is sent to the minimization window when its icon is to be repainted
WM_ICONERASEBKGND this message is sent to a minimal window, and its background must be repainted only when it is before the icon is painted.
WM_NETDLGCTL sends this message to a dialog box program to change the focus position
WM_SPOOLERSTATUS this message is sent whenever a job is added or removed in the print management queue.
WM_DRAWITEM is sent when the visual appearance of button, combobo, listbo, and menu changes
WM_MEASUREITEM when button, combo bo, list bo, list view control, or menu item is created
WM_VKEYTOITEM this message has an LBS_WANTKEYBOARDINPUT style sent to its owner to respond to the WM_KEYDOWN message
WM_CHARTOITEM the message is sent to the owner by a list box in the LBS_WANTKEYBOARDINPUT style to respond to the WM_CHAR message.
WM_SETFONT when drawing text, the program sends this message to obtain the color used by the Control
The WM_GETFONT application sends this message to obtain the font of the text drawn by the current control.
The WM_SETHOTKEY application sends this message to connect a window to a hotkey.
The WM_GETHOTKEY application sends this message to determine whether the hotkey is associated with a window.
WM_QUERYDRAGICON the message is sent to the minimization 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 sends this message to determine the relative position of the newly added items in combobo or listbo.
WM_COMPACTING shows that the memory is very small
When WM_WINDOWPOSCHANGING sends this message to the window whose size and position will be changed, it calls the setwindowpos function or other window management functions.
When WM_WINDOWPOSCHANGED sends this message to the window whose size and position have been changed, it calls the setwindowpos function or other window management functions.
WM_POWER sends this message when the system is about to pause
WM_COPYDATA: This message is sent when an application transmits data to another application.
WM_CANCELJOURNA when a user cancels the activation status of the program log, submit the message to the program
WM_NOTIFY 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
WM_INPUTLANGCHANGE send this message to the affected top-level window when the platform site has been changed
WM_TCARD send this message to the application when the program has initialized the windows Help routine
WM_HELP indicates that the user presses F1. If a menu is activated, the user sends the message to the menu associated with this window; otherwise, the message is sent to the window with focus, if no focus exists, send the message to the active window.
WM_USERCHANGED: 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. When the user updates the settings, the system immediately sends this message.
Wm_policyformat public control. The custom control and its parent window use this message to determine whether the control uses the ANSI or UNICODE structure.
WM_CONTETMENU: Right-click a user in a window and send the message to this window.
WM_STYLECHANGING send this message to the window when the SETWINDOWLONG function is called to change the style of one or more windows
WM_STYLECHANGED: When the SETWINDOWLONG function is called for one or more windows, this message is sent to that window.
WM_DISPLAYCHANGE send this message to all windows after the display resolution changes
WM_GETICON the message is sent to a window to return the handle of a large icon or small icon associated with a window.
WM_SETICON program sends this message to associate a new large icon or small icon with a window
WM_NCCreate when a window is created for the first time, this message is sent before the WM_Create message is sent.
WM_NCDESTROY this message notifies a window where the non-customer zone is being destroyed
WM_NCCALCSIZE: send this message when the customer region of a window must be calculated
WM_NCHITTEST
The WM_NCPAINT program sends this message to a window when the frame of the window must be drawn.
WM_NCACTIVATE the 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 sends this message to a control associated with the dialog box program. The widdows control orientation key and TAB key enable the input to access this control through
WM_NCMOUSEMOVE send this message when the cursor moves in a non-customer area of a window to the non-customer area of the window: The title bar of the form and the border body of the window
WM_NCLBUTTONDOWN: this message is submitted when the cursor is in the non-customer area of a window and the left mouse button is pressed at the same time.
WM_NCLBUTTONUP
WM_NCLBUTTONDBLCLK: When you double-click the left mouse button and a window with the cursor sends this message in non-customer Zone 10
WM_NCRBUTTONDOWN: This message is sent when you right-click the user and the cursor is in a non-customer area of the window.
WM_NCRBUTTONUP: 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 when the user double-click the right mouse and the cursor in a window in non-customer Zone 10 to send this message
WM_NCMBUTTONDOWN: 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: 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: This message is sent when you double-click the key and move the cursor to a non-customer area in the window.
WM_KEYFIRST WM_KEYDOWN press the next key
WM_KEYUP releases a key
WM_CHAR: press a key and the WM_KEYDOWN and WM_KEYUP messages have been sent.
WM_DEADCHAR: send this message to the window with focus when you use the translatemessage function to translate the WM_KEYUP message
WM_SYSKEYDOWN when you press the ALT key and other keys, submit the message to the window with focus
WM_SYSKEYUP
WM_SYSCHAR when the WM_SYSKEYDOWN message is translated by the TRANSLATEMESSAGE function, the message is submitted to the window with focus
WM_SYSDEADCHAR when the WM_SYSKEYDOWN message is translated by the TRANSLATEMESSAGE function, this message is sent to the window with focus
WM_INITDIALOG sends the 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 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: When you select a command in the window menu or when you choose to maximize or minimize, the window will receive this message.
A timer event occurs in WM_TIMER.
WM_HSCROLL: 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: when a standard vertical scroll bar of a window generates a rolling event, this message is sent to that window and the control that owns it.
WM_INITMENU sends this message when a menu is to be activated. It occurs in a menu bar of the user or presses a menu key, which allows the program to change the menu before display.
WM_INITMENUPOPUP send this message 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: send this message to the menu owner when a menu item is selected (usually a window)
WM_MENUCHAR when the menu has been activated and the user presses a key (different from the acceleration Key), this message is sent to the menu owner
WM_ENTERIDLE sends this message to its owner when a modal dialog box or menu enters the no-load status, when a modal dialog box or menu enters the no-load status, it waits for no messages in the queue after processing one or more previous messages.
WM_CTLCOLORMSGBO sends the message to the owner window of the message box before drawing the message box in windows, in the owner window, you can set the text and background color of the message box by using the given handle of the display device.
WM_CTLCOLOREDIT: When an edit control is to be drawn, this message is sent to its parent window in response to this message, in the owner window, you can set the text and background color of the edit box by using the given handle of the display device.
WM_CTLCOLORLISTBO when a list box control is to be drawn, send this message to its parent window in response to this message, in the owner window, you can set the text and background colors of the list box by using the given handle of the display device.
WM_CTLCOLORBTN send this message to its parent window when a button control is to be drawn by responding to this message, in the owner window, you can set the text and background color of the button by using the handle of the specified display device.
WM_CTLCOLORDLG when a dialog box control sends this message to its parent window before being drawn, in the owner window, you can set the text background color of the dialog box by using the corresponding display device handle.
WM_CTLCOLORSCROLLBAR send this message when a scroll bar control is to be drawn to its parent window to respond to this message. The owner window can set the background color of the scroll bar by using the handle of the given display device.
WM_CTLCOLORSTATIC: When a static control is to be drawn, this message is sent to its parent window to respond to this message, in the owner window, you can set the text and background color of the static control by using the given handle of the display device.
WM_MOUSEFIRST occurs when the mouse is moved.
WM_MOUSEMOVE occurs when the mouse is moved.
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_LBUTTONDBLCLK double-click the left mouse button
WM_RBUTTONDOWN right-click
WM_RBUTTONUP right-click to release
WM_RBUTTONDBLCLK, right-click
WM_MBUTTONDOWN
WM_MBUTTONUP
WM_MBUTTONDBLCLK double-click
WM_MOUSEWHEEL: A control with focus is sent when the mouse wheel is turned.

 

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.