Floating Issue With CDockablePane

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

In my application, when I am trying to float the dockedpane, the framework calls BOOL CPane::FloatPane(CRect rectFloat, AFX_DOCK_METHOD dockMethod, bool bShow)

Inside the function below functions are getting called


CPaneFrameWnd* pParentMiniFrame = CreateDefaultMiniframe(rectFloat);

SetParent(pParentMiniFrame);

if (bShow)
{
GetParentMiniFrame()->AdjustLayout();
}



Since the SetParent() returns Null , GetParentMiniFrame()->AdjustLayout(); crashes.

I dont know why I am facing this problem.

Continue reading...
 
Back
Top