Copyright © 1998-2015 MultiMedia Soft

hWnd property

Previous pageReturn to chapter overviewNext page

Type

OLE_HANDLE for Visual C++

long for Visual Basic

 

 

Syntax

object.hWnd [=long]

 

 

Remarks

Returns the control window handle.

The Microsoft Windows operating environment identifies each window, form and control in an application by assigning it a handle, or hWnd. The hWnd property is used with Windows API calls. Many Windows operating environment functions require the hWnd of the active window as an argument.

Notes: Because the value of this property can change while a program is running, never store the hWnd value in a variable.