Print Page | Close Window

Resize of CFormView in DockingPane

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=22284
Printed Date: 26 October 2024 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resize of CFormView in DockingPane
Posted By: sirhaden
Subject: Resize of CFormView in DockingPane
Date Posted: 24 April 2014 at 9:06am
I have a CFormView in a docking pane which is permanently docking in a CDialog class. When the docking pane is resized vertically, the splitter does not move, and I believe this is causing the form view class to not be redrawn.

My first attempt was to use the AttachView method of the CXTPDockingPane class to create the form view, using the form view in the CCreateContext structure. This resulted in the form view to not be updated when the dialog was docking pane was resized.

The next attempt was to use the Attach method after using the examples from the form, creating a CFrameWnd instance with the form view in the CCreateContext structure. Using this approach if I attach the CFrameWnd class instance to the docking pane, the form view does not get drawn or resized properly. If I attach the form view class instance, the drawing and resizing occurs correctly, but the window destruction results in exceptions being thrown from CWnd::DestroyWindow (ASSERT(pMap->LookupPermanent(hWndOrig) == NULL).



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