Moved methods ViewerToolBar::show() and ViewerToolBar::hide into rfb_win32::ToolBar class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@374 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb_win32/ToolBar.cxx b/rfb_win32/ToolBar.cxx
index 963a5d1..4061bb3 100644
--- a/rfb_win32/ToolBar.cxx
+++ b/rfb_win32/ToolBar.cxx
@@ -201,3 +201,11 @@
GetWindowRect(getHandle(), &r);
return r.bottom - r.top;
}
+
+void ToolBar::show() {
+ ShowWindow(getHandle(), SW_SHOW);
+}
+
+void ToolBar::hide() {
+ ShowWindow(getHandle(), SW_HIDE);
+}
diff --git a/rfb_win32/ToolBar.h b/rfb_win32/ToolBar.h
index dd7373c..feed1a0 100644
--- a/rfb_win32/ToolBar.h
+++ b/rfb_win32/ToolBar.h
@@ -101,6 +101,7 @@
// Button size must be largen the button bitmap.
bool setButtonSize(int width, int height);
+ // -=- ToolBar operations
// autoSize() resizes the toolbar window.
void autoSize();
@@ -111,6 +112,12 @@
// getHeight() returns the toolbar window height.
int getHeight();
+ // show() displays the toolbar window.
+ void show();
+
+ // hide() hides the toolbar window.
+ void hide();
+
protected:
HWND hwndToolBar;
HWND parentHwnd;