Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Resize of CFormView in DockingPane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resize of CFormView in DockingPane

 Post Reply Post Reply
sirhaden View Drop Down

Joined: 19 February 2010
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote sirhaden Quote  Post ReplyReply Direct Link To This Post Topic: Resize of CFormView in DockingPane
    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).
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.108 seconds.