Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: OT: nickname Pin
toxcct14-Oct-05 0:17
toxcct14-Oct-05 0:17 
GeneralRe: OT: nickname Pin
Eytukan14-Oct-05 0:25
Eytukan14-Oct-05 0:25 
GeneralRe: OT: nickname Pin
vikas amin14-Oct-05 2:15
vikas amin14-Oct-05 2:15 
GeneralRe: OT: nickname Pin
ThatsAlok14-Oct-05 2:21
ThatsAlok14-Oct-05 2:21 
GeneralRe: OT: nickname Pin
14-Oct-05 4:49
suss14-Oct-05 4:49 
QuestionLog Scale.... Pin
Raza568013-Oct-05 22:30
Raza568013-Oct-05 22:30 
AnswerRe: Log Scale.... Pin
Mircea Puiu13-Oct-05 22:39
Mircea Puiu13-Oct-05 22:39 
Questionhi,all, problems about drawtext. Pin
William.Wang13-Oct-05 21:54
William.Wang13-Oct-05 21:54 
hi,all. I have a string to draw, I only know the position the string textout and extention in horizon the string is bounded to, so I want to calculate its bounding box's height, I do it as this:

CRect rtBBox;
int iWidth = XXXXXXX; //Supose we know its value
CPoint ptPos = XXXXXX; //supose we know its value,too
rt.SetRect(ptPos.x,ptPos.y,ptPos.x + iWidth,ptPos);
pDC->DrawText(strText,rt,DT_EDITCONTROL|DT_WORDBREAK|DT_CALCRECT);
//rt: out from drawtext coz I set one flat DT_CALCRECT
pDC->DrawText(strText,rt,DT_EDITCONTROL|DT_WORDBREAK);

when the strText is not so many characters, then it works fine, but when character is too many, then its too slow.

now the question is:
how can I draw text like I do it in multiline edit control with good efficiency.

thanks, regards.




life is like a box of chocolate, you never know what you r going to get
AnswerRe: hi,all, problems about drawtext. Pin
William.Wang13-Oct-05 22:34
William.Wang13-Oct-05 22:34 
QuestionHow can I debug service program, Please help! Pin
chenxiujie13-Oct-05 21:47
chenxiujie13-Oct-05 21:47 
AnswerRe: How can I debug service program, Please help! Pin
Mircea Puiu13-Oct-05 22:47
Mircea Puiu13-Oct-05 22:47 
AnswerAnd also check the program settings Pin
Mircea Puiu13-Oct-05 22:52
Mircea Puiu13-Oct-05 22:52 
GeneralRe: And also check the program settings Pin
chenxiujie13-Oct-05 23:06
chenxiujie13-Oct-05 23:06 
GeneralRe: And also check the program settings Pin
Mircea Puiu13-Oct-05 23:23
Mircea Puiu13-Oct-05 23:23 
GeneralRe: And also check the program settings Pin
prasad_som13-Oct-05 23:46
prasad_som13-Oct-05 23:46 
GeneralRe: And also check the program settings Pin
chenxiujie14-Oct-05 0:25
chenxiujie14-Oct-05 0:25 
GeneralRe: And also check the program settings Pin
Nemanja Trifunovic14-Oct-05 6:05
Nemanja Trifunovic14-Oct-05 6:05 
QuestionRecieving Signals with IR-Port of Pocket PC Pin
Member 235885713-Oct-05 21:22
Member 235885713-Oct-05 21:22 
QuestionTest case for MultiByteToWideChar Pin
Chintoo72313-Oct-05 20:50
Chintoo72313-Oct-05 20:50 
AnswerRe: Test case for MultiByteToWideChar Pin
John R. Shaw14-Oct-05 23:03
John R. Shaw14-Oct-05 23:03 
QuestionHelp for NTGraph3D ATL/STL/OpenGL activeX control Pin
Member 235848813-Oct-05 20:40
Member 235848813-Oct-05 20:40 
QuestionHelp please Pin
Amit j Patil13-Oct-05 20:38
Amit j Patil13-Oct-05 20:38 
QuestionHow to display File Properties Dialog box in Visual C++? Pin
Honeyz Smiles13-Oct-05 19:06
Honeyz Smiles13-Oct-05 19:06 
AnswerRe: How to display File Properties Dialog box in Visual C++? Pin
prasad_som13-Oct-05 20:06
prasad_som13-Oct-05 20:06 
QuestionHow to do the convertion from other data type to unsigned *char Pin
LaHaHa13-Oct-05 17:28
LaHaHa13-Oct-05 17:28 

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.