1 // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
3 // This file was part of the VNC system.
5 // The VNC system is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 // If the source code for the VNC system is not available from the place
21 // whence you received this file, check http://www.uk.research.att.com/vnc or contact
22 // the authors on vnc@uk.research.att.com for information on obtaining it.
24 // This file has been adapted to the Win32 version of Bacula
25 // by Kern E. Sibbald. Many thanks to ATT and James Weatherall,
26 // the original author, for providing an excellent template.
28 // Copyright (2000) Kern E. Sibbald
35 // This class handles creation of a system-tray icon & menu
39 #if (!defined(_win_bacMENU))
45 #include "winevents.h"
48 extern const UINT MENU_ABOUTBOX_SHOW;
49 extern const UINT MENU_STATUS_SHOW;
50 extern const UINT MENU_EVENTS_SHOW;
51 extern const UINT MENU_SERVICEHELPER_MSG;
52 extern const UINT MENU_ADD_CLIENT_MSG;
53 extern const char *MENU_CLASS_NAME;
55 // The tray menu class itself
65 void UpdateTrayIcon(int battstat);
66 void SendTrayMsg(DWORD msg, int battstat);
68 // Message handler for the tray window
69 static LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
74 // About dialog for this server
77 // Status dialog for this server