PC SOFT

WINDEV的在线文档

文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Returns the system handle (HWND) of a WinDev control or window. This allows you to call some API functions with this parameters (with API or 调用DLL32, 发送消息 or 传递消息).

This "Handle" is rarely used with the WLangage functions.

例子
// Copy the content of an edit control into the clipboard
发送消息句柄EDT_EDIT1),WM_COPY00

WinDev用户代码(MCU)
// Immediately refresh the drawing of CONTROL1
hwnd整数型句柄CONTROL1
调用DLL32"USER32""UpdateWindow"hwnd

语法

Retrieving the handle of a control or window 隐藏详细信息

<Result> = 句柄([<Object Name>])
<Result>: Pointer
Requested handle.
<Object Name>: Optional character string (with or without quotes)
Name of the control or window. If this parameter is not specified, 句柄 is using the current window. If this parameter corresponds to a table column, the handle of its edit control will be returned (NULL if the column is not in edit).

Retrieving the handle of a specific element in a control 隐藏详细信息

<Result> = 句柄([<Object Name>,] <Type of Object>)
<Result>: Integer
Requested handle.
<Object Name>: Optional character string (with or without quotes)
Name of the control.
<Type of Object>: Integer constant
Element of the combo box whose handle is requested.
水平滚动条句柄Returns the handle of the horizontal scrollbar of the control.
垂直滚动条句柄Returns the handle of the vertical scrollbar of the control.
句柄.组合框列表Returns the handle of the drop-down list associated with a combo box (the control must be a Combo Box control).
句柄.输入框组合框Returns the handle of the edit control associated with a combo box (the control must be a Combo Box control).

组件
WinDev wd200obj.dll