title: How to dock CPaneDialog to MainFrm and..?
body: <p>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( &amp;other_CPaneDialog_instance... ) is possible.
  If I call DockToPane(), the content of the CPaneDialog is not drawn or refreshed correctly.</p>
  
  <p>How can a CPaneDialog be docked to MainFrm window?</p>
  
  <p>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?</p>