![]() |
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. |
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. |
Re: Double window -
Thanks for your reply! But I work with Win32 :)
Any ideas? Thanks. |
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.
|
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