共用方式為


CPane::CanBeDocked

Determines if the pane can be docked at the specified base pane.

virtual BOOL CanBeDocked(
    CBasePane* pDockBar 
) const;

Parameters

  • [in] pDockBar
    Specifies the pane where this pane is to be docked.

Return Value

TRUE if this pane can be docked at the specified docking pane; otherwise, FALSE.

Remarks

This method is usually called by the framework to determine whether a pane can be docked at the specified docking pane. To determine whether the pane can be docked, the method evaluates the pane's currently enabled docking alignment.

You enable docking to the various sides of the frame window by calling CBasePane::EnableDocking.

Requirements

Header: afxPane.h

See Also

Reference

CPane Class

Hierarchy Chart