Results 1 to 5 of 5

Thread: Multiple Windows

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298
    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

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width