windows消息常量(Windows message constant)Windows message constant
It is declared in the Windows unit:
Type
TMsg = packed record
Hwnd: HWND; / / window handle
Message: UINT; / / message constant identifier
WParam: WPARAM; / / additional information specific message 32
LParam: LPARAM; / / additional information specific message 32
Time: DWORD; / / message creation time
Pt: TPoint; / / message creation mouse position
End;
HWnd 32 bit window handle. The window can be any type of screen object, because Win32 can maintain the handle of most visual objects (windows, dialog boxes, buttons, edit boxes, etc.).
Message is used to distinguish constant values from other messages. These constants can be predefined constants in a Windows cell, or they can be custom constants.
WParam is usually a constant value associated with a message, and may be a handle to a window or a control.
LParam is usually a pointer to data in memory. Because W P a r a m, l P a r a m and P o i n t e r are 32 bits,
Therefore, they can be transformed from each other.
WM_NULL = &H0000;
WM_Create = &H0001;
The application creates a window
WM_DESTROY = &H0002;
A window was destroyed
WM_MOVE = &H0003;
Move a window
WM_SIZE = &H0005;
Change the size of a window
WM_ACTIVATE = &H0006;
A window is activated or is not active;
WM_SETFOCUS = &H0007;
After focus
WM_KILLFOCUS = &H0008;
Lose focus
WM_ENABLE = &H000A;
Change the enable state
WM_SETREDRAW = &H000B;
If you can set the window redraw
WM_SETTEXT = &H000C;
The application sends this message to set the text of a window
WM_GETTEXT = &H000D;
The application sends the message to copy the text from the corresponding window to the buffer
WM_GETTEXTLENGTH = &H000E;
Gets the length of a text related to a window (excluding null characters)
WM_PAINT = &H000F;
A window redraw itself
WM_CLOSE = &H0010;
Send a signal when a window or application closes
WM_QUERYENDSESSION = &H0011;
When the user selects the end dialog or the program calls the ExitWindows function itself
WM_QUIT = &H0012;
Used to end the program or when the program calls the postquitmessage function
WM_QUERYOPEN = &H0013;
When the user window restores the previous size position, send the message to an icon
WM_ERASEBKGND = &H0014;
When the window background must be erased (for example, the window changes large)
WM_SYSCOLORCHANGE = &H0015;
When the system color changes, send this message to all
top-level windows
WM_ENDSESSION = &H0016;
When the system process sends WM_QUERYENDSESSION messages, the message is sent to the application,
Tell it if the conversation is over
WM_SYSTEMERROR = &H0017;
WM_SHOWWINDOW = &H0018;
When hiding or displaying a window is sending this message to this window
WM_ACTIVATEAPP = &H001C;
Send this message to the application which window is activated and which is not activated;
WM_FONTCHANGE = &H001D;
When the font library of the system changes, this message is sent to all top-level windows
WM_TIMECHANGE = &H001E;
This message is sent to all top-level windows when the system changes
unicode keyboard download
WM_CANCELMODE = &H001F;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。