Modeless Dialog Focus problem (I'm a Newbie please Help) 
Author Message
 Modeless Dialog Focus problem (I'm a Newbie please Help)

Hello Everyone,

I'm trying to show the window that is activated after I leave a
modeless dialog. The modeless dialog remains as the top window when I
click on the main win or any other child win even though it gains the
focus. The modeless dialog loses focus but stays on top. Does anyone
have a solution on how to display the active Window. I'd be greatful
for a reply.

Thanks in advance,

Cheryl



Wed, 31 Jan 2001 03:00:00 GMT  
 Modeless Dialog Focus problem (I'm a Newbie please Help)

It seems you simply have created a topmost dialog, just remove that
property in the dialog editor or change position after creation with
'SetWindowPos' function and HWND_NOTOPMOST parameter.

Quote:

> Hello Everyone,

> I'm trying to show the window that is activated after I leave a
> modeless dialog. The modeless dialog remains as the top window when I
> click on the main win or any other child win even though it gains the
> focus. The modeless dialog loses focus but stays on top. Does anyone
> have a solution on how to display the active Window. I'd be greatful
> for a reply.

> Thanks in advance,

> Cheryl

  vcard.vcf
< 1K Download


Wed, 31 Jan 2001 03:00:00 GMT  
 Modeless Dialog Focus problem (I'm a Newbie please Help)

Quote:

>I'm trying to show the window that is activated after I leave a
>modeless dialog. The modeless dialog remains as the top window when I
>click on the main win or any other child win even though it gains the
>focus. The modeless dialog loses focus but stays on top.

Try specifying the desktop (GetDesktopWindow) as the owner of the
dialog when you create it.

Bob Moore [MVP]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Thu, 01 Feb 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Focus problem in 2 modeless dialog boxes

2. Focus problem with modeless dialog

3. Newbie help wanted (Modeless dialog)

4. Modeless Dialog Box question...Please help.

5. modeless dialog boxes - help please?

6. Modeless Dialog Box question...Please help.

7. Close modeless dialog when losing focus

8. Modeless dialog and z-order/focus issue

9. modeless dialog and focus

10. Modeless dialog focus

11. Modeless Dialog with Focus

12. Focus of modeless dialog boxes

 

 
Powered by phpBB® Forum Software