16,548
社区成员




// 全局作用域
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);
}