virtual void GetItemRect( int nIndex, LPRECT lpRect );
Parameters
nIndex
Index of the item (button or separator) whose rectangle coordinates are to be retrieved.
lpRect
Address of the RECT structure that will contain the item’s coordinates.
Remarks
This member function fills the RECT structure whose address is contained in lpRect with the coordinates of the button or separator specified by nIndex. Coordinates are in pixels relative to the upper-left corner of the toolbar.
Use GetItemRect to get the coordinates of a separator you want to replace with a combo box or other control.
CToolBar Overview | Class Members | Hierarchy Chart
See Also CToolBar::CommandToIndex