How to dock CPaneDialog to MainFrm and.. ?
Posted
by JongAm Park
on Stack Overflow
See other posts from Stack Overflow
or by JongAm Park
Published on 2009-12-11T21:17:56Z
Indexed on
2010/03/15
2:39 UTC
Read the original article
Hit count: 2038
Hello, I have problem with CPaneDialog. I tested with SetPaneSize MFC feature pack sample projects. What is weird is that CPaneDialog can't be docked to MainFrm while CDockablePane can be. The CPaneDialog is also a child class of the CDockablePane, but it can't be. Only DockToWindow( &other_CPaneDialog_instance... ) is possible. If I call DockToPane(), the content of the CPaneDialog is not drawn or refreshed correctly.
How can a CPaneDialog be docked to MainFrm window?
Another problem is about drawing. If remove codes for tree control in the SetPaneSize sample, the content of the view1 ( an instance of CDockablePane) is not redrawn properly. After doing some experiment, I decided that something should be done in its OnSize and OnPaint method. (OnSize is more critical. ) Is this expected behaviour?
© Stack Overflow or respective owner