begin process at 2008 07 06 17:33:31
1 205 682 membres
247 nouveaux aujourd'hui
14 119 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : affichage mfc [ Système / Autre ] (hakker)

affichage mfc le 28/02/2008 21:57:28

hakker
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!!!!!!!!!!!


nice working with u all guz!!


Re : affichage mfc le 29/02/2008 22:20:09

yann_lo_san
Réponse acceptée !

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

pDC->DrawText(_T("a string"),&rcDraw,DT_NOCLIP);

On the same way look at : ExtTextOut and TextOut


Classé sous : affichage, mfc, some, can, it

Participer à cet échange

Pub



Appels d'offres

Plugin Dialer outlook
Budget : 2 000€
Travail graphique- ill...
Budget : 1 000€
creation de marque et ...
Budget : 1 000€

CalendriCode

Juillet 2008
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Téléchargements

Logiciels à télécharger sur le même thème :

Boutique

Boutique de goodies CodeS-SourceS