For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > May 2005 > wsprintf









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author wsprintf
vishal chauhan

2005-05-23, 8:58 am

i want to display certain lines of text using drawtext.
but is wsprintf i used \n to go to next row.

this \n is interpretaed as [] .

wsprintf(szOut,L"Message Sender \n %ls",(LPWSTR)g_szSenderTitle);
DrawText(hDC, szOut, -1, &rcPS, DT_SINGLELINE );

Please help me

riki

2005-05-23, 8:58 am

vishal chauhan wrote:
> i want to display certain lines of text using drawtext.
> but is wsprintf i used \n to go to next row.
>
> this \n is interpretaed as [] .
>
> wsprintf(szOut,L"Message Sender \n %ls",(LPWSTR)g_szSenderTitle);
> DrawText(hDC, szOut, -1, &rcPS, DT_SINGLELINE );
>
> Please help me
>


if you want it to draw over several lines, then remove DT_SINGLELINE,
and add DT_WORDBREAK. If you want it over one line without the
character, then you will need to remove it from the string before you
pass the string to DrawText()

riki


The quiet ones are the ones who change the world. The loud ones only
take the credit.
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com