Click here to Skip to main content
15,896,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do you modify a string from a string table and/or how you use it ? Pin
andreir2326-Jan-04 11:31
andreir2326-Jan-04 11:31 
AnswerRe: How do you modify a string from a string table and/or how you use it ? Pin
BaldwinMartin26-Jan-04 16:36
BaldwinMartin26-Jan-04 16:36 
AnswerRe: How do you modify a string from a string table and/or how you use it ? Pin
John R. Shaw26-Jan-04 18:00
John R. Shaw26-Jan-04 18:00 
GeneralRe: How do you modify a string from a string table and/or how you use it ? Pin
andreir2327-Jan-04 12:14
andreir2327-Jan-04 12:14 
GeneralRe: How do you modify a string from a string table and/or how you use it ? Pin
John R. Shaw28-Jan-04 15:36
John R. Shaw28-Jan-04 15:36 
GeneralHelp with IE plugin... Pin
Snyp26-Jan-04 11:23
Snyp26-Jan-04 11:23 
GeneralRe: Help with IE plugin... Pin
Michael Dunn26-Jan-04 16:33
sitebuilderMichael Dunn26-Jan-04 16:33 
GeneralOnIdle Pin
lpRomang26-Jan-04 9:57
lpRomang26-Jan-04 9:57 
Hi All

I have a big MFC app, with many FrameWnds, toolbars and menus and so on...
When i move the mouse my CPU usage jumps to 100%. I checked it, and discovered that it happens because the all processing that happends in CWinApp::OnIdle.

so, I made this change:
BOOL CMyApp::IsIdleMessage(MSG* pMsg)
{
if (pMsg->msg == WM_MOUSEMOVE)
return FALSE;
}

It works fine now, no 100 cpu when the mouse is moved.

But my question is this: why CWinApp::IsIdleMessage() is written in this way in first place? why there is a need to update all controls after the mouse has moved?

thanks



GeneralRe: OnIdle Pin
Michael Dunn26-Jan-04 16:38
sitebuilderMichael Dunn26-Jan-04 16:38 
GeneralRe: OnIdle Pin
Anonymous26-Jan-04 19:18
Anonymous26-Jan-04 19:18 
GeneralRe: OnIdle Pin
Michael Dunn26-Jan-04 19:44
sitebuilderMichael Dunn26-Jan-04 19:44 
GeneralRe: OnIdle Pin
Anonymous27-Jan-04 2:12
Anonymous27-Jan-04 2:12 
GeneralRe: OnIdle Pin
Michael Dunn27-Jan-04 7:07
sitebuilderMichael Dunn27-Jan-04 7:07 
GeneralSorting 'std::list' -s filled with class-pointers leads to a compile error Pin
clayman8726-Jan-04 8:49
clayman8726-Jan-04 8:49 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
Joaquín M López Muñoz26-Jan-04 10:22
Joaquín M López Muñoz26-Jan-04 10:22 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
clayman8726-Jan-04 23:34
clayman8726-Jan-04 23:34 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
clayman8727-Jan-04 0:15
clayman8727-Jan-04 0:15 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
pi31415638-Mar-04 10:56
pi31415638-Mar-04 10:56 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
clayman879-Mar-04 1:36
clayman879-Mar-04 1:36 
GeneralRe: Sorting 'std::list' -s filled with class-pointers leads to a compile error Pin
pi31415639-Mar-04 9:45
pi31415639-Mar-04 9:45 
GeneralSharing common classes across projects Pin
James Bryan Johnson26-Jan-04 8:46
James Bryan Johnson26-Jan-04 8:46 
GeneralRe: Sharing common classes across projects Pin
Carlos Antollini26-Jan-04 8:52
Carlos Antollini26-Jan-04 8:52 
GeneralRe: Sharing common classes across projects Pin
Ed K26-Jan-04 12:25
Ed K26-Jan-04 12:25 
GeneralStarting programs when windows logs Pin
toxcct26-Jan-04 8:11
toxcct26-Jan-04 8:11 
GeneralRe: Starting programs when windows logs Pin
David Crow26-Jan-04 8:30
David Crow26-Jan-04 8:30 

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.