-
June 1st, 2006, 04:14 PM
#1
modeless dialog question
I added a modeless dialog in my project. But I found the dialog window covered top of the main frame window, so that I cannot use alt+tab to switch to show the main window. I tried to add codes in CMyDialog::PreCreateWindow like below:
cs.dwExStyle &= ~WS_EX_TOPMOST;
But it didn't work. could anyone know how to fix that? thanks!
-
June 1st, 2006, 04:54 PM
#2
Re: modeless dialog question
What is the behavior you want ? Do you want the mainframe AND the modeless dialog window to be available as 2 different options in the Alt-tab window ?
-
June 1st, 2006, 05:47 PM
#3
Re: modeless dialog question
not easy
icon in taskbar?
Kuphryn
-
June 2nd, 2006, 02:14 PM
#4
Re: modeless dialog question
Originally Posted by kirants
What is the behavior you want ? Do you want the mainframe AND the modeless dialog window to be available as 2 different options in the Alt-tab window ?
yes, i want them to be 2 options in the alt-tab window. is the only way to do this to use a multi-thread?
-
June 2nd, 2006, 03:40 PM
#5
Re: modeless dialog question
I'm sure this is not perfect solution, since better solution must exist.
Make the destop window (GetDesktopWindow) parent of dialog box. Try it out.
-
June 2nd, 2006, 03:52 PM
#6
Re: modeless dialog question
That should do it, pass the desktop window as second param to Create method of your modeless dialog object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|