Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PumpMessage - How Many 1

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
GB
When I need to wait for some activity, do I need to place the call to PumpMessage queue into each dialog or just the main dialog of the program.

They may be 10 dialogs, but 2 will need to do lengthly processing.

Many thanks,

Porto.
 
If these are modal dialogs then they need to process their own messages, which is what the DoModal() function does for you. If your dialogs are modeless then the main message loop will pump messages to them for you. If you want to write your own modal message loop with special processing for a dialog then you can grab some of the code from the MFC source if you have Visual C. Have a look at int CWnd::RunModalLoop(DWORD dwFlags) in wincore.cpp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top