共用方式為


CTabCtrl::GetItemRect

Retrieves the bounding rectangle for the specified tab in a tab control.

BOOL GetItemRect( 
  int nItem, 
  LPRECT lpRect  
) const;

Parameters

  • nItem
    Zero-based index of the tab item.

  • lpRect
    Pointer to a RECT structure that receives the bounding rectangle of the tab. These coordinates use the viewport's current mapping mode.

Return Value

Nonzero if successful; otherwise 0.

Example

See the example for CPropertySheet::GetTabControl.

Requirements

Header: afxcmn.h

See Also

Reference

CTabCtrl Class

Hierarchy Chart

CTabCtrl::SetItemSize

CTabCtrl::AdjustRect