Added tray menu item on win32 to force clients to reconnect.
This commit is contained in:
parent
4d427a091d
commit
65a86cb13b
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue