Click here to Skip to main content

C / C++ / MFC

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Difference between MFC and windows form application Pinmvpled mike8:44 2 Dec '08  
AnswerRe: Difference between MFC and windows form application PinmemberAlan Balkany4:46 3 Dec '08  
QuestionCompiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberCarolLamoreaux8:02 2 Dec '08  
AnswerRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberStuart Dootson8:30 2 Dec '08  
GeneralRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 [modified] PinmemberCarolLamoreaux8:48 2 Dec '08  
GeneralRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberStuart Dootson20:53 2 Dec '08  
Questiontext wrapping for a custom ctreectrl (mfc) Pinmemberkitkat120128:01 2 Dec '08  
i have a custom treectrl derived from mfc's ctreectrl
 
i'm using custom draw to modify it's layout (colors, fonts, etc..). i'm only drawing the text part because i dont wanna go into drawing and coding the other tree stuff like the open/close buttons and stuff
 

the last thing i need to do is to add text wrapping. when the text is too long to display, i need it to wrap to the next line instead of being truncated (adding elipsis)
 
i've been searching for a while and i still couldn't find a way to solve this
 

i can do the text wrapping part easily using cdc and drawtext, my only problem is the item's "row height". it looks like it is set to accommodate only one line of text per item row. a 2nd line would paint, but it would get overwritten by the next item row.
 

any suggestions? thanks
AnswerRe: text wrapping for a custom ctreectrl (mfc) PinmemberCode-o-mat8:09 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pinmemberkitkat120128:30 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) PinmemberCode-o-mat8:55 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pinmemberkitkat1201210:51 2 Dec '08  
QuestionPlease consider the following C Program PinmemberBobInNJ7:42 2 Dec '08  
AnswerRe: Please consider the following C Program Pinmvptoxcct7:51 2 Dec '08  
AnswerRe: Please consider the following C Program PinmemberCode-o-mat7:55 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct8:05 2 Dec '08  
GeneralRe: Please consider the following C Program PinmemberCode-o-mat8:17 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct8:19 2 Dec '08  
GeneralRe: Please consider the following C Program PinmvpCPallini9:22 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct9:25 2 Dec '08  
GeneralRe: Please consider the following C Program PinmvpCPallini9:29 2 Dec '08  
AnswerRe: Please consider the following C Program PinmvpDavidCrow8:04 2 Dec '08  
AnswerRe: Please consider the following C Program PinmvpCPallini9:08 2 Dec '08  
AnswerRe: Please consider the following C Program PinmemberTimothy Baldwin12:23 2 Dec '08  
Questionwhy it is so.. PinmemberBisua4:37 2 Dec '08  
AnswerRe: why it is so.. PinmemberCode-o-mat4:53 2 Dec '08  

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

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


Advertise | Privacy | Mobile
Web02 | 2.5.120604.1 | Last Updated 4 Jun 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid