Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MSDN installation Pin
Gary Wheeler15-Jan-04 5:14
Gary Wheeler15-Jan-04 5:14 
GeneralRe: MSDN installation Pin
Rob Catterall15-Jan-04 23:15
Rob Catterall15-Jan-04 23:15 
GeneralRe: MSDN installation Pin
Gary Wheeler16-Jan-04 1:57
Gary Wheeler16-Jan-04 1:57 
GeneralOpenGL in an SDI app..! Pin
Halloko15-Jan-04 2:30
Halloko15-Jan-04 2:30 
GeneralRe: OpenGL in an SDI app..! Pin
567890123415-Jan-04 3:00
567890123415-Jan-04 3:00 
GeneralRe: OpenGL in an SDI app..! Pin
Alexander M.,15-Jan-04 5:32
Alexander M.,15-Jan-04 5:32 
GeneralRe: OpenGL in an SDI app..! Pin
Halloko15-Jan-04 5:49
Halloko15-Jan-04 5:49 
GeneralRe: OpenGL in an SDI app..! Pin
LunaticFringe15-Jan-04 6:11
LunaticFringe15-Jan-04 6:11 
Use idle time processing. This is the technique you're looking for. If this is an MFC app, override OnIdle in the application class, and adapt the following handler code:


BOOL CAnApp::OnIdle(LONG lCount) <br />
{<br />
	  CWinApp::OnIdle(lCount);<br />
<br />
	  if (lCount >= 2)<br />
		    DoSomething();<br />
<br />
	  return(TRUE);<br />
}


Only do your processing when the lCount parameter is >= 2; the framework is doing it's thing when it's 0 and 1. If you return TRUE, the application will continue to call your OnIdle as long as the message queue is empty, and will re-commence calls to OnIdle after processing any messages that are received. Return FALSE and OnIdle will be called once (and only once) each time the message queue is emptied.
GeneralRe: OpenGL in an SDI app..! Pin
Halloko15-Jan-04 7:35
Halloko15-Jan-04 7:35 
GeneralRe: OpenGL in an SDI app..! Pin
LunaticFringe15-Jan-04 8:16
LunaticFringe15-Jan-04 8:16 
Generalfunction with multiple arguments Pin
hdaly15-Jan-04 2:11
hdaly15-Jan-04 2:11 
GeneralRe: function with multiple arguments Pin
Michael P Butler15-Jan-04 2:26
Michael P Butler15-Jan-04 2:26 
GeneralRe: function with multiple arguments Pin
Michael Dunn15-Jan-04 5:09
sitebuilderMichael Dunn15-Jan-04 5:09 
Generalto lock an application Pin
Idefix15-Jan-04 1:41
Idefix15-Jan-04 1:41 
GeneralRe: to lock an application [modified] Pin
Marek Grzenkowicz15-Jan-04 4:17
Marek Grzenkowicz15-Jan-04 4:17 
GeneralRe: to lock an application Pin
Idefix15-Jan-04 5:01
Idefix15-Jan-04 5:01 
GeneralRe: to lock an application Pin
Diddy15-Jan-04 5:37
Diddy15-Jan-04 5:37 
GeneralRe: to lock an application Pin
Rage15-Jan-04 7:42
professionalRage15-Jan-04 7:42 
GeneralRe: to lock an application Pin
David Crow15-Jan-04 7:49
David Crow15-Jan-04 7:49 
GeneralRe: to lock an application Pin
Idefix22-Jan-04 0:37
Idefix22-Jan-04 0:37 
GeneralRe: to lock an application Pin
Idefix22-Jan-04 1:47
Idefix22-Jan-04 1:47 
QuestionCapture LButtonUp in a CListBox ?? Pin
jwd15-Jan-04 0:38
jwd15-Jan-04 0:38 
AnswerRe: Capture LButtonUp in a CListBox ?? Pin
Vladimir Georgiev15-Jan-04 0:51
Vladimir Georgiev15-Jan-04 0:51 
GeneralRe: Capture LButtonUp in a CListBox ?? Pin
Diddy15-Jan-04 5:54
Diddy15-Jan-04 5:54 
Generalthe problem of mscomm32.ocx and vc++ Pin
anders_zhou15-Jan-04 0:26
anders_zhou15-Jan-04 0:26 

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.