Private Declare Function BitBlt Lib "gdi32" _
(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 Private Sub cmdEnd_Click() End End Sub Private Sub Form_Load() Dim A As Long Dim s As Long frmMain.AutoRedraw = True frmMain.ScaleMode = 1 A = GetDesktopWindow() s = GetDC(A) BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, s, 0, 0, vbSrcCopy End Sub Private Declare Function BitBlt Lib "gdi32" _ (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 Private Sub cmdEnd_Click() End End Sub Private Sub Form_Load() Dim A As Long Dim s As Long frmMain.AutoRedraw = True frmMain.ScaleMode = 1 A = GetDesktopWindow() s = GetDC(A) BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, s, 0, 0, vbSrcCopy End Sub |