how to deal with dialogs? they all are non-modal

"Dmitry Dartz" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
Hi All,

I created a pilot project based on embedding demo and everyting works 
fine -- browser navigates to various sites, I can see the process in the 
observers etc.
What does not work is dialog functionality. All created dialogs are 
modal-less -- for example they don't block the main window (which is hosting 
the browsers) so I can click on them and they will be activated, also the 
dialogs are shown on taskbar as separated windows. How to make the dialogs 
modal??

According to VS Spy++, I see that the dialog's window has no owner (GW_OWNER 
is NULL) and Main windwow does not get WS_DISABLED. It's not a big deal to 
make the EnableWindow call before running the dialog, but it's not clear how 
to make it working as a regular modal dialog.

Platform: Windows
Mozilla version: 2.0
Compiled from sources, compiler: VS2008 (VC9)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.