Object Reference > TDBDropDown Properties > hWnd Property (TDBDropDown) |
Returns the window handle of the grid.
object.hWnd
Read-only at run time. Not available at design time.
The hWnd property returns the unique window handle assigned to a TDBGrid or TDBDropDown control by the Microsoft Windows operating environment. Experienced users can pass the value of this property to Windows API calls that require a valid window handle.
Note
Since the value of this property can change while a program is running, never store the hWnd value in a variable.