Share via


CStatusBar::GetItemRect

Copies the coordinates of the indicator specified by nIndex into the structure pointed to by lpRect.

void GetItemRect( 
   int nIndex, 
   LPRECT lpRect  
) const;

Parameters

  • nIndex
    Index of the indicator whose rectangle coordinates are to be retrieved.

  • lpRect
    Points to a RECT structure or a CRect object that will receive the coordinates of the indicator specified by nIndex.

Remarks

Coordinates are in pixels relative to the upper-left corner of the status bar.

Requirements

Header: afxext.h

See Also

Reference

CStatusBar Class

Hierarchy Chart

CStatusBar::CommandToIndex

CStatusBar::GetPaneInfo