Added new methods ViewerToolBar::show() and ViewerToolBar::hide().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@372 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/ViewerToolBar.cxx b/vncviewer/ViewerToolBar.cxx
index 3796d61..fd60daf 100644
--- a/vncviewer/ViewerToolBar.cxx
+++ b/vncviewer/ViewerToolBar.cxx
@@ -48,3 +48,11 @@
// Resize the toolbar window
autoSize();
}
+
+void ViewerToolBar::show() {
+ ShowWindow(getHandle(), SW_SHOW);
+}
+
+void ViewerToolBar::hide() {
+ ShowWindow(getHandle(), SW_HIDE);
+}