共用方式為


CBasePane::SetDockingMode

Sets the docking mode for the pane.

void SetDockingMode(
   AFX_DOCK_TYPE dockModeNew
);

Parameters

  • [in] dockModeNew
    Specifies the new docking mode for the pane.

Remarks

The framework supports two docking modes: standard and immediate.

In the standard docking mode, panes and mini-frame windows are moved around using a drag rectangle. In the immediate docking mode, control bars and mini-frame windows are moved immediately with their context.

Initially, the docking mode is defined globally by CDockingManager::m_dockModeGlobal. You can set the docking mode for each pane individually using the SetDockingMode method.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart

CBasePane::GetDockingMode