Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
markkuk9-Dec-07 2:18
markkuk9-Dec-07 2:18 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas9-Dec-07 4:15
ashjas9-Dec-07 4:15 
Questionfind error Pin
keyto8-Dec-07 20:08
keyto8-Dec-07 20:08 
GeneralRe: find error Pin
David Crow14-Mar-08 6:00
David Crow14-Mar-08 6:00 
GeneralDialogBox question Pin
KellyR8-Dec-07 8:47
KellyR8-Dec-07 8:47 
GeneralRe: DialogBox question Pin
Mark Salsbery8-Dec-07 9:25
Mark Salsbery8-Dec-07 9:25 
GeneralRe: DialogBox question Pin
KellyR8-Dec-07 9:37
KellyR8-Dec-07 9:37 
GeneralGDI+ trailing spaces and newline Pin
bob169728-Dec-07 5:59
bob169728-Dec-07 5:59 
I found the default wrapping behavior by Graphics::DrawString to be incompatible with the wrapping behavior of some legacy apps and it was impossible to achieve some other required functionality without resorting to handling the wrapping manually.

With that said, I am having a rough time with the fact that GDI+ insists on measuring the '\n' character during output. This makes paragraph output, centered aligned, come out a bit off. I can remove the StringFormatFlagsMeasureTrailingSpaces flag but then any trailing spaces do not get measured. This is a word processor so text selection measurements must match the text output for text selection feedback.

Is there a way, without drawing each line individually, to somehow get GDI+ to ignore the '\n' character in measurements and when calculating center alignment but to still wrap on them? Is there another "newline" character that gets measured with a zero width?
GeneralWindow Styles Pin
Giorgi Dalakishvili8-Dec-07 4:32
mentorGiorgi Dalakishvili8-Dec-07 4:32 
GeneralRe: Window Styles Pin
Mark Salsbery8-Dec-07 6:23
Mark Salsbery8-Dec-07 6:23 
QuestionC++ resource file Pin
Somaiia7-Dec-07 21:44
Somaiia7-Dec-07 21:44 
GeneralRe: C++ resource file Pin
Mark Salsbery8-Dec-07 6:30
Mark Salsbery8-Dec-07 6:30 
QuestionDoes vs2008 support source control? How can vss for vc6 migrate to vs2008? Pin
followait7-Dec-07 16:34
followait7-Dec-07 16:34 
AnswerRe: Does vs2008 support source control? How can vss for vc6 migrate to vs2008? Pin
Christian Graus7-Dec-07 17:57
protectorChristian Graus7-Dec-07 17:57 
GeneralGetItemRect(iItem,&rt,LVIR_ICON), the result in rt is not accurate Pin
followait7-Dec-07 16:22
followait7-Dec-07 16:22 
Generaltellp, tellg, seekp, seekg Pin
clint19827-Dec-07 15:24
clint19827-Dec-07 15:24 
QuestionRe: tellp, tellg, seekp, seekg Pin
David Crow7-Dec-07 16:43
David Crow7-Dec-07 16:43 
QuestionRe: tellp, tellg, seekp, seekg Pin
clint19827-Dec-07 22:18
clint19827-Dec-07 22:18 
QuestionRe: tellp, tellg, seekp, seekg Pin
CPallini8-Dec-07 11:00
mveCPallini8-Dec-07 11:00 
QuestionWhich Mouse? Pin
RobertE7-Dec-07 12:55
RobertE7-Dec-07 12:55 
GeneralRe: Which Mouse? Pin
Anthony Mushrow7-Dec-07 14:56
professionalAnthony Mushrow7-Dec-07 14:56 
GeneralRe: Which Mouse? Pin
Mike Dimmick7-Dec-07 16:11
Mike Dimmick7-Dec-07 16:11 
GeneralRe: Which Mouse? Pin
Storm-blade8-Dec-07 10:45
professionalStorm-blade8-Dec-07 10:45 
QuestionRe: Which Mouse? Pin
RobertE9-Dec-07 8:17
RobertE9-Dec-07 8:17 
GeneralKnowing when user deletes a file with CFileDialog Pin
Henri7-Dec-07 7:55
Henri7-Dec-07 7:55 

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.