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

C / C++ / MFC

 
GeneralTrick or thread Pin
Zizilamoroso29-May-02 6:24
Zizilamoroso29-May-02 6:24 
GeneralRe: Trick or thread Pin
Rama Krishna Vavilala29-May-02 6:50
Rama Krishna Vavilala29-May-02 6:50 
GeneralRe: Trick or thread Pin
Zizilamoroso29-May-02 7:03
Zizilamoroso29-May-02 7:03 
GeneralRe: Trick or thread Pin
Nish Nishant29-May-02 7:14
sitebuilderNish Nishant29-May-02 7:14 
GeneralRe: Trick or thread Pin
Zizilamoroso29-May-02 8:11
Zizilamoroso29-May-02 8:11 
QuestionScroll in ListControl ? Pin
dlhson29-May-02 5:50
dlhson29-May-02 5:50 
AnswerRe: Scroll in ListControl ? Pin
Prem Kumar29-May-02 6:14
Prem Kumar29-May-02 6:14 
QuestionHow does a modal dialog work (message pump)? Pin
29-May-02 4:29
suss29-May-02 4:29 
Hi,
when you create a modal dialog, it looks like this:
<br />
CAboutDialog dlg;<br />
dlg.DoModal();<br />

Somewhere in the MFC code of the dialog there is a RunModalLoop() which looks like a PumpMessage loop. When I start a modal dialog with DoModal(), does this mean:

a) it will block in the RunModalLoop() loop until modal dialog is done,
b) and it will keep the message handling for the thread alive, b/c the modal dialog does take the role of the message pump?

I try to understand how it works, thx for help. Smile | :)
AnswerRe: How does a modal dialog work (message pump)? Pin
Joaquín M López Muñoz29-May-02 4:58
Joaquín M López Muñoz29-May-02 4:58 
GeneralRe: How does a modal dialog work (message pump)? Pin
Maximilien29-May-02 5:30
Maximilien29-May-02 5:30 
GeneralRe: How does a modal dialog work (message pump)? Pin
Joaquín M López Muñoz29-May-02 5:49
Joaquín M López Muñoz29-May-02 5:49 
GeneralRe: How does a modal dialog work (message pump)? Pin
29-May-02 5:28
suss29-May-02 5:28 
GeneralRe: How does a modal dialog work (message pump)? Pin
Joaquín M López Muñoz29-May-02 8:29
Joaquín M López Muñoz29-May-02 8:29 
GeneralRe: How does a modal dialog work (message pump)? Pin
29-May-02 13:13
suss29-May-02 13:13 
GeneralRe: How does a modal dialog work (message pump)? Pin
29-May-02 18:20
suss29-May-02 18:20 
GeneralRe: How does a modal dialog work? Code snippets Pin
29-May-02 13:36
suss29-May-02 13:36 
GeneralRe: How does a modal dialog work? Code snippets Pin
Joaquín M López Muñoz29-May-02 23:12
Joaquín M López Muñoz29-May-02 23:12 
GeneralRe: How does a modal dialog work? Workaround Pin
30-May-02 0:50
suss30-May-02 0:50 
GeneralRe: How does a modal dialog work? Workaround Pin
Joaquín M López Muñoz30-May-02 2:36
Joaquín M López Muñoz30-May-02 2:36 
GeneralRe: How does a modal dialog work? Workaround Pin
30-May-02 6:59
suss30-May-02 6:59 
GeneralRe: How does a modal dialog work? Workaround Pin
Joaquín M López Muñoz1-Jun-02 5:28
Joaquín M López Muñoz1-Jun-02 5:28 
AnswerRe: How does a modal dialog work (message pump)? Pin
Paul M Watt29-May-02 7:24
mentorPaul M Watt29-May-02 7:24 
GeneralFile Type Association Pin
moobob29-May-02 4:34
moobob29-May-02 4:34 
GeneralRe: File Type Association Pin
Mauricio Ritter29-May-02 6:27
Mauricio Ritter29-May-02 6:27 
GeneralRe: File Type Association Pin
moobob29-May-02 7:06
moobob29-May-02 7:06 

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.