Resize of CFormView in DockingPane |
Post Reply |
Author | |
sirhaden
Groupie Joined: 19 February 2010 Status: Offline Points: 23 |
Post Options
Thanks(0)
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). |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |