ObjectDCL Banner

Form_GetHwnd Method

Description

This method will return the Hwnd value of the dialog box. This may be required by an ActiveX control.

Parameters

MyDialogReference
Reference to the dialog.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.

Return Values

Returns the following according to the situation:

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_Form_GetHwnd 
		MyDialogReference [as Reference])

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_Form_GetHwnd
		ProjectFile [as String]
		DialogName [as String])

Applies For

ConfigTab, Dockable, Modal, Modeless.

Example

CopyCode imageCopy Code
; Get the window handle (HWND)
(Setq rValue (Odcl_Form_GetHwnd MyProject_MyForm))

See Also

Form_GetControlArea, Form_GetRectangle, Form_GetTitleBarText