Click to See Complete Forum and Search --> : Multiple Windows
Wak
Oct 25th, 2002, 05:34 AM
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.... :confused:
parksie
Oct 25th, 2002, 06:26 AM
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.
Wak
Oct 25th, 2002, 06:35 AM
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??
parksie
Oct 25th, 2002, 06:48 AM
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.
CornedBee
Oct 25th, 2002, 11:09 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.