aboutsummaryrefslogtreecommitdiffstats
path: root/rfbplayer
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-04-17 11:58:47 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-04-17 11:58:47 +0000
commitc912dd31cfcd1bb4ad5e251d0bc404c31228159b (patch)
treeb591cdc0d13447fe724cb06bc781999e73140df7 /rfbplayer
parent448fd3cc2d5532eaeb2f9e60e3cc9b4baf9a809b (diff)
downloadtigervnc-c912dd31cfcd1bb4ad5e251d0bc404c31228159b.tar.gz
tigervnc-c912dd31cfcd1bb4ad5e251d0bc404c31228159b.zip
Added ToolBar::getButtonsWidth(), ToolBar::getButtonsHeight().
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
Diffstat (limited to 'rfbplayer')
-rw-r--r--rfbplayer/ToolBar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfbplayer/ToolBar.cxx b/rfbplayer/ToolBar.cxx
index d92d5849..6551cf80 100644
--- a/rfbplayer/ToolBar.cxx
+++ b/rfbplayer/ToolBar.cxx
@@ -186,7 +186,7 @@ void ToolBar::autoSize() {
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 {