]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/libwin32/winstat.h
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / libwin32 / winstat.h
1 /*
2  * Bacula Status Dialog header file
3  *
4  */
5 /*
6    Bacula® - The Network Backup Solution
7
8    Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
9
10    The main author of Bacula is Kern Sibbald, with contributions from
11    many others, a complete list can be found in the file AUTHORS.
12    This program is Free Software; you can redistribute it and/or
13    modify it under the terms of version two of the GNU General Public
14    License as published by the Free Software Foundation plus additions
15    that are listed in the file LICENSE.
16
17    This program is distributed in the hope that it will be useful, but
18    WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20    General Public License for more details.
21
22    You should have received a copy of the GNU General Public License
23    along with this program; if not, write to the Free Software
24    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25    02110-1301, USA.
26
27    Bacula® is a registered trademark of John Walker.
28    The licensor of Bacula is the Free Software Foundation Europe
29    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
30    Switzerland, email:ftf@fsfeurope.org.
31 */
32
33
34 class bacStatus;
35
36 #ifndef _WINSTAT_H_
37 #define _WINSTAT_H_
38
39 class bacStatus
40 {
41 public:
42    bacStatus();
43    ~bacStatus();
44
45    /* The Windows callback routine */
46    static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
47    static void DisplayString(const char *msg, int len, void *context);
48
49    void UpdateDisplay();
50
51    void Show(BOOL show);
52
53    void ResizeChildren(HWND hDlg, WORD wWidth, WORD wHeight);
54
55 private:
56    BOOL m_bVisible;
57    HWND m_hTextDisplay;
58 };
59
60 #endif