Overrided the base methods ToolBar::show() and ToolBar::hide() in ViewerToolBar class.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@416 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/ViewerToolBar.cxx b/vncviewer/ViewerToolBar.cxx
index c0f8115..9846262 100644
--- a/vncviewer/ViewerToolBar.cxx
+++ b/vncviewer/ViewerToolBar.cxx
@@ -48,3 +48,13 @@
   // Resize the toolbar window
   autoSize();
 }
+
+void ViewerToolBar::show() {
+  ShowWindow(getHandle(), SW_SHOW);
+  SendMessage(parentHwnd, WM_SIZE, 0, 0);
+}
+
+void ViewerToolBar::hide() {
+  ShowWindow(getHandle(), SW_HIDE);
+  SendMessage(parentHwnd, WM_SIZE, 0, 0);
+}
diff --git a/vncviewer/ViewerToolBar.h b/vncviewer/ViewerToolBar.h
index 3f5ccdf..8e829e7 100644
--- a/vncviewer/ViewerToolBar.h
+++ b/vncviewer/ViewerToolBar.h
@@ -30,4 +30,7 @@
   ~ViewerToolBar() {}
 
   void create(HWND parentHwnd);
+
+  void show();
+  void hide();
 };