Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drawString 1

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
Please, this must be a simple one

CPaintDC dc(this);
dc.DrawText(strTime,CRect(0,0,100,110),DT_BOTTOM|DT_RIGHT);

Why does it write nothing?
dc.textOut works fine... but...
 
I think the problem is with your DC. CPaintDC for some strange reason do not draw the text.

Have you tried: (?)

CClientDC dc(this);

or

CDC* pDC=GetDC();

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Yes, that's it , thx. I've already checked color, map mode, font, but this is the right thing ;-) thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top