MFC: CTileSheet to docking dialog

This is a discussion on MFC: CTileSheet to docking dialog within the Windows Programming forums, part of the Platform Specific Boards category; My tile editor tile selection tab control is a CTileSheet object. This means the dialog is always top level and ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598

    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:

    CDialog
    - CDockDialog

    CDialogBar
    - 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
    Location
    near a computer
    Posts
    3,859
    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, 09: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, 02:33 PM
  4. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 09:52 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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