Click to See Complete Forum and Search --> : Problem with DialogBox as main window..


WhorlyWhelk
July 4th, 2007, 05:49 AM
Okay I narrowed this down.

I got a dialogbox as my main window. Inside that box I have a Web Browser embedded.

When I open a page with a interactive Java applet inside the browser, and then give focus to some other program or window, my program will freeze and crash.

If I don't lose focus my program works fine, or if there is no applet inside the web browser I can lose and regain focus without problem.

If this applet is embedded in the same way inside a window rather than a DialogBox, the problem isn't there.

I'm thinking I need to process my messages differently or something?

Any ideas? :(

Thanks. :)

Boris K K
July 4th, 2007, 07:43 AM
If you are using a modal dialog (DialogBox/Indirect/Param) try if switching to modeless (CreateDialog/Indirect/Param) dialog will fix the problem.

You will need a message loop, which calls IsDialogMessage.