Dim mWnd As Long
'launch notepad
Shell "notepad.exe", vbNormalNoFocus
DoEvents
'set the graphics mode
to persistent
Me.AutoRedraw = True
'search the handle of the
notepad window
mWnd = FindWindow("Notepad", vbNullString)
If mWnd = 0 Then
Me.Print "NotePad window not
found!"
Else
'draw the image of the notepad window on our
form
PrintWindow mWnd, Me.hDC, 0
End If
End Sub
<hr size="2" width="100%" />
Prenez un instant pour répondre à [sujet-SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
wtor
Messages postés59Date d'inscriptiondimanche 23 novembre 2003StatutMembreDernière intervention18 mars 2011 26 sept. 2008 à 03:27
Merci PCPT pour ta réponse mais si la fenêtre est réduite l’image affichée est complètement noire ça veut dire que l’API ne peut pas capturer l’image de la forme, si tu a une solution pour capturer la totalité de l’image je suis preneur