From bc55c103b18fc53328f135823cd8aa74bceb27e0 Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Wed, 8 Aug 2001 02:26:05 +0000 Subject: [PATCH] Apache Monitor's tray code does not notify Windows to remove it from the tray when the process is destroyed. Just needed to add a call to remove the tray icon before PostQuitMessage(0). Also show "MS Windows XP" instead of "Whistler". Submitted by: Jerry Baker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90024 13f79535-47bb-0310-9956-ffa450edef68 --- support/win32/ApacheMonitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 3538909083..927d14008d 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -212,7 +212,7 @@ BOOL GetSystemOSVersion(LPSTR szVersion, LPDWORD dwVersion) else if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0) strcpy(szVersion, "MS Windows 2000 "); else if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1) - strcpy(szVersion, "Whistler "); + strcpy(szVersion, "MS Windows XP "); /* Test for product type.*/ #ifdef VER_VORKSTATION_NT if (bOsVersionInfoEx) @@ -1440,6 +1440,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, SetFocus(ap_hwndAboutDlg); break; case IDM_EXIT: + ShowNotifyIcon(hWnd, NIM_DELETE); PostQuitMessage(0); return TRUE; break; -- 2.50.1