CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    5

    CDialogBar moves content (other windows) in MDI application when docked at left side

    Hi

    I have a question concerning the CDialogBar (:CControlBar).

    I have a MDI application with a dockable toolbox (CDialogBar).
    The user is able/allowed to move the DialogBar and to dock it at the right or left side


    When I dock at the left side, the content of my mdi-application (so all other open windows) are moved right (so the dockable bar moves the windows).

    If i dock at the right side, nothing changes.


    How can I change the behaviour of the bar, that the windows inside the application keep the same position when I dock left ??



    (Problem is, that my windows are aligned on the right side of the application). When I dock the bar on the left, the windows are getting moved in the not visible area.)



    Thanks in advance for your help

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CDialogBar moves content (other windows) in MDI application when docked at left s

    You could reposition your windows / controls using MoveWinow or SetWindowPosition API
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2008
    Posts
    5

    Re: CDialogBar moves content (other windows) in MDI application when docked at left s

    Thanks for your answer

    I managed now to reposition my windows in an overridden RecalcLayout Method.


    Thank you !

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