|
-
Aug 12th, 2001, 10:04 AM
#1
Thread Starter
PowerPoster
making more than one copy
How do I make more than one copy of a window. Let us say, I have created a window, then how can I show two same windows ?
I tried ShowWindow but it just show the window that is already open. I does not make a copy of the window
-
Aug 12th, 2001, 12:19 PM
#2
Monday Morning Lunatic
You have to create two windows. Make them from the same class and all will be well
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 12th, 2001, 01:37 PM
#3
Frenzied Member
Jsut to clarify: make two calls to CreateWindow (or CreateWindowEx) using the same window class. They will share the same WindowProc function, so if you want different functionality in there you'll need to check the hwnd of the window in your WindowProc to see which window sent the message.
Harry.
"From one thing, know ten thousand things."
-
Aug 12th, 2001, 01:52 PM
#4
Thread Starter
PowerPoster
But what if I want to create unlimited windows?
Do I just create an array of hWnds and whenever I window is created, the value of the current array goes up by 1?
-
Aug 12th, 2001, 03:51 PM
#5
Monday Morning Lunatic
You could do it that way. I'd probably use a vector for easier management (unless speed is of the essence).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|