• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Hiding main dialog window

My application have a main dialog window , and some User-interface threads with their own dialog windows.
I want to hide the main window while all other windows are REMAINING DISPLAYED.
(If i use ShowWindow(SW_HIDE) on the main window , all other windows become hidden too)
Are where a way to keep all other windows still displayed?
0
dmitry1
Asked:
dmitry1
1 Solution
 
luisrCommented:
Some way or another, the other dialogs are owned by the main window, and that is why they are being hidden also.
0
 
captainkirkCommented:
luisr is on the right track - if all of your dialogs are children of the main window, they will be hidden. Try creating them with no parent and see if you get the same behavior.
0
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

After poping all the required dialogs, Set the timer to the main window, and then kill it in WM_TIMER messagemap aswellas hide the main window.

spawn thread1;
this->SetTimer(1, 200, NULL);

In the WM_TIMER message Map

KillTimer(1);
this->ShowWindow(SW_SHOW);

Try it out.

0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
dmitry1Author Commented:
Althought its impossible to create dialogs with "no parent" at all (then main window becomes a parent) I have Create()ed  without showing a temporary dialog,and set it as a main window (=theApp.m_pMainWnd),and then all the task become working . Thanks for the hint!
0
 
luisrCommented:
Hey! didn't I propose the solution first?
0
 
dmitry1Author Commented:
Sorry,
I could give points only to one , so i have had choosed the most helping hint, but if you know how i can give you your points too, email me , and you'll get your points

0
 
luisrCommented:
It's ok, but I think we said basically the same thing, didn't we?
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now