Navigation:  thinBasic Modules > UI (User Interface) > DIALOGSs >

Dialog_GetControl

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the control ID in the specified dialog box giving the control handle. It is useful in message pump to identify which control has fired an event.

 

Syntax

 

ctrlID = DIALOG_GetControl(hwnd, ctrlHandle)

 

Returns

 

Numeric

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlHandle

Number

No

The windows control identifier.

Usually returned by windows message pump as lParam or wParam

 

Remarks

 

Restrictions

 

See also

 

Examples