Browse Source

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
tags/v0.0.90
george82 18 years ago
parent
commit
92b0751fc3
2 changed files with 11 additions and 0 deletions
  1. 8
    0
      vncviewer/ViewerToolBar.cxx
  2. 3
    0
      vncviewer/ViewerToolBar.h

+ 8
- 0
vncviewer/ViewerToolBar.cxx View File

@@ -48,3 +48,11 @@ void ViewerToolBar::create(HWND parentHwnd) {
// Resize the toolbar window
autoSize();
}

void ViewerToolBar::show() {
ShowWindow(getHandle(), SW_SHOW);
}

void ViewerToolBar::hide() {
ShowWindow(getHandle(), SW_HIDE);
}

+ 3
- 0
vncviewer/ViewerToolBar.h View File

@@ -31,5 +31,8 @@ public:

void create(HWND parentHwnd);

void show();
void hide();

LRESULT processWM_COMMAND(WPARAM wParam, LPARAM lParam);
};

Loading…
Cancel
Save