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?
dmitry1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.