共用方式為


CMFCTabCtrl::GetTabArea

Retrieves the bounding rectangle of the tab label area at the top or bottom of the tab control.

void GetTabArea(
   CRect& rectTabAreaTop,
   CRect& rectTabAreaBottom 
) const;

Parameters

  • [out] rectTabAreaTop
    When this method returns, this reference contains a rectangle that bounds the top tab label area. The rectangle is in client coordinates. This reference is empty if no tab label area exists at the top of the tab control.

  • [out] rectTabAreaBottom
    When this method returns, this reference contains a rectangle that bounds the bottom tab label area. The rectangle is in client coordinates. This reference is empty if no tab label area exists at the bottom of the tab control.

Remarks

Use this method to determine the size and position of the tab area in the tabbed window.

Requirements

Header: afxtabctrl.h

See Also

Reference

CMFCTabCtrl Class

Hierarchy Chart