Advertisement
name22

WinAPI BitBlt Desktop to GUI

Jan 4th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.36 KB | None | 0 0
  1. #include <WindowsConstants.au3>
  2. #include <WinAPI.au3>
  3.  
  4. $hWnd = GUICreate("Test", 400, 400)
  5. GUISetState()
  6.  
  7. $hDC_Window = _WinAPI_GetDC($hWnd)
  8. $hDC_Desktop = _WinAPI_GetDC(0)
  9.  
  10. _WinAPI_BitBlt($hDC_Window, 0, 0, 400, 400, $hDC_Desktop, 0, 0, $SRCCOPY)
  11.  
  12. While GUIGetMsg() <> -3
  13. WEnd
  14.  
  15. _WinAPI_ReleaseDC($hWnd, $hDC_Window)
  16. _WinAPI_ReleaseDC(0, $hDC_Desktop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement