共用方式為


CDockablePane::OnBeforeFloat

The framework calls this method before a pane transitions to a floating state.

virtual BOOL OnBeforeFloat(
   CRect& rectFloat,
   AFX_DOCK_METHOD dockMethod
);

Parameters

  • [in] rectFloat
    Specifies the position and size of the pane when it is in a floating state.

  • [in] dockMethod
    Specifies the docking method. See CPane::DockPane for a list of possible values.

Return Value

TRUE if the pane can be floated; otherwise, FALSE.

Remarks

This method is called by the framework when a pane is about to float. You can override this method in a derived class if you want to perform any processing before the pane floats.

Requirements

Header: afxdockablepane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart

CPane::OnBeforeFloat