CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2003
    Location
    Germany
    Posts
    8

    Docking 2 control bars HELP !!!

    Dear members,
    I need your help with the following problem :
    I've got a frame window in witch on the left side i have a docked
    controlbar
    Now i need to dock another controlbar on the left side, just over the first one, both should have the same width.

    So how can i dock 2 bars on the left side, one being over the other

    I'm expecting very much an thanks a lot !

    Andreas

  2. #2
    Join Date
    Jan 2004
    Location
    Earth
    Posts
    567
    Hi,

    The code in the following link might apply for a toolbar with CBRS_ALIGN_LEFT and AFX_IDW_DOCKBAR_LEFT,

    http://www.codeguru.com/toolbar/demo_toolbar_d.shtml

    TDM

  3. #3
    Join Date
    Mar 2002
    Location
    Croatia
    Posts
    275
    Look at:
    CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)

    Find how the first control bar is crated, and then repeat steps. You can copy code, but provide ID for your new control bar, instead of the first one.
    You also have to add a declaration to the MainFrame.h

  4. #4
    Join Date
    Dec 2003
    Location
    Germany
    Posts
    8
    Thanks a lot !
    it worked fine

    Andreas

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

Featured