Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to fit frame parent in mainframe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to fit frame parent in mainframe

 Post Reply Post Reply
Author
Message
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: How to fit frame parent in mainframe
    Posted: 12 February 2012 at 2:13pm
When the parent frame opens with panes, its size is not adjusted to fit inside the mainframe. I can't figure out how to do this. I tried calling the standard CView methods GetParentFrame()->RecalcLayout() and ResizeParentToFit(), without success. Then I added CXTPDockingPaneManager::RecalcFrameLayout() at the end of the view's OnInitialUpdate() and that didn't appear to do anything either. Maybe there is a different place to call this or a different way to have the frame fit itself inside the mainframe. Any ideas?

Michael
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.