- 1、本文档共28页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SendMessage参数大全(国外英文资料)
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
文档评论(0)