![]() |
Multiple windows -
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. |
Re: Multiple windows -
>>how do you create ANOTHER one of those
The same way you created the first one. |
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. |
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. |
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 :-|)! |
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.
:
|
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. |
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. :) |
Re: Multiple windows -
Quote:
|
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.
|
| All times are GMT -5. The time now is 10:05 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC