Thread: Multiple windows.

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004

    Multiple windows.

    hi, what im asking for here is a bit of detail ( i think )

    but im wondering how to create multiple windows in a win32 program (api)

    i have tried creating more than 1 window with createwindow and showing it, it works fine but if the main window has a menu so will the others, all the others are the same color as the main window, they all basicly use the same messages as the main window.

    i want to know how to make it so if there is multiple windows and i close one they all dont close, and how they can have different menus and colors and so on, thanks.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Register different window classes for the created windows
    Use different windows message handlers
    Don't put PostQuitMessage(0) in the WM_CLOSE message, but when you really want to quit.

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  5. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM