Recupere le hdc d'une picturebox????

cs_zoreol Messages postés 10 Date d'inscription lundi 17 mars 2003 Statut Membre Dernière intervention 23 avril 2003 - 23 avril 2003 à 14:40
cs_zoreol Messages postés 10 Date d'inscription lundi 17 mars 2003 Statut Membre Dernière intervention 23 avril 2003 - 23 avril 2003 à 15:28
je cherche a recupere par une methode c++ un hdc qui est sur un form mais G essayer function recuphdc (hdc m_hdc)
et sous visual truc.recuphdc(pic.hdc) et sa marche pas !!!!!!

2 réponses

cs_xavier77 Messages postés 95 Date d'inscription jeudi 27 décembre 2001 Statut Membre Dernière intervention 17 avril 2013
23 avril 2003 à 15:17
En VB, il faut utiliser l'API : GetDC
Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long

La variable passée en paramètre hwnd correspond au Handel de ta Form (TaForm.hwnd)

@+
0
cs_zoreol Messages postés 10 Date d'inscription lundi 17 mars 2003 Statut Membre Dernière intervention 23 avril 2003
23 avril 2003 à 15:28
je vois pas trop se ke tu me dis tu peu etre plus explicit?
0
Rejoignez-nous