Quote:
>I have a modal dialog, which in turn should display another modal dialog on
>top. However, both dialogs are not really modal, I can click besides them
>and continue. Both dialogs are derived from CDialog and opened with
>dlg.DoModal. What am I doing wrong?
Maybe you managed to have no valid main window? Is it maybe a dialog based
app?
A
MFC modal dialog will try to disable it's parent window, that is given in
the constructor, like CSomeModalDialog Dlg(pParentWindow);
If you don't supply this it is assumed NULL and this causes the apps main
window to be the parent window. I think in a dialog based app there is no
main window since it is itself created "DoModal()" Just try to supply the
window that you want to be disabled for pParentWindow. Eg. "this".
cU
--
http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 2.0 is out: http://retriever.home.ml.org
Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~