Modifed ToolBar::autoSize().
If toolbar has CCS_NORESIZE style, then autoSize() resizes toolbar itself
else it resizes by TB_AUTOSIZE message.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@292
3789f03b-4d11-0410-bbf8-
ca57d06f2519
RECT r, btnRect;
GetClientRect(parentHwnd, &r);
getButtonRect(0, &btnRect);
- int height = getButtonsHeight() + btnRect.top * 2 + 1;
+ int height = getButtonsHeight() + btnRect.top * 2 + 2;
SetWindowPos(getHandle(), HWND_TOP, 0, 0, r.right - r.left, height,
SWP_NOMOVE);
} else {