GefScreen.HWND (read-only property)

Gets the window handle.
Syntax: long = object.HWND
Description: Gets the window handle.

Example:

Declare Function SetWindowPos Lib "user32" _
   (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, _
    ByVal x As Long, ByVal y As Long, ByVal cx As Long, _
    ByVal cy As Long, ByVal wFlags As Long) As Long
' SetWindowPos Flags
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
' SetWindowPos() hwndInsertAfter values
Const HWND_TOPMOST = -1
 
Sub GefScreen_HWND()
    
    Dim oCimScr As GefScreen
    Set oCimScr = CimGetScreen
    ret = SetWindowPos(oCimScr.hwnd, HWND_TOPMOST, _
       0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
    
End Sub