共用方式為


CBasePane::CanBeDocked

Determines whether the pane can be docked to another pane.

virtual BOOL CanBeDocked(
   CBasePane* pDockBar  
) const;

Parameters

  • [in] pDockBar
    A pointer to another pane.

Return Value

TRUE if this pane can be docked to another pane; otherwise FALSE.

Remarks

The framework calls this method before it docks the pane specified by pDockBar to the current pane.

Use this method and the CBasePane::CanAcceptPane method to control how panes dock to other panes in your application.

The default implementation returns FALSE.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart