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

C / C++ / MFC

 
Questionto create :exe file Pin
sheshidar16-Oct-05 9:24
sheshidar16-Oct-05 9:24 
AnswerRe: to create :exe file Pin
Christian Graus16-Oct-05 9:46
protectorChristian Graus16-Oct-05 9:46 
AnswerRe: to create :exe file Pin
Bob Stanneveld16-Oct-05 10:43
Bob Stanneveld16-Oct-05 10:43 
QuestionHow to get the right URL before navigating the web page in the CHtmlView? Pin
superhandwolf16-Oct-05 7:11
superhandwolf16-Oct-05 7:11 
QuestionWindows Media Player Plugins (help plz) Pin
Member 236489616-Oct-05 6:54
Member 236489616-Oct-05 6:54 
QuestionHelp me on TAPI Pin
Cao Jianlin16-Oct-05 3:21
Cao Jianlin16-Oct-05 3:21 
AnswerRe: Help me on TAPI Pin
GflPower16-Oct-05 17:18
GflPower16-Oct-05 17:18 
QuestionInvalidateRect() Efficiency Pin
Cliff Hatch16-Oct-05 1:26
Cliff Hatch16-Oct-05 1:26 
Hi
I'm working on an application that displays a lot of trend graphs and associated numerical values. These are updated on a regular scan in the OnIdle() function, with the processor running at full load.

I started off using InvalidateRect() on the trends and the values individually to minimise the area of each View that was redrawn on each scan, but the code got a bit complicated, so I changed it to group them together. The total area redrawn is now much larger, but the number of InvalidateRect() calls has halved. I expected that the program would run a little slower but to my surprise there is no noticable difference.

This gives me the impression that there is a considerable overhead associated with each InvalidateRect() call, and that if you get too fussy about drawing only those regions that have changed you rapidly run into dimishing returns. Does anyone know if this is a correct interpretation?

Thanks in advance for your help.

Cliff Hatch

-- modified at 7:32 Sunday 16th October, 2005
AnswerRe: InvalidateRect() Efficiency Pin
John R. Shaw16-Oct-05 16:30
John R. Shaw16-Oct-05 16:30 
GeneralRe: InvalidateRect() Efficiency Pin
Cliff Hatch19-Oct-05 8:40
Cliff Hatch19-Oct-05 8:40 
QuestionError LNK2001: unresolved external symbol "__declspec(dllimport) public: class CString __thiscall Pin
mon2jan215-Oct-05 18:47
mon2jan215-Oct-05 18:47 
QuestionRe: Error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CString __thiscall Pin
begray15-Oct-05 22:20
begray15-Oct-05 22:20 
AnswerPlease Help....Re: Error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CString __thiscall Pin
mon2jan216-Oct-05 8:16
mon2jan216-Oct-05 8:16 
QuestionEncode two integers! Pin
JoaoPe15-Oct-05 17:22
JoaoPe15-Oct-05 17:22 
AnswerRe: Encode two integers! Pin
Chris Losinger15-Oct-05 18:38
professionalChris Losinger15-Oct-05 18:38 
GeneralRe: Encode two integers! Pin
JoaoPe15-Oct-05 19:24
JoaoPe15-Oct-05 19:24 
AnswerRe: Encode two integers! Pin
Prakash Nadar15-Oct-05 19:04
Prakash Nadar15-Oct-05 19:04 
GeneralRe: Encode two integers! Pin
JoaoPe15-Oct-05 19:22
JoaoPe15-Oct-05 19:22 
GeneralRe: Encode two integers! Pin
begray15-Oct-05 22:24
begray15-Oct-05 22:24 
GeneralRe: Encode two integers! Pin
JoaoPe16-Oct-05 2:38
JoaoPe16-Oct-05 2:38 
GeneralRe: Encode two integers! Pin
Chris Losinger16-Oct-05 3:44
professionalChris Losinger16-Oct-05 3:44 
GeneralRe: Encode two integers! Pin
Bob Stanneveld16-Oct-05 10:46
Bob Stanneveld16-Oct-05 10:46 
GeneralRe: Encode two integers! Pin
ThatsAlok16-Oct-05 18:54
ThatsAlok16-Oct-05 18:54 
QuestionDIBitmap Pin
daojinliu15-Oct-05 15:46
daojinliu15-Oct-05 15:46 
AnswerRe: DIBitmap Pin
Chris Losinger15-Oct-05 16:56
professionalChris Losinger15-Oct-05 16:56 

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.