CONTROL HANDLE statement

Purpose

Return a window handle for the specified control ID.

Syntax

CONTROL HANDLE hDlg, id& TO hCtl&

Remarks

hDlg refers to the dialog that owns the control. id& is the unique control identifier as assigned to the control with a CONTROL ADD statement.

The returned value is a window handle for the control, assigned by Windows when the control was initially created, uniquely identifying the control from all other controls. Some API functions require a window handle value rather than a control ID value.

See also

Dynamic Dialog Tools, CONTROL SEND