You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fi...@apache.org on 2001/08/08 04:26:05 UTC

cvs commit: httpd-2.0/support/win32 ApacheMonitor.c

fielding    01/08/07 19:26:05

  Modified:    support/win32 ApacheMonitor.c
  Log:
  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 <je...@weirdness.com>
  
  Revision  Changes    Path
  1.3       +2 -1      httpd-2.0/support/win32/ApacheMonitor.c
  
  Index: ApacheMonitor.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/win32/ApacheMonitor.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ApacheMonitor.c	2001/08/07 19:54:10	1.2
  +++ ApacheMonitor.c	2001/08/08 02:26:05	1.3
  @@ -212,7 +212,7 @@
               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 @@
                          SetFocus(ap_hwndAboutDlg);
                   break;
                   case IDM_EXIT:
  +                    ShowNotifyIcon(hWnd, NIM_DELETE);
                       PostQuitMessage(0);
                       return TRUE;
                   break;