SendMessage参数大全(国外英文资料).doc
文本预览下载声明
SendMessage参数大全(国外英文资料)
Daqo SendMessage parameters
Windows is a message driven system, SendMessage messaging between applications and application is one of the main means, here I collect the SendMessage function parameter is introduced in detail, for personal use.
VFP statement:
DECLARE an INTEGER SendMessage IN user32;
The INTEGER hWnd,;
The INTEGER wMsg,;
The INTEGER wParam,;
The INTEGER lParam
Parameter 1: hWnd - window handle. A window can be any type of screen object.
Parameter 2: wMsg - used to distinguish the constant values of other messages.
Parameter 3: wParam - usually a constant value associated with the message, or a handle to a window or control.
Parameter 4: lParam - is usually a pointer to data in memory.
WMsg parameter constant values:
# DeFine WM_CREATE message handler 0 x01
Create a window
# DeFine WM_DESTROY 0 x02
Send when a window is broken
# DeFine WM_MOVE 0 x03
Move a window
# DeFine WM_SIZE 0 x05
Change the size of a window
# DeFine WM_ACTIVATE 0 x06
A window is activated or inactive
# DeFine WM_SETFOCUS 0 x07
A window gets the focus
# DeFine WM_KILLFOCUS 0 x08
A window loses focus
# DeFine WM_ENABLE 0 x0a
A window changes to Enable state
# DeFine WM_SETREDRAW 0 x0b
Set the window to see if you can redraw
# DeFine WM_SETTEXT 0 x0c
The application sends this message to set the text of a window
# DeFine WM_GETTEXT 0 x0d
The application sends this message to copy the text to the buffer that corresponds to the window
# DeFine WM_GETTEXTLENGTH 0 x0e
The length of the text associated with a window (not including empty characters)
# DeFine WM_PAINT 0 x0f
Ask a window to redraw itself
# DeFine WM_CLOSE 0 x10
Send a signal when a window or application is closed
# DeFine WM_QUERYENDSESSION 0 x11
When the user chooses to end the dialog or the program itself calls the ExitWindows function
# DeFine WM_QUIT 0 x12
To end the program run
# DeFine WM_QUERYOPEN 0 x13
This message is sent to an icon when the user window resumes the previous size location
# De
显示全部