![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Sup dudes,
When you first create that mian rectangle window in which everything will be based on, how do you create ANOTHER one of those? Thanks. |
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
Re: Multiple windows -
>>how do you create ANOTHER one of those
The same way you created the first one. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Multiple windows -
But when I give the same class name as the first it looks exactly the same as the first window.
Any ideas? Thanks. |
|
|
|
|
|
#4 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
Re: Multiple windows -
But I thought you said you wanted to create a second window that looked exactly like the first? Or maybe I misunderstood. You can register as many different classes as you like. If you want the second window to look a little different than the first then register another window class just like you did the first one.
If you want the second window to be a child of the first and bounded by the first window's rectangle then pass a handle of the first window as the parent to the second window. |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Multiple windows -
Oh damn! No matter what I do I can't seem to create a second window, also I can't seem to find any resources to learn from
![]() I'm sorry that I'm asking of this; but could you please create an example in which there are two SEPARATE windows. Thanks a lot(hopefully :-|)! |
|
|
|
|
|
#6 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
Re: Multiple windows -
This is using VC++ 2008 Express. It creates two identical windows. Most of the code was generated by the IDE when I created the project. All I did was add a second class name and changed the *.rc file to contain a second string.
c++ Syntax (Toggle Plain Text)
|
|
|
|
|
|
#7 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Multiple windows -
I think it would be more efficient for me to learn how to work with dialogs...
![]() Could you please point me to a tutorial(I would search Google but its usually better to ask someone with experience to point you to one mainly because they know the best one(s))? Thanks. |
|
|
|
|
|
#8 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Multiple windows -
Oh yeah, I forgot to mension; I want a tutorial that teaches you how to work with Dialog Boxes WITHOUT resource templates...
Thanks again. ![]() |
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
Re: Multiple windows -
|
|
|
|
|
|
#10 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4
![]() |
Re: Multiple windows -
You might consider C# or VB.NET, as the visual designers with these compilers tend to make this sort of thing a lot easier. After you've gotten more comfortable with programming, then you'll be better equipped to deal with the Win32 API.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows XP Activation Loop... | Ghost | Coder's Corner Lounge | 3 | Jan 24th, 2008 3:28 PM |
| c# multiple popup windows | programmingnoob | C# | 1 | Aug 15th, 2007 6:04 AM |
| Using Multiple Windows... | brokenhope | Visual Basic .NET | 11 | Sep 10th, 2005 7:11 PM |
| Windows Vista, well sort of | coldDeath | Coder's Corner Lounge | 21 | Sep 6th, 2005 1:00 PM |
| Net Group /ADD (on a windows box, non domain controller) | Infinite Recursion | Other Programming Languages | 1 | Apr 13th, 2005 2:27 PM |