Results 1 to 2 of 2

Thread: Two Windows?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Thumbs up Two Windows?

    How can I make a second "form" in my windows program? Chimpface asked this a while back but I can't find the thread. Thanks guys

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Every time you call CreateWindow (or CreateWindowEx) you will get another window. You can create another window with the same windowclass as your first window if you want, and it will use the same WindowProc (or whatever you call your Window Procedure) to deal with messages, so you may need to check which window the message is for. Alternatively, make a new windowclass (or copy the first one and alter it a little) and define a second WindowProc for the second window.

    That make sense?
    Harry.

    "From one thing, know ten thousand things."

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