multiple windows

This is a discussion on multiple windows within the Windows Programming forums, part of the Platform Specific Boards category; Can anyone point me to a good article explaining how to create and use multiple windows or 'panes'. For instance, ...

  1. #1
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174

    multiple windows

    Can anyone point me to a good article explaining how to create and use multiple windows or 'panes'. For instance, if I wanted to split the screen into a navigation pane and a reading pane?
    Using Code::Blocks and Windows XP

    In every hero, there COULD be a villain!

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,532
    Just put groupboxes ("BUTTON" class windows with the style of BS_GROUPBOX") around the controls that go in this "pane" or that "pane".

    For multiple windows, just create do what you normally do with one window, but create 2 instead of 1 before entering the message loop. Each window should be it's own class, also keep in mind that issuing a quit message (PostQuitMessage()) will break the message loop for BOTH windows then.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    You can use a splitter bar control to spilt one window.

    You can use MDI (Multiple Document Interface) for a Word type interface.

    You can use a dialog bar for an extended tool bar with set controls.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #4
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    Quote Originally Posted by Yarin View Post
    Just put groupboxes ("BUTTON" class windows with the style of BS_GROUPBOX") around the controls that go in this "pane" or that "pane".
    I was thinking something similar but using seperate dialog boxes.

    What I would really like is to have like a split window where the user can drag the border, like on windows explorer where you can move the brder between the file list and the folder list left to right. But I cannot seem to find any info on how to create that.
    Using Code::Blocks and Windows XP

    In every hero, there COULD be a villain!

  5. #5
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    Quote Originally Posted by Dark_Phoenix View Post
    What I would really like is to have like a split window where the user can drag the border, like on windows explorer where you can move the brder between the file list and the folder list left to right. But I cannot seem to find any info on how to create that.
    splitter bar control
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

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, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21