Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCFileDialog and Vista + Win7 problem! Pin
Arrin12-Nov-09 1:01
Arrin12-Nov-09 1:01 
AnswerRe: CFileDialog and Vista + Win7 problem! Pin
Maximilien12-Nov-09 2:50
Maximilien12-Nov-09 2:50 
GeneralRe: CFileDialog and Vista + Win7 problem! Pin
Arrin12-Nov-09 3:58
Arrin12-Nov-09 3:58 
GeneralRe: CFileDialog and Vista + Win7 problem! Pin
Arrin12-Nov-09 21:17
Arrin12-Nov-09 21:17 
QuestionCScrollBar() in View Pin
Anu_Bala12-Nov-09 0:07
Anu_Bala12-Nov-09 0:07 
AnswerRe: CScrollBar() in View Pin
Hadi Dayvary12-Nov-09 2:02
professionalHadi Dayvary12-Nov-09 2:02 
AnswerRe: CScrollBar() in View Pin
Rajesh_Pa11-Jun-10 23:14
Rajesh_Pa11-Jun-10 23:14 
Question.DrawText makes my app laggy/sluggish (MFC C++) Pin
karhong11-Nov-09 22:10
karhong11-Nov-09 22:10 
Hi,

I've search throughout the net, cant find any solution. Hope someone able to help me.

My apps had a panel which can draw many rect. The app can be moved by draggin left/right using mouse. Whenever i moved the panel, it'll try to move all the rectangle to top/bottom/left/right following the mouse motion. When the mouse move, it will force the rectangle to be redraw. My app become laggy whenever i use .DrawText to a multiple line of text inside the rectangle.

I have around 80++ rect which used .DrawText to display the text on each rect.

I've tested, if the text is only 1 short words without /r/n (one line), then it will display nicely without laggy.
eg:

Alice

But if the text is in multiline (about 4~5 lines) i tried to run .DrawText, it makes my apps lagg.
eg:

Alice
in
wonderland

Any idea ??

The command i used :

dc.DrawText(strDraw, rcText, DT_LEFT | DT_WORD_ELLIPSIS);


Regards,
KH

good

AnswerRe: .DrawText makes my app laggy/sluggish (MFC C++) Pin
CPallini11-Nov-09 22:55
mveCPallini11-Nov-09 22:55 
GeneralRe: .DrawText makes my app laggy/sluggish (MFC C++) Pin
karhong11-Nov-09 23:25
karhong11-Nov-09 23:25 
QuestionRe: .DrawText makes my app laggy/sluggish (MFC C++) Pin
CPallini11-Nov-09 23:42
mveCPallini11-Nov-09 23:42 
AnswerRe: .DrawText makes my app laggy/sluggish (MFC C++) Pin
KarstenK12-Nov-09 1:47
mveKarstenK12-Nov-09 1:47 
Questiondeploying mfc exe Pin
hellogany11-Nov-09 22:09
hellogany11-Nov-09 22:09 
AnswerRe: deploying mfc exe Pin
002comp11-Nov-09 22:17
002comp11-Nov-09 22:17 
GeneralRe: deploying mfc exe Pin
hellogany11-Nov-09 22:49
hellogany11-Nov-09 22:49 
GeneralRe: deploying mfc exe Pin
Rajesh R Subramanian12-Nov-09 0:02
professionalRajesh R Subramanian12-Nov-09 0:02 
AnswerRe: deploying mfc exe Pin
Cedric Moonen11-Nov-09 22:21
Cedric Moonen11-Nov-09 22:21 
AnswerRe: deploying mfc exe Pin
Hadi Dayvary11-Nov-09 23:32
professionalHadi Dayvary11-Nov-09 23:32 
AnswerRe: deploying mfc exe Pin
Rajesh R Subramanian11-Nov-09 23:53
professionalRajesh R Subramanian11-Nov-09 23:53 
QuestionRunning MFC Exe in other computers Pin
hellogany11-Nov-09 22:00
hellogany11-Nov-09 22:00 
AnswerRe: Running MFC Exe in other computers Pin
Garth J Lancaster11-Nov-09 22:15
professionalGarth J Lancaster11-Nov-09 22:15 
GeneralRe: Running MFC Exe in other computers Pin
hellogany11-Nov-09 22:47
hellogany11-Nov-09 22:47 
GeneralRe: Running MFC Exe in other computers Pin
Garth J Lancaster11-Nov-09 22:54
professionalGarth J Lancaster11-Nov-09 22:54 
GeneralRe: Running MFC Exe in other computers Pin
hellogany11-Nov-09 23:07
hellogany11-Nov-09 23:07 
QuestionFile existance in Zip Flder Pin
002comp11-Nov-09 21:42
002comp11-Nov-09 21:42 

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.