Home > Language Reference > Classes > Display

hWin Property

Returns the window handle.

Syntax

Public Property Get hWin() As Long

Remarks

The hWin property returns a window handle useable with the Palm OS® Window Manager functions. This property allows you to draw on a form or a bitmap from a shared library written in C.

When it is called for a control, this property returns a handle corresponding to the form on which the control is placed. Most times, you will use this property directly on the Form or Bitmap objects.

If you use the handle returned by this property to draw with the Palm OS® functions, you should first empty the graphics instruction buffer by calling the Flush method. If not, the order in which the instructions are carried out is not predictable.

For further information on shared libraries and the interface between HB++ and C shared libraries, refer to the Shared library chapter in the Programmer's Guide and the description of the Declare statement.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A