Click here to Skip to main content
15,890,717 members

Comments by dlavrantonis (Top 2 by date)

dlavrantonis 4-Nov-11 6:01am View    
amazing! i would have never thought of this! Thank you very much! But a follow up question comes into my mind now:

Since the AfxMessageBox() creates its own message pump, shouldn't it have its own message map as well? I expected that this message map would only contain an entry that maps the "mouse clicking" message (WM_Whatever) to a OnClick handler. Why does it contain an entry that handles the WM_TIMER message as well?

Furthermore, even if we assume that it does contain such an entry, why the OnTimer of the CTimerTestingDlg object is called? I would expect to see the OnTimer implementation of the AfxMessageBox object to be called instead..
dlavrantonis 31-Oct-11 11:37am View    
thank you very much for your response. Stopping the processing of new messages until the user dismisses the message box is exactly what i want to do. Do you know how this can be done? I mean is there any straightforward way, or i will have to do it "manually"?