diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-01-18 16:00:35 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-01-18 16:00:35 +0000 |
commit | 5b4c15d4016ff447998cbec0f335b5ab3542a53d (patch) | |
tree | 3e5882c70ea7b6cec1adebdb02ac1c5bf5037d5a /rfbplayer/ToolBar.cxx | |
parent | d467a8db36d1c911a44e7313123f7ef9a00dc2f0 (diff) | |
download | tigervnc-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.cxx | 10 |
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); +} |