Sfoglia il codice sorgente

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
tags/v0.0.90
george82 18 anni fa
parent
commit
2a54ed6060
2 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 10
    0
      vncviewer/ViewerToolBar.cxx
  2. 3
    0
      vncviewer/ViewerToolBar.h

+ 10
- 0
vncviewer/ViewerToolBar.cxx Vedi File

@@ -48,3 +48,13 @@ void ViewerToolBar::create(HWND parentHwnd) {
// 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);
}

+ 3
- 0
vncviewer/ViewerToolBar.h Vedi File

@@ -30,4 +30,7 @@ public:
~ViewerToolBar() {}

void create(HWND parentHwnd);

void show();
void hide();
};

Loading…
Annulla
Salva