| Код | '16-bit Declare Function GetDesktopWindow Lib "User" () As Integer Declare Function GetWindowDC Lib "User" (ByVal hWnd As Integer) As Integer Declare Function BitBlt Lib "GDI" (ByVal hDestDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer Global Const SRCCOPY = &HCC0020
'32-bit Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As Long Declare Function GetWindowDC Lib "user32" Alias "GetWindowDC" (ByVal hwnd As Long) As Long Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC 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 dwRop As Long) As Long Public Const SRCCOPY = &HCC0020
dim hdcDWnd as long hdcDWnd=GetWindowDC(GetDesktopWindow()) BitBlt Picture1.hdc,0,0,screen.width\screen.twipsperpixelx,screen.height\screen.twipsperpixely,hdcdwnd,0,0,srccopy
|
|