16,472
社区成员
发帖
与我相关
我的任务
分享
// 全局作用域
static void GetSepRect(LPRECT lpRect, HWND hWndToolBar, UINT nPreBtnID, int nOffset=1)
{
assert(lpRect!=NULL);
assert(IsWindow(hWndToolBar));
int nSepIndex = SendMessage(hWndToolBar, TB_COMMANDTOINDEX, nPreBtnID, 0) + nOffset;
SendMessage(hWndToolBar, TB_GETITEMRECT, nSepIndex, (LPARAM)&lpRect);
}