Added tray menu item on win32 to force clients to reconnect.

This commit is contained in:
crs 2004-11-01 22:26:02 +00:00
parent 4d427a091d
commit 65a86cb13b
3 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "resource.h"
extern CEvent::Type getReloadConfigEvent();
extern CEvent::Type getForceReconnectEvent();
//
// CMSWindowsServerTaskBarReceiver
@ -179,6 +180,11 @@ CMSWindowsServerTaskBarReceiver::runMenu(int x, int y)
IEventQueue::getSystemTarget()));
break;
case IDC_FORCE_RECONNECT:
EVENTQUEUE->addEvent(CEvent(getForceReconnectEvent(),
IEventQueue::getSystemTarget()));
break;
case IDC_TASKBAR_QUIT:
quit();
break;

View File

@ -18,13 +18,14 @@
#define IDC_TASKBAR_STATUS 40004
#define IDC_TASKBAR_LOG 40005
#define IDC_RELOAD_CONFIG 40006
#define IDC_FORCE_RECONNECT 40007
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 109
#define _APS_NEXT_COMMAND_VALUE 40007
#define _APS_NEXT_COMMAND_VALUE 40008
#define _APS_NEXT_CONTROL_VALUE 1003
#define _APS_NEXT_SYMED_VALUE 101
#endif

View File

@ -75,6 +75,7 @@ BEGIN
MENUITEM "Show Status", IDC_TASKBAR_STATUS
MENUITEM "Copy Log To Clipboard", IDC_TASKBAR_LOG
MENUITEM "Reload Configuration", IDC_RELOAD_CONFIG
MENUITEM "Force Reconnect", IDC_FORCE_RECONNECT
MENUITEM SEPARATOR
MENUITEM "Quit", IDC_TASKBAR_QUIT
END