Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drag and drop Pin
Brian Delahunty5-Oct-02 4:45
Brian Delahunty5-Oct-02 4:45 
GeneralRe: Drag and drop Pin
alex.barylski14-Oct-02 20:22
alex.barylski14-Oct-02 20:22 
GeneralDrawText question Pin
alex.barylski4-Oct-02 14:57
alex.barylski4-Oct-02 14:57 
GeneralRe: DrawText question Pin
perlmunger4-Oct-02 15:03
perlmunger4-Oct-02 15:03 
GeneralRe: DrawText question Pin
alex.barylski4-Oct-02 15:15
alex.barylski4-Oct-02 15:15 
GeneralRe: DrawText question Pin
perlmunger4-Oct-02 15:54
perlmunger4-Oct-02 15:54 
GeneralRe: DrawText question Pin
alex.barylski14-Oct-02 20:09
alex.barylski14-Oct-02 20:09 
GeneralRe: DrawText question Pin
Shog94-Oct-02 16:19
sitebuilderShog94-Oct-02 16:19 
Hockey wrote:
using DrawText() is there any way to get the newlines to NOT render as vertical bars with DT_SINGLELINE specified...?

DT_SINGLELINE causes the renderer to ignore newlines completely; vertical bars just happens to be the placeholder for them in your font. Unfortunately, your only solutions are to either render the string yourself, stripping newlines as you go, or to strip them out (or replace them with spaces or something) before passing the string into DrawText(). As perlmunger stated, CString::Replace() is prolly your best bet...

Shog9
------
Crazy lady with the shiny shoes, where are you?
Kick your feet and calm the space that makes you hollow

Live, Insomnia And The Hole In The Universe

GeneralRe: DrawText question Pin
alex.barylski14-Oct-02 20:11
alex.barylski14-Oct-02 20:11 
GeneralpDoc and push_back problem Pin
nss4-Oct-02 14:55
nss4-Oct-02 14:55 
GeneralRe: pDoc and push_back problem Pin
perlmunger4-Oct-02 15:09
perlmunger4-Oct-02 15:09 
GeneralRe: pDoc and push_back problem Pin
nss4-Oct-02 15:15
nss4-Oct-02 15:15 
GeneralRe: pDoc and push_back problem Pin
perlmunger4-Oct-02 16:10
perlmunger4-Oct-02 16:10 
GeneralRe: pDoc and push_back problem Pin
nss4-Oct-02 17:13
nss4-Oct-02 17:13 
GeneralRe: pDoc and push_back problem Pin
Neville Franks4-Oct-02 22:49
Neville Franks4-Oct-02 22:49 
GeneralRe: pDoc and push_back problem Pin
nss5-Oct-02 1:24
nss5-Oct-02 1:24 
GeneralUsing a BHO to Insert Menu Into IE Pin
perlmunger4-Oct-02 14:48
perlmunger4-Oct-02 14:48 
Generala very weird problem regarding globals... Pin
nss4-Oct-02 14:47
nss4-Oct-02 14:47 
Generalmediaplayer Pin
moloko4-Oct-02 14:30
moloko4-Oct-02 14:30 
GeneralRe: mediaplayer Pin
Shog94-Oct-02 16:24
sitebuilderShog94-Oct-02 16:24 
GeneralHmmm...Error ! Pin
Nick Parker4-Oct-02 12:34
protectorNick Parker4-Oct-02 12:34 
GeneralRe: Hmmm...Error ! Pin
Joshua Nussbaum4-Oct-02 13:19
Joshua Nussbaum4-Oct-02 13:19 
GeneralRe: Hmmm...Error ! Pin
Nick Parker4-Oct-02 13:33
protectorNick Parker4-Oct-02 13:33 
Generalration button Pin
Michael Liu4-Oct-02 12:07
Michael Liu4-Oct-02 12:07 
GeneralRe: ration button Pin
Dimitri Rochette4-Oct-02 12:36
Dimitri Rochette4-Oct-02 12:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.