cs_Kelpan
Messages postés70Date d'inscriptionmercredi 24 avril 2002StatutMembreDernière intervention17 septembre 2006
-
14 juin 2003 à 04:17
cs_Kelpan
Messages postés70Date d'inscriptionmercredi 24 avril 2002StatutMembreDernière intervention17 septembre 2006
-
9 août 2003 à 00:18
Salut
je cherche déseperement le moyen de dessiner un rounded rectangle en pointillée grace à l'api roundrect.
Vous me dirait de mettre la propriété drawstyle de ma form à 2, mais cela ne me convient pqs car les points sont trop espacés (je sais je suis difficile).
Bref y a-t-il une API qui gère l'espacement des points
cs_Kelpan
Messages postés70Date d'inscriptionmercredi 24 avril 2002StatutMembreDernière intervention17 septembre 2006 14 juin 2003 à 16:11
j'ai enfin trouvé ouf !!!
merci de m'avoir mis sur la piste avec l'API createPen shareVB
En fait il faut definir son LOGBRUSH
et utiliser l'API extCreatePen
pour ceux ke ça interresse voici la soluce :
Private Declare Function ExtCreatePen Lib "gdi32" (ByVal dwPenStyle As Long, _
ByVal dwWidth As Long, _
lplb As LOGBRUSH, _
ByVal dwStyleCount As Long, _
lpStyle As Long) As Long
Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function CreateBrushIndirect Lib "gdi32" (lpLogBrush As LOGBRUSH) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, _
ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Type LOGBRUSH
lbStyle As Long
lbColor As Long
lbHatch As Long
End Type