Salesforce

CtrlHWND (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

CtrlHWND (Magic xpa 2.x)

Provides the window handle of a control. You can use this handle as a reference in a .NET library using the FromHandle() function to determine the look and behavior of the control or to get additional information about the control's styles or content.

Syntax:

CtrlHWND(control name)

Parameters:

control name – as specified in the Form Editor

Returns:

The window handle as a long numeric value of 4 bytes. This value can be passed by value either to an external function or a user-defined procedure (UDP).

Example:

CtrlHWND('Olecontrol') where Olecontrol is the name of a control on the form, and returns the control's window handle.

Platform specific:

This function is not supported for mobile devices.

See also:

WinHWND

The Online and Rich Client Samples projects (program IF05 and RIF05)

Reference
Attachment 
Attachment