Copyright © 1998-2010 MultiMedia Soft

hWnd property

Previous pageReturn to chapter overviewNext page


OLE_HANDLE for Visual C++

long for Visual Basic




object.hWnd [=long]




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.