CToolBar::GetItemRect
该成员函数的地址加载与 nIndex指定的按钮或分隔符坐标的 lpRect 包含的 RECT 结构。
virtual void GetItemRect(
int nIndex,
LPRECT lpRect
) const;
参数
nIndex
该项的索引(按钮或分隔符)矩形协调进行检索。lpRect
将包含项目的坐标 RECT 结构的地址。
备注
坐标在像素相对于工具栏的左上角。
使用 GetItemRect 获取要用组合框或其他控件替换分隔符的坐标。
示例
为 CToolBar::SetSizes参见示例。
要求
Header: afxext.h