ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry if I totally got your question wrong. But could you elaborate on what you mean by making it invisible? If I remember correctly modal dialogs where dialogs that require a user to interact with it before they dissapear.
Aren't you the one who controls the creation of such a dialog in your source code. Then why do you want to make it invisible? Isn't the dialog all about interaction with the user? Wouldn't the user need to see the dialog to interact with it?
Distribution: Red Hat Enterprise Linux 3.0 Advanced Server
Posts: 34
Original Poster
Rep:
EVC++ doubts
Thanks Mik,
I am using an application, which demands for
for the invisibility for the Modal dialog.
To be more specific, before making the dialog
visible I am creating a thread which starts listen
on one port. Now My application demands when I start the
application, the modal dialog should not be visible.
I hope This will make u understand
mik! better if you give reply immediately, being it is urgent for me.
Well this is what I did in another application to make it's window dissapear. As far as I remember a dialog should be able to handle the same messages. Haven't worked with dialogs in windows in ages.
Anyway this is the command that I used to hide the window:
ShowWindow(hWnd, SW_HIDE);
And this is the command I used to make it reappear:
ShowWindow(hWnd, SW_SHOW);
SetForegroundWindow(hWnd);
The second command is only necessary if you want it to popup to the foreground.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.