GETCONTROLHANDLE

Top  Previous  Next

Syntax

handle = GETCONTROLHANDLE(win as WINDOW,id as INT)

Description

Returns the windows handle (HWND) of a control in a dialog or window..

Parameters

win - Window or dialog containing control.

id - Identifier of the control.

 

Return value

The windows handle of the control.

Remarks

Controls located in a dialog don't exist until DOMODAL or SHOWDIALOG is called. To retrieve the handle of a control located in a dialog use GETCONTROLHANDLE in response to the @IDINITDIALOG message

See Also: CONTROL, CONTROLEX

Example usage

hProgress = GETCONTROLHANDLE(d1, 20)