Where is a repro?
Note also that the owner window should be an overlapped (top-level) or
popup (owned) window. Child window cannot be an owner.
Also, if you supply NULL pParentWnd to those MFC functions, the
application main window will be used. When I wanted to create an unowned
window, I used dummy CWnd without a window created, as pParentWnd.
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:ljiin45a8i62svf9r5100caod97evm4erl@4ax.com...
In spite of the fact that you can presumably specify a parent window for
a modeless
dialog, the low-level API ignores whatever window you give it and makes
the main
application window be the parent of the dialog. I even wrote a simple
raw-Win32 app to
test this, and it fails in the same way. The parent window is apparently
completely
ignored.
CDialog::Create, CDialog::CreateIndirect, ::CreateDialog,
::CreateDialogIndirect, all have
this error.
Needless to say, this made my bugs list.
joe
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm