Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: programing Pin
Alain Rist19-Oct-10 14:38
Alain Rist19-Oct-10 14:38 
GeneralRe: programing Pin
David Crow19-Oct-10 15:26
David Crow19-Oct-10 15:26 
GeneralRe: programing Pin
CPallini19-Oct-10 21:06
mveCPallini19-Oct-10 21:06 
GeneralRe: programing Pin
CPallini19-Oct-10 21:09
mveCPallini19-Oct-10 21:09 
GeneralRe: programing Pin
Kushagra Tiwari19-Oct-10 21:45
Kushagra Tiwari19-Oct-10 21:45 
QuestionHow to set value of a variable during dubugging in visual studio 2005 Pin
ptr_Electron19-Oct-10 4:29
ptr_Electron19-Oct-10 4:29 
AnswerRe: How to set value of a variable during dubugging in visual studio 2005 Pin
Richard MacCutchan19-Oct-10 4:42
mveRichard MacCutchan19-Oct-10 4:42 
QuestionText getting truncated Pin
vikram attiganal19-Oct-10 0:21
vikram attiganal19-Oct-10 0:21 
Hello,

I am finding an issue where in I have a Text which is longer than a single line with no spaces. This text is not displayed completely in the tool tip. It gets truncated.

I make use of CDC for the tooltip display rectangle,

CDC* pDC = GetDC();
CRect rect(0, 0, 0, 0);
CString sComment = "this is a comment bigggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg comment 2 2 2";
pDC->DrawText(sComment, &rect, DT_CALCRECT | DT_LEFT | DT_WORDBREAK | DT_NOPREFIX | DT_TOP);
int iheight = rect.Height(); // It wont return the correct rectangle height

//Output is
this is a comment biggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

Can anyone tell me what the issue is.


Thank you,
~ Vikram
QuestionRe: Text getting truncated Pin
CPallini19-Oct-10 0:34
mveCPallini19-Oct-10 0:34 
AnswerRe: Text getting truncated Pin
vikram attiganal19-Oct-10 0:46
vikram attiganal19-Oct-10 0:46 
QuestionRe: Text getting truncated Pin
CPallini19-Oct-10 2:12
mveCPallini19-Oct-10 2:12 
AnswerRe: Text getting truncated Pin
Richard MacCutchan19-Oct-10 0:38
mveRichard MacCutchan19-Oct-10 0:38 
GeneralRe: Text getting truncated Pin
Maximilien19-Oct-10 3:41
Maximilien19-Oct-10 3:41 
GeneralRe: Text getting truncated Pin
Richard MacCutchan19-Oct-10 4:31
mveRichard MacCutchan19-Oct-10 4:31 
JokeRe: Text getting truncated Pin
Sauro Viti19-Oct-10 5:05
professionalSauro Viti19-Oct-10 5:05 
JokeRe: Text getting truncated Pin
Code-o-mat19-Oct-10 5:58
Code-o-mat19-Oct-10 5:58 
JokeRe: Text getting truncated Pin
bleedingfingers20-Oct-10 1:18
bleedingfingers20-Oct-10 1:18 
GeneralRe: Text getting truncated Pin
Richard MacCutchan20-Oct-10 1:29
mveRichard MacCutchan20-Oct-10 1:29 
QuestionWhat characters are not valid and not supported in URL? Pin
Le@rner19-Oct-10 0:15
Le@rner19-Oct-10 0:15 
AnswerRe: What characters are not valid and not supported in URL? PinPopular
Richard MacCutchan19-Oct-10 0:33
mveRichard MacCutchan19-Oct-10 0:33 
QuestionProblem while displaying "Greek" and "Russian" Strings Pin
msr_codeproject18-Oct-10 23:31
msr_codeproject18-Oct-10 23:31 
AnswerRe: Problem while displaying "Greek" and "Russian" Strings Pin
Sauro Viti18-Oct-10 23:43
professionalSauro Viti18-Oct-10 23:43 
GeneralRe: Problem while displaying "Greek" and "Russian" Strings Pin
msr_codeproject18-Oct-10 23:52
msr_codeproject18-Oct-10 23:52 
AnswerRe: Problem while displaying "Greek" and "Russian" Strings Pin
Richard MacCutchan19-Oct-10 4:48
mveRichard MacCutchan19-Oct-10 4:48 
GeneralRe: Problem while displaying "Greek" and "Russian" Strings Pin
msr_codeproject19-Oct-10 19:01
msr_codeproject19-Oct-10 19:01 

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.