|
-
Oct 25th, 2002, 05:34 AM
#1
Thread Starter
Hyperactive Member
Multiple Windows
I can't figure out a way to show two or more windows at the same time. If I use the CreateWindow(...) function then I get errors, and I can't distinguish between the controls and messages for each window, and if I use Dialog Resources, then once I invoke one of them, it waits for it to close before it invokes the next...
Is there any special way to do this?? I only want 2 windows to be shown and active at the same time....
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Oct 25th, 2002, 06:26 AM
#2
Monday Morning Lunatic
You can distinguish. If you use different window procedures then it's easy. If you use the same one, then the hWnd argument will change.
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
-
Oct 25th, 2002, 06:35 AM
#3
Thread Starter
Hyperactive Member
Is it possible to use dialog resources, and have them both show at the same time???
Also while i'm hear, is it possible to set the background of a dialog resource to a picture without code??
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Oct 25th, 2002, 06:48 AM
#4
Monday Morning Lunatic
Dialogues: Yes, use CreateDialog rather than DialogBox (you need a DlgProc rather than a WndProc, there are a few subtle differences).
Picture: No idea, seriously doubt it though.
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
-
Oct 25th, 2002, 11:09 AM
#5
Picture: not without code. But you could add a static control that displays an image and spans the whole background, then put it all the way back in the Z-order.
You still need code to load the picture and assign it to the static though.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|