commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-commons-sandbox/daemon/src/native/nt/procrun procgui.c
Date Tue, 29 Apr 2003 06:59:17 GMT
mturk       2003/04/28 23:59:17

  Modified:    daemon/src/native/nt/procrun procgui.c
  Log:
  Fixed double default try menu items and properties title.
  
  Revision  Changes    Path
  1.12      +6 -3      jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c
  
  Index: procgui.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- procgui.c	28 Apr 2003 17:17:45 -0000	1.11
  +++ procgui.c	29 Apr 2003 06:59:16 -0000	1.12
  @@ -242,7 +242,7 @@
               ac_append_menu_item(menu, 0, "", 0, 1);
           }
           ac_append_menu_item(menu, IDM_ABOUT, "About", 0, 1);
  -        ac_append_menu_item(menu, IDM_OPTIONS, "Properties", 1, 1);
  +        ac_append_menu_item(menu, IDM_OPTIONS, "Properties", 0, 1);
           strcpy(tmp, "Shutdown: ");
           strcat(tmp, g_env->m->service.name);
           ac_append_menu_item(menu, IDM_EXIT,  tmp, 0, 1);
  @@ -730,7 +730,10 @@
   {
       PROPSHEETPAGE psp[3];
       PROPSHEETHEADER psh;
  +    char title[256];
   
  +    strcpy(title, ac_cmdline);
  +    strcat(title, " Service properties");
       psp[0].dwSize        = sizeof(PROPSHEETPAGE);
       psp[0].dwFlags       = PSP_USETITLE;
       psp[0].hInstance     = ac_instance;
  @@ -764,7 +767,7 @@
       psh.hInstance        = ac_instance;
       psh.pszIcon          = MAKEINTRESOURCE(IDI_ICOCONWRAP);
       psh.pszbmHeader      = MAKEINTRESOURCE(IDB_BMPJAKARTA);
  -    psh.pszCaption       = TEXT("Service Options");
  +    psh.pszCaption       = title;
       psh.nPages           = sizeof(psp) / sizeof(PROPSHEETPAGE);
       psh.ppsp             = (LPCPROPSHEETPAGE) &psp;
       psh.pfnCallback      = (PFNPROPSHEETCALLBACK)PropSheetCallback;
  @@ -851,7 +854,7 @@
                                    hwnd, (DLGPROC)ac_about_dlg_proc);                   
                      break;
                  case IDM_OPTIONS:
  -                    ac_show_properties(hwnd);
  +                    ac_show_properties(NULL);
                       if (ac_use_props)                               
                           PostMessage(hwnd, WM_QUIT, 0, 0);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message