共用方式為


CMFCBaseTabCtrl::DetachTab

The framework calls this method to detach a tab from the tab control.

virtual BOOL DetachTab(
   AFX_DOCK_METHOD dockMethod,
   int nTabNum = -1,
   BOOL bHide = FALSE
);

Parameters

  • [in] dockMethod
    An enumerated data type provided by the CBasePane Class. This data type specifies the method that was used to detach the tab.

  • [in] nTabNum
    The zero-based index of the tab to be detached.

  • [in] bHide
    A Boolean parameter that indicates whether the framework should hide the detached tab.

Return Value

Nonzero if successful; otherwise 0.

Remarks

If the tab specified by nTabNum is non-detachable, this function fails and returns FALSE.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart