Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Change IDR_MAINFRAME start coordinate Pin
sortegrip2-Feb-07 4:56
sortegrip2-Feb-07 4:56 
GeneralRe: Change IDR_MAINFRAME start coordinate Pin
David Crow2-Feb-07 5:17
David Crow2-Feb-07 5:17 
QuestionDestroyed Window Pin
baerten2-Feb-07 2:21
baerten2-Feb-07 2:21 
AnswerRe: Destroyed Window Pin
Mark Salsbery2-Feb-07 5:41
Mark Salsbery2-Feb-07 5:41 
GeneralRe: Destroyed Window Pin
baerten4-Feb-07 21:40
baerten4-Feb-07 21:40 
GeneralRe: Destroyed Window Pin
Mark Salsbery5-Feb-07 5:19
Mark Salsbery5-Feb-07 5:19 
GeneralRe: Destroyed Window Pin
Mark Salsbery5-Feb-07 5:25
Mark Salsbery5-Feb-07 5:25 
QuestionPumpMessage Question Pin
Andy2022-Feb-07 1:26
Andy2022-Feb-07 1:26 
I am using a Tabbed Dialog (6 dialogs in total).

Now in some of these Tabbed Dialogs I need to wait for an external event, so I do the following:-

while(waiting)
{
   Sleep(100);           // Wait 100 ms
   ProcessMessages();    // Pump Message Queue
   CheckForEvent();      // Call the routine that will set waiting to false when OK
}

void ProcessMessages()
{
   CWinApp* pApp = AfxGetApp();
   MSG msg;

   while(PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
      pApp->PumpMessage();
}


But my question is 'Do I need to have a separate ProcessMessage in each of the Tabbed Dialogs' and are they a better way of doing this sort of processing.
Note I use a 3rd party API for the external event.

Many thanks,

Andy.
QuestionRe: PumpMessage Question Pin
David Crow2-Feb-07 2:41
David Crow2-Feb-07 2:41 
AnswerRe: PumpMessage Question Pin
Andy2022-Feb-07 2:46
Andy2022-Feb-07 2:46 
GeneralRe: PumpMessage Question Pin
David Crow2-Feb-07 2:56
David Crow2-Feb-07 2:56 
AnswerRe: PumpMessage Question Pin
Waldermort2-Feb-07 2:48
Waldermort2-Feb-07 2:48 
GeneralRe: PumpMessage Question Pin
Andy2032-Feb-07 9:25
Andy2032-Feb-07 9:25 
QuestionBasic MFC questions.. Pin
Sameer_Thakur2-Feb-07 1:12
Sameer_Thakur2-Feb-07 1:12 
AnswerRe: Basic MFC questions.. Pin
led mike2-Feb-07 5:05
led mike2-Feb-07 5:05 
AnswerRe: Basic MFC questions.. Pin
prasad_som2-Feb-07 7:15
prasad_som2-Feb-07 7:15 
QuestionRe: Basic MFC questions.. Pin
Hamid_RT3-Feb-07 5:32
Hamid_RT3-Feb-07 5:32 
Questiondeleting the multiple rows in Grid Pin
reddy harish2-Feb-07 0:20
reddy harish2-Feb-07 0:20 
AnswerRe: deleting the multiple rows in Grid Pin
led mike2-Feb-07 5:05
led mike2-Feb-07 5:05 
GeneralRe: deleting the multiple rows in Grid Pin
reddy harish4-Feb-07 19:03
reddy harish4-Feb-07 19:03 
AnswerRe: deleting the multiple rows in Grid Pin
Hamid_RT3-Feb-07 5:33
Hamid_RT3-Feb-07 5:33 
QuestionHow to remove the AM/PM text in CDateTimeCtrl ? Pin
Hemant kulkarni1-Feb-07 23:19
Hemant kulkarni1-Feb-07 23:19 
AnswerRe: How to remove the AM/PM text in CDateTimeCtrl ? Pin
Naveen2-Feb-07 0:54
Naveen2-Feb-07 0:54 
GeneralRe: How to remove the AM/PM text in CDateTimeCtrl ? Pin
Hemant kulkarni2-Feb-07 2:19
Hemant kulkarni2-Feb-07 2:19 
QuestionVC++ 2005 iostream input problem for unsigned int Pin
Alex Aimer1-Feb-07 23:11
Alex Aimer1-Feb-07 23:11 

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.