PC SOFT

WINDEV的在线文档

  • Constants defining the messages
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Sends a Windows message to a control or to a window. This message is sent directly: the current process is stopped as long as the message is not processed (locking function). 传递消息 is used to send a message without locking the application.

Note: This function calls the 发送消息 Windows API. It is used to perform low-level tasks on the controls and windows. To find out the meaning of each message (and its parameters), you must refer to the Windows API (WIN32).

Caution: The inappropriate use of this function can lead to very serious problems in your application and/or to malfunctions in the graphic interface.

例子
// Copy the content of an edit control into the clipboard
(Handle(EDT_EDIT1), WM_COPY, 0, 0)

// Trigger the opening of a popup menu on a button
发送消息句柄BTN_BUTTON1),WM_CONTEXTMENU句柄BTN_BUTTON1),-1

语法
<Result> = 发送消息(<hWnd> , <Windows Message> , <wParam> , <lParam>)
<Result>: Integer
The meaning of this parameter depends on the message sent.
<hWnd>: Integer
Handle of the control or window to which the message must be sent. This control or this window can be objects that do not belong to a WinDev application. The handle of a control or window can be calculated by 句柄 (for the WinDev objects) or 系统窗口句柄.
<Windows Message>: Integer or character string
Number or name of the Windows message to send. If a character string is used, RegisterWindowsMessage is automatically called to get the corresponding message number.
If this parameter corresponds to a character string, this string is case sensitive.
<wParam>: Integer
Parameter whose use depends on the type of message sent.
<lParam>: Integer
Parameter whose use depends on the type of message sent.

注意

Constants defining the messages

The constants that define the different possible messages are defined in the "WINCONST.WL" file available in the directory of (Personal\External sub-directory). To use this file in your applications, use the following code:
外部代码"WINCONST.wl"
发送消息句柄EDT_EDIT1),WM_MOUSEMOVE00

组件
WinDev wd200obj.dll