c++ - Modal dialog becomes non-modal -


i have mfc sdi application, in modal dialog displayed. during second dialog can displayed, modal. second dialog doing job , auto-closed

dlg->postmessage(wm_close); 

all works after second dialog closed first dialog not modal more, means can click main window of application.

any ideas how can solved?

a window can handle 1 modal dialog @ time.

therefore, specify first dialog parent second.


Comments