Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Double window - (http://www.programmingforums.org/showthread.php?t=14916)

pcbrainbuster Jan 11th, 2008 2:46 AM

Double window -
 
Sup guys,

How would you create a second GUI window? The one you register at the begining. Please don't tell me to go to MSDN and check out the function CreateWindow/Ex because I have and there's no parameter to create a second window to work with... Also how to you make a popup window?

Thanks.

Lakrids Jan 11th, 2008 5:16 AM

Re: Double window -
 
Hello,

Given your question, I reckon you're using MS Visual C++. If this is the case, it is quite simple to make a new window. Just create a new form within the same project, write the code for the buttons, etc... and in your main class (main form) code, add a pointer towards this new class you just created. Then, if you want for ex. that whenever the user clicks on a button, the window should open, then inside you button handling code, you just do :

:

myNewWindowPtr = new MyNewClassName(params...);

With myNewWindowPtr being the pointer towards your new form, declared in the main form's class.

And there you go.

pcbrainbuster Jan 11th, 2008 10:34 AM

Re: Double window -
 
Thanks for your reply! But I work with Win32 :)

Any ideas?

Thanks.

Lakrids Jan 11th, 2008 10:53 AM

Re: Double window -
 
No problem :) But unfortunately I cannot help you with WIN32, I have never used it...maybe some of the more experimented programmers here will be able to help you out.

pcbrainbuster Jan 11th, 2008 5:30 PM

Re: Double window -
 
Sadly enough there aren't many programmers that go past using 1 window let alone 2 lol, so they never try to figure out how to do so and this has a indirect attack on me :p Well I'd still like to thank you for your help/posts. :)

Is there anyone who knows how?

Thanks.


All times are GMT -5. The time now is 3:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC