hakker
Messages postés23Date d'inscriptionvendredi 15 février 2008StatutMembreDernière intervention20 février 2010
-
28 févr. 2008 à 21:57
yann_lo_san
Messages postés1137Date d'inscriptionlundi 17 novembre 2003StatutMembreDernière intervention23 janvier 2016
-
29 févr. 2008 à 22:20
hello i have some trouble in "l'affichage en mfc" everytime i try C...View::onDraw ()
some mistakes shows up incompiling
and i cant find a way to fix it!
can somebody would plz tell me how can we use DrawText() function ! i dont understund it's parametre!!
plz help me!!!!!!!!!!!
yann_lo_san
Messages postés1137Date d'inscriptionlundi 17 novembre 2003StatutMembreDernière intervention23 janvier 201626 29 févr. 2008 à 22:20
CYourClassView::OnDraw(CDC* pDC) give you a 'device context' for painting all existing graphics object like pen, brush, bitmap ect...
pDC is the access to the device.
For drawing text, just pass a string , a reference to a rect and one format.
// Zone to paint text in client window
RECT rcDraw;
::SetRect(&rcDraw, 5, 5, 100, 40);
// draw text with no clip