-
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.... :confused:
-
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.
-
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??
-
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.
-
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.