GetScreenHandle
hWnd = GetScreenHandle()
 
Parameters: NONE
Returns:

    hWnd = Returns the windows handle of the PlayBASIC screen
 

      The GetScreenHandle() function returns the Windows handle of the PlayBASIC screen.

      This command is useful when dealing with Windows DLL's that require the PlayBASIC windows handle to function (hWnd).




FACTS:


      * This command only works in windowed mode.




Mini Tutorial:


      Reads and displays the windows handle value of the PlayBASIC screen.


  
; Display the current windows handle.
  Print "Windows Handle:"+Str$(GetScreenHandle())
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  


Example output. (Result will differ each time the example runs)

  
  Windows Handle:722940
  

 
Related Info: GetScreenType | LinkDll | LoadDll | OpenScreen :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com