Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 11th, 2008, 1:46 AM   #1
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Exclamation 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.
pcbrainbuster is offline   Reply With Quote
Old Jan 11th, 2008, 4:16 AM   #2
Lakrids
Newbie
 
Join Date: Dec 2007
Posts: 28
Rep Power: 0 Lakrids is on a distinguished road
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.
Lakrids is offline   Reply With Quote
Old Jan 11th, 2008, 9:34 AM   #3
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Double window -

Thanks for your reply! But I work with Win32

Any ideas?

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Jan 11th, 2008, 9:53 AM   #4
Lakrids
Newbie
 
Join Date: Dec 2007
Posts: 28
Rep Power: 0 Lakrids is on a distinguished road
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.
Lakrids is offline   Reply With Quote
Old Jan 11th, 2008, 4:30 PM   #5
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
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.
pcbrainbuster is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
double functions (getting weird numbers) j0nathan C++ 4 Apr 5th, 2006 2:53 AM
How do i use a ^ for a double variable? dvu C# 4 Feb 3rd, 2006 9:27 AM
Arranging Views of Project Explorer, Property window and Form Layout java_roshan Visual Basic 6 Sep 30th, 2005 2:55 PM
New Window Chris Weimer HTML / XHTML / CSS 3 Sep 20th, 2005 9:18 AM
Display result to GUI window Nano Java 3 Jun 1st, 2005 12:18 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:49 AM.

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