Window Handle Property
Description
On Microsoft Windows, a window handle is a unique internal character constant that can be used to refer to objects. It is possible to obtain a window handle for any item or window.
Applies to form, block, item
Refer to Built-in
GET ITEM PROPERTY
GET WINDOW PROPERTY
GET RADIO BUTTON PROPERTY
NULL
Usage Notes
- Specify the name of the item and the WINDOW HANDLE property in GET ITEM
PROPERTY to obtain the window handle to an item.
- Specify the name of the window and the WINDOW HANDLE property in GET WINDOW
PROPERTY to obtain the window handle to a window. If the name of the window
of GET WINDOW PROPERTY is FORMS MDI WINDOW, the return value is a handle to
the MDI client window. The handle to a MDI client window is used to create
child MDI windows and controls.
- Specify the item name or item id of the radio group, the name of the radio
button, and the WINDOW HANDLE property in GET RADIO BUTTON PROPERTY to obtain
a window handle to a radio button.
- To obtain a window handle to a radio group, use the name of the radio group
as the item name in GET ITEM PROPERTY. A window handle to the button that
is in focus is returned. If no button is in focus, the window handle to the
button that is selected is returned. If neither a focused or selected button
exists, the window handle to the first button is returned.
Window Handle Restrictions
- Valid only on Microsoft Windows. (Returns NULL on other platforms.)