summaryrefslogtreecommitdiffstats
path: root/rfbplayer/ToolBar.cxx
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-01-18 16:00:35 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-01-18 16:00:35 +0000
commit5b4c15d4016ff447998cbec0f335b5ab3542a53d (patch)
tree3e5882c70ea7b6cec1adebdb02ac1c5bf5037d5a /rfbplayer/ToolBar.cxx
parentd467a8db36d1c911a44e7313123f7ef9a00dc2f0 (diff)
downloadtigervnc-5b4c15d4016ff447998cbec0f335b5ab3542a53d.tar.gz
tigervnc-5b4c15d4016ff447998cbec0f335b5ab3542a53d.zip
Added ToolBar::autoSize, ToolBar::getButtonRect().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@103 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfbplayer/ToolBar.cxx')
-rw-r--r--rfbplayer/ToolBar.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/rfbplayer/ToolBar.cxx b/rfbplayer/ToolBar.cxx
index bd7d4a9b..c4808cc1 100644
--- a/rfbplayer/ToolBar.cxx
+++ b/rfbplayer/ToolBar.cxx
@@ -153,6 +153,12 @@ bool ToolBar::pressButton(int idButton, bool press) {
return (result ? true : false);
}
+bool ToolBar::getButtonRect(int nIndex, LPRECT buttonRect) {
+ int result = SendMessage(getHandle(), TB_GETITEMRECT,
+ nIndex, (LPARAM)buttonRect);
+ return (result ? true : false);
+}
+
bool ToolBar::setButtonSize(int width, int height) {
assert(width > 0);
assert(height > 0);
@@ -164,3 +170,7 @@ bool ToolBar::setButtonSize(int width, int height) {
}
return false;
}
+
+void ToolBar::autoSize() {
+ SendMessage(getHandle(), TB_AUTOSIZE, 0, 0);
+}