Print Page | Close Window

How to fit frame parent in mainframe

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19483
Printed Date: 05 May 2024 at 3:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to fit frame parent in mainframe
Posted By: MichaelN
Subject: How to fit frame parent in mainframe
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net