Thread: MFC: CTileSheet to docking dialog

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001

    MFC: CTileSheet to docking dialog

    My tile editor tile selection tab control is a CTileSheet object. This means the dialog is always top level and cannot be docked into or to the side of any other window.

    I would like to change this. I have a class derived from CDialogBar called CMyDialogBar which adds some docking functionality that eases the pain of docking CDialog objects. Here is my setup:

    - CDockDialog

    - CMyDialogBar

    CDockDialog can dock in CMyDialogBar. I want to convert my CTileSheet object and it's CPropertyPages into CDockDialog objects. My problem is this. If I create a new CMyDialogBar object this will create another docking area. I'm not sure what will happen if I try to dock this in an existing CMyDialogBar.

    Is there any way to create my dialog without also creating another dialog bar?
    This might be poorly worded but it's hard to explain because it's complex.

  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    Have you looked at CRebar?

    A CRebar can have more than one CControlbar (CDialogbar, CToolbar ect) in it (each called a 'band').

    So you should be able to add a toolbar and then your custom dialogbar to the same docking bar.

    Is that what you ment?
    "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. Replies: 6
    Last Post: 04-27-2004, 08:02 PM
  2. Document Class and Dialog Windows :: MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 12-01-2002, 12:27 AM
  3. Dialog Box & Property Sheet :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-01-2002, 01:33 PM
  4. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM