GetWindowRect(getHandle(), &r);
return r.bottom - r.top;
}
+
+void ToolBar::show() {
+ ShowWindow(getHandle(), SW_SHOW);
+}
+
+void ToolBar::hide() {
+ ShowWindow(getHandle(), SW_HIDE);
+}
// Button size must be largen the button bitmap.
bool setButtonSize(int width, int height);
+ // -=- ToolBar operations
// autoSize() resizes the toolbar window.
void autoSize();
// 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;
// Resize the toolbar window
autoSize();
}
-
-void ViewerToolBar::show() {
- ShowWindow(getHandle(), SW_SHOW);
-}
-
-void ViewerToolBar::hide() {
- ShowWindow(getHandle(), SW_HIDE);
-}
~ViewerToolBar() {}
void create(HWND parentHwnd);
-
- void show();
- void hide();
};