From: Roy T. Fielding Date: Wed, 8 Aug 2001 02:26:05 +0000 (+0000) Subject: Apache Monitor's tray code does not notify Windows to remove it from the X-Git-Tag: 2.0.23~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc55c103b18fc53328f135823cd8aa74bceb27e0;p=apache 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 --- 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;