CToolBar::GetItemRect

This method 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.

At a Glance

Header file: Afxext.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

virtual void GetItemRect( int nIndex, LPRECT lpRect );