Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with throwing class objects Pin
Tomasz Sowinski4-Jul-01 0:35
Tomasz Sowinski4-Jul-01 0:35 
GeneralTHE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan3-Jul-01 22:41
Daniel Visan3-Jul-01 22:41 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 0:17
Tomasz Sowinski4-Jul-01 0:17 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 1:31
Daniel Visan4-Jul-01 1:31 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 1:51
Tomasz Sowinski4-Jul-01 1:51 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 5:22
Daniel Visan4-Jul-01 5:22 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 5:48
Tomasz Sowinski4-Jul-01 5:48 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Justin Hallet4-Jul-01 10:04
Justin Hallet4-Jul-01 10:04 
The problem is when you move your mouse, you are probably causing a an invalidate on the tree control, which means you are forcing events to repaint you window, this will be as fast as you pc can handle.

SetTimer ( ... ) & OnTimer ( ... )== 55 milli seconds is the fasters you can do.

Now using an idle loop you can go as fast as you like (Idle Loop Processing in MSDN)

BOOL bDoingBackgroundProcessing = TRUE;
while ( bDoingBackgroundProcessing )
{
MSG msg;
while ( ::PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) )
{
if ( !PumpMessage( ) )
{
bDoingBackgroundProcessing = FALSE;
::PostQuitMessage( );
break;
}
}
// let MFC do its idle processing
LONG lIdle = 0;
while ( AfxGetApp()->OnIdle(lIdle++ ) )
{
// Do nothing
}

// Now you can check if at least 10 ms have passed if so do paint, if not loop
}




GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 10:24
Tomasz Sowinski4-Jul-01 10:24 
QuestionIs there a NULL for member pointers? Pin
Malcolm McMahon3-Jul-01 22:26
Malcolm McMahon3-Jul-01 22:26 
AnswerRe: Is there a NULL for member pointers? Pin
Tomasz Sowinski4-Jul-01 0:32
Tomasz Sowinski4-Jul-01 0:32 
Questionhow to set g723.1 when waveinopen Pin
3-Jul-01 22:22
suss3-Jul-01 22:22 
AnswerRe: how to set g723.1 when waveinopen Pin
4-Jul-01 23:48
suss4-Jul-01 23:48 
GeneralRe: how to set g723.1 when waveinopen Pin
hapcoer5-Jul-01 22:29
hapcoer5-Jul-01 22:29 
GeneralPOP question...(probably trivial) Pin
Darko3-Jul-01 21:56
Darko3-Jul-01 21:56 
GeneralRe: POP question...(probably trivial) Pin
markkuk3-Jul-01 23:46
markkuk3-Jul-01 23:46 
GeneralRe: POP question...(probably trivial) Pin
4-Jul-01 5:12
suss4-Jul-01 5:12 
GeneralRe: POP question...(probably trivial) Pin
Ghazi H. Wadi4-Jul-01 5:23
Ghazi H. Wadi4-Jul-01 5:23 
GeneralWhois Lookup in ISAPI Pin
Raja K Vairakkannu3-Jul-01 21:30
Raja K Vairakkannu3-Jul-01 21:30 
GeneralRe: Whois Lookup in ISAPI Pin
Ghazi H. Wadi4-Jul-01 5:26
Ghazi H. Wadi4-Jul-01 5:26 
QuestionThread problem - help? Pin
Pradeepa3-Jul-01 20:15
Pradeepa3-Jul-01 20:15 
AnswerRe: Thread problem - help? Pin
Justin Hallet4-Jul-01 10:07
Justin Hallet4-Jul-01 10:07 
GeneralRe: Thread problem - help? Pin
Tomasz Sowinski4-Jul-01 10:27
Tomasz Sowinski4-Jul-01 10:27 
GeneralCDC::DrawIcon not drawing an icon when printing Pin
Diarrhio3-Jul-01 20:09
Diarrhio3-Jul-01 20:09 
Generalproblems to share a database file... Pin
XioPeng3-Jul-01 19:42
XioPeng3-Jul-01 19: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.