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 Mon, 17 Feb 2003 18:20:07 GMT
mturk       2003/02/17 10:20:07

  Modified:    daemon/src/native/nt/procrun procgui.c
  Log:
  Fix exiting the dialog from //GD mode.
  Closing dialog will terminate the service, not just closing the
  window.
  
  Revision  Changes    Path
  1.2       +6 -0      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- procgui.c	13 Feb 2003 17:45:30 -0000	1.1
  +++ procgui.c	17 Feb 2003 18:20:07 -0000	1.2
  @@ -287,8 +287,13 @@
           break;
           case WM_QUIT:
           case WM_CLOSE: 
  +            OutputDebugString("dlg WM_QUIT");
  +            if (!ac_use_try) {
  +                SetEvent(g_env->m->events[0]);
  +            }
               EndDialog(hdlg, TRUE);
               ac_list_hwnd = NULL;
  +            PostQuitMessage(CONWRAP_SUCCESS);
               return TRUE;
           default:
               return FALSE;
  @@ -318,6 +323,7 @@
           case WM_QUIT:
               ac_show_try_icon(hwnd, NIM_DELETE, NULL);
               SetEvent(g_env->m->events[0]);
  +            OutputDebugString("main WM_QUIT");
               break;
           case WM_TRAYMESSAGE:
               switch(lparam) {
  
  
  

---------------------------------------------------------------------
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