]> granicus.if.org Git - apache/commitdiff
Apache Monitor's tray code does not notify Windows to remove it from the
authorRoy T. Fielding <fielding@apache.org>
Wed, 8 Aug 2001 02:26:05 +0000 (02:26 +0000)
committerRoy T. Fielding <fielding@apache.org>
Wed, 8 Aug 2001 02:26:05 +0000 (02:26 +0000)
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 <jerrybaker@weirdness.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90024 13f79535-47bb-0310-9956-ffa450edef68

support/win32/ApacheMonitor.c

index 3538909083d2bd2b38d7835488ff0afb28e06df4..927d14008df0b1f53cd4d67a23b16a334e4e7874 100644 (file)
@@ -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;