Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ZoomScreen 2.0 - Module1.bas

Module1.bas

Caricato da: Antometal
Scarica il programma completo

  1. Attribute VB_Name = "Module1"
  2. Option Explicit
  3.  
  4. Public Type tagInitCommonControlsEx
  5.    lngSize As Long
  6.    lngICC As Long
  7. End Type
  8. Public Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
  9. Public Const ICC_USEREX_CLASSES = &H200
  10.  
  11. Public Declare Function GetCursorPos Lib "user32" (lpPoint As Pointapi) As Long
  12. Public Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
  13. Public Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
  14. Public Declare Function StretchBlt Lib "GDI32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
  15.  
  16. Public Type Pointapi
  17. x As Long
  18. y As Long
  19. End Type
  20.  
  21. Public DC As Long
  22.  
  23. Public Sub Main()
  24. On Error Resume Next
  25. Dim iccex As tagInitCommonControlsEx
  26. With iccex
  27.     .lngSize = LenB(iccex)
  28.     .lngICC = ICC_USEREX_CLASSES
  29. End With
  30. InitCommonControlsEx iccex
  31. On Error GoTo 0
  32. frmZoomScreen.Show
  33. End Sub