BCGControlBar Pro for MFC
virtual void CBCGPToolBar::GetItemRect ( int  nIndex,
LPRECT  lpRect 
) const
virtual

Given a toolbar button's index returns the button's bounding rectangle.

Call this member function to retrieve a toolbar button's bounding rectangle.

A CRect object pointed by the lpRect parameter can be zeroed if a button with specified index does not exist.

Parameters
nIndex[in] Specifies a toolbar button's index.
lpRect[out] A pointer to CRect object that receives the button's bounding rectangle data.