/[winpt]/trunk/Src/wptGPGPrefsDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptGPGPrefsDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by twoaday, Sun Feb 6 11:11:40 2005 UTC revision 181 by twoaday, Tue Mar 14 11:01:22 2006 UTC
# Line 1  Line 1 
1  /* wptGPGPrefsDlg.cpp - WinPT GnuPG Preferences  /* wptGPGPrefsDlg.cpp - GnuPG Preferences
2   *      Copyright (C) 2001-2005 Timo Schulz   *      Copyright (C) 2001-2005 Timo Schulz
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
6   * WinPT is free software; you can redistribute it and/or modify   * WinPT is free software; you can redistribute it and/or modify
7   * it under the terms of the GNU General Public License as published by   * it under the terms of the GNU General Public License as published by
8   * the Free Software Foundation; either version 2 of the License, or   * the Free Software Foundation; either version 2 of the License, or
9   * (at your option) any later version.   * (at your option) any later version.
10   *   *
11   * WinPT is distributed in the hope that it will be useful,   * WinPT is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.   * GNU General Public License for more details.
15   *   *
16   * You should have received a copy of the GNU General Public License   * You should have received a copy of the GNU General Public License
17   * along with WinPT; if not, write to the Free Software Foundation,   * along with WinPT; if not, write to the Free Software Foundation,
18   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19   */   */
20    
21  #include <windows.h>  #ifdef HAVE_CONFIG_H
22    #include <config.h>
23  #include "../resource.h"  #endif
24  #include "wptNLS.h"  
25  #include "wptTypes.h"  #include <windows.h>
26  #include "wptErrors.h"  
27  #include "wptGPG.h"  #include "resource.h"
28  #include "wptRegistry.h"  #include "wptNLS.h"
29  #include "wptCommonCtl.h"  #include "wptTypes.h"
30  #include "wptContext.h" /* for passphrase_s */  #include "wptErrors.h"
31  #include "wptDlgs.h"  #include "wptGPG.h"
32  #include "wptW32API.h"  #include "wptRegistry.h"
33  #include "wptVersion.h"  #include "wptCommonCtl.h"
34    #include "wptW32API.h"
35  static struct {  
36      const char * name;  
37      int id;  /* Enable all edit items if @val is TRUE, disable them otherwise. */
38  } opts[] = {  static void
39      {"HomeDir",    IDC_GPGPREFS_HOMEDIR},  enable_disable_items (HWND dlg, BOOL val)
40      {"gpgProgram", IDC_GPGPREFS_EXEDIR},  {
41      {"OptFile",    IDC_GPGPREFS_OPTFILE},      EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_EXEDIR), val);
42      {0}      EnableWindow (GetDlgItem (dlg, IDC_GPGREFS_EXEDLG), val);
43  };      EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_LOCALE), val);
44        EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_LOCDLG), val);
45        EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_HOMEDIR), val);
46  BOOL CALLBACK      EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_HOMEDLG), val);
47  gpgprefs_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)  }
48  {  
49      char exedir[1024], homedir[1024], optfile[1024];  
50      char locale_dir[1024];  /* Load the GPG4WIN default values and disabled the
51      char * p = NULL, t[512];     dialog items to indicate these are fixed values.
52      const char * s;     Return value: true if GPG4win was found. */
53      int have_optfile = 0;  static bool
54      gpg_optfile_t opt = NULL;  load_gpg4win_values (HWND dlg)
55      gpg_option_t e;  {
56      UINT n;      char *path;
57            char *p;
58      switch ( msg ) {  
59      case WM_INITDIALOG:      path = get_reg_entry_gpg4win (NULL);
60  #ifndef LANG_DE      if (!path)
61          SetWindowText( dlg, _("GnuPG Preferences") );          return false;
62          SetDlgItemText( dlg, IDC_GPGPREFS_HOMEINF,      p = make_filename (path, "gpg", "exe");
63                         _("GnuPG home directory  (where both keyrings are located)") );      if (p) {
64          SetDlgItemText( dlg, IDC_GPGPREFS_OPTINF,          if (file_exist_check (p) == 0) {
65                         _("GnuPG config file (default: use gpg.conf)") );              SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, p);
66          SetDlgItemText( dlg, IDC_GPGPREFS_EXEINF,              EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_EXEDIR), FALSE);
67                         _("GnuPG exe file location (full path with added gpg.exe)") );              EnableWindow (GetDlgItem (dlg, IDC_GPGREFS_EXEDLG), FALSE);
68          SetDlgItemText( dlg, IDC_GPGPREFS_LOCALINF,          }
69                         _("Locale directory (to access the translation files)") );          free_if_alloc (p);
70  #endif      }
71          for( n=0; (s = opts[n].name); n++ ) {  
72              p = get_reg_entry_gpg( s );      p = get_reg_entry_mo ();
73              if( p ) {      if (p) {
74                  SetDlgItemText( dlg, opts[n].id, p );          if (dir_exist_check (p) == 0) {
75                  free_if_alloc( p );              SetDlgItemText (dlg, IDC_GPGPREFS_LOCALE, p);
76              }              EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_LOCALE), FALSE);
77          }              EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_LOCDLG), FALSE);
78                    }
79          if( (p = get_reg_entry_mo( )) ) {          free_if_alloc (p);
80              SetDlgItemText( dlg, IDC_GPGPREFS_LOCALE, p );      }
81              free_if_alloc( p );  
82          }      p = multi_gnupg_path (1);
83          p = get_gnupg_cfgfile( );      if (p) {
84          if( p ) {          SetDlgItemText (dlg, IDC_GPGPREFS_HOMEDIR, p);
85              parse_gpg_options( p, &opt );          EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_HOMEDIR), FALSE);
86              free_if_alloc( p );          EnableWindow (GetDlgItem (dlg, IDC_GPGPREFS_HOMEDLG), FALSE);
87              if( opt && find_option( opt, "force-v3-sigs" ) )          free_if_alloc (p);
88                  CheckDlgButton( dlg, IDC_GPGPREFS_V3SIGS, BST_CHECKED );      }
89              if( opt && (e=find_option( opt, "comment" )) )  
90                  SetDlgItemText( dlg, IDC_GPGPREFS_COMMENT, e->val );      return true;
91              if( opt && (e=find_option( opt, "encrypt-to" )) )  }
92                  SetDlgItemText( dlg, IDC_GPGPREFS_ENCTO, e->val );            
93          }  
94          center_window( dlg );  /* Load the GPG values direct from the registry. */
95          SetForegroundWindow( dlg );  static void
96          return TRUE;  load_registry_values (HWND dlg)
97            {
98      case WM_SYSCOMMAND:      char *p;
99          if( LOWORD( wparam ) == SC_CLOSE )  
100              EndDialog( dlg, TRUE );      p = get_reg_entry_gpg ("HomeDir");
101          return FALSE;      if (p) {
102                    SetDlgItemText (dlg, IDC_GPGPREFS_HOMEDIR, p);
103      case WM_COMMAND:          free_if_alloc (p);      
104          switch ( LOWORD( wparam ) ) {      }
105          case IDC_GPGPREFS_SAVE:      p = get_reg_entry_gpg ("gpgProgram");
106              if( !GetDlgItemText( dlg, IDC_GPGPREFS_HOMEDIR, homedir, sizeof homedir -1 ) ) {      if (p) {
107                  msg_box( dlg, _("Please enter the GnuPG home directory."), _("Preferences"), MB_ERR );          SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, p);
108                  return FALSE;          free_if_alloc (p);      
109              }      }
110              if( dir_exist_check( homedir ) ) {      p = get_reg_entry_mo ();
111                  _snprintf( t, sizeof t - 1, "%s: %s", homedir, winpt_strerror(WPTERR_DIR_OPEN) );      if (p) {
112                  msg_box( dlg, t, _("Preferences"), MB_ERR );          SetDlgItemText (dlg, IDC_GPGPREFS_LOCALE, p);
113                  return FALSE;          free_if_alloc (p);        
114              }      }
115                    if (!item_get_text_length (dlg, IDC_GPGPREFS_HOMEDIR)) {
116              if( GetDlgItemText( dlg, IDC_GPGPREFS_OPTFILE, optfile, sizeof optfile - 1 ) ) {          p = multi_gnupg_path (0);
117                  if ( file_exist_check( optfile ) ) {          if (p && dir_exist_check (p) == 0)
118                      n = msg_box(dlg, _("Could not find GPG config file.\n"              SetDlgItemText (dlg, IDC_GPGPREFS_HOMEDIR, p);
119                                         "Do you want to create a config file?"),          free_if_alloc (p);
120                                  _("Preferences"), MB_INFO|MB_YESNO );      }
121                      if( n == IDNO ) {  }
122                          SetDlgItemText( dlg, IDC_GPGPREFS_OPTFILE, "" );  
123                          return FALSE;  
124                      }  /* Dialog box procedure for the GPG preferences. */
125                      else if( n == IDYES ) {  BOOL CALLBACK
126                          FILE * fp = fopen( optfile, "wb" );  gpgprefs_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
127                          if( fp )  {
128                              fclose( fp );      static int gpg4win = false;
129                          if( file_exist_check( optfile ) ) {      char exedir[512];
130                              log_box( _("Preferences"), MB_ERR, "%s: %s", optfile, winpt_strerror( WPTERR_FILE_CREAT ) );      char homedir[512];
131                              return FALSE;      char locale_dir[512];
132                          }      char *p = NULL, t[256];
133                          have_optfile = 1;      const char *s;
134                      }      const char *folder;
135                  }      gpg_optfile_t opt = NULL;
136                  else      gpg_option_t e;
137                      have_optfile = 1;      UINT n;
138                  if( have_optfile ) {      
139                      if( set_reg_entry_gpg( "OptFile", optfile ) ) {      switch (msg) {
140                          msg_box( dlg, _("Could not save 'OptFile' in the registry."), _("Preferences"), MB_ERR );      case WM_INITDIALOG:
141                          return FALSE;          SetWindowText (dlg, _("GnuPG Preferences"));
142                      }          SetDlgItemText (dlg, IDC_GPGPREFS_HOMEINF,
143                  }                         _("GnuPG home directory  (where both keyrings are located)"));
144              }          SetDlgItemText ( dlg, IDC_GPGPREFS_EXEINF,
145              else {                          _("GnuPG exe file location (full path with added gpg.exe)"));
146                  char * t = get_gnupg_cfgfile( );          SetDlgItemText ( dlg, IDC_GPGPREFS_LOCALINF,
147                  if( t && !file_exist_check(t) )                          _("Locale directory (to access the translation files)"));
148                      set_reg_entry_gpg( "OptFile", t );          SetDlgItemText (dlg, IDC_GPGPREFS_ASKLEVEL, _("Ask for the signature class during key sign"));
149                  else          SetDlgItemText (dlg, IDC_GPGPREFS_ASKEXPIRE, _("Allow to set an expiration date for signatures"));
150                      set_reg_entry_gpg( "OptFile", "" );          SetDlgItemText (dlg, IDC_GPGPREFS_CMTINF, _("Comment in armored files"));
151                  free_if_alloc( t );          SetDlgItemText (dlg, IDC_GPGPREFS_ENCINF, _("Encrypt to this key"));
152              }          SetDlgItemText (dlg, IDC_GPGPREFS_ALLOPTINF, _("General GPG options"));
153              if ( set_reg_entry_gpg( "HomeDir", homedir ) ) {                              SetDlgItemText (dlg, IDC_GPGPREFS_HOMEDLG, _("Browse..."));
154                  msg_box( dlg, _("Could not save 'HomeDir' in the registry."), _("Preferences"), MB_ERR );          SetDlgItemText (dlg, IDC_GPGREFS_EXEDLG, _("Browse..."));
155                  return FALSE;          SetDlgItemText (dlg, IDC_GPGPREFS_LOCDLG, _("Browse..."));
156              }          SetDlgItemText (dlg, IDC_GPGPREFS_OVRDEFAULT, _("&Overwrite default settings"));
157              if( !GetDlgItemText( dlg, IDC_GPGPREFS_EXEDIR, exedir, sizeof exedir -1 ) ) {          SetDlgItemText (dlg, IDCANCEL, _("&Cancel"));
158                  msg_box( dlg, _("Please enter where GPG.exe is located."), _("Preferences"), MB_ERR );  
159                  return FALSE;          gpg4win = load_gpg4win_values (dlg);
160              }          if (!gpg4win) {
161              if( file_exist_check( exedir ) ) {              load_registry_values (dlg);
162                  msg_box( dlg, _("Could not find the GPG program in this directory."), _("Preferences"), MB_ERR );              CheckDlgButton (dlg, IDC_GPGPREFS_OVRDEFAULT, BST_CHECKED);
163                  return FALSE;          }
164              }  
165              if( set_reg_entry_gpg("gpgProgram", exedir ) ) {          p = get_gnupg_cfgfile ();
166                  msg_box( dlg, _("Could not save 'gpgProgram' in the registry"), _("Preferences"), MB_ERR );          if (p) {
167                  return FALSE;              parse_gpg_options (p, &opt);
168              }              free_if_alloc (p);
169              if( GetDlgItemText( dlg, IDC_GPGPREFS_LOCALE, locale_dir, sizeof (locale_dir) -1 ) ) {              if (opt) {
170                  if (dir_exist_check (locale_dir)) {                  if (find_option (opt, "ask-cert-expire"))
171                      log_box( _("Preferences"), MB_ERR, "%s: %s", locale_dir, winpt_strerror (WPTERR_DIR_OPEN));                      CheckDlgButton (dlg, IDC_GPGPREFS_ASKEXPIRE, BST_CHECKED);
172                      return FALSE;                  if (find_option (opt, "ask-cert-level"))
173                  }                      CheckDlgButton (dlg, IDC_GPGPREFS_ASKLEVEL, BST_CHECKED);
174                  set_reg_entry_mo (locale_dir);                  e = find_option (opt, "comment");
175                  set_gettext_file ("winpt", locale_dir);                  if (e != NULL)
176              }                      SetDlgItemText (dlg, IDC_GPGPREFS_COMMENT, e->val);
177              else                  e = find_option (opt, "encrypt-to");
178                  set_reg_entry_mo ("");                  if (e != NULL)
179                        SetDlgItemText (dlg, IDC_GPGPREFS_ENCTO, e->val);
180              p = get_gnupg_cfgfile ();                  release_gpg_options (opt);
181              if( !p ) {              }
182                  msg_box( dlg, _("Could not get GPG config file"), _("Preferences"), MB_ERR );          }
183                  EndDialog( dlg, FALSE );  
184              }          center_window (dlg, NULL);
185              parse_gpg_options( p, &opt );          SetForegroundWindow (dlg);
186            return TRUE;
187              if( IsDlgButtonChecked( dlg, IDC_GPGPREFS_V3SIGS ) )  
188                  modify_entry( opt, ENTRY_SINGLE, "force-v3-sigs", NULL );      case WM_DESTROY:
189              else          gpg4win = false;
190                  delete_option( opt, "force-v3-sigs" );          break;
191    
192              if( (n = GetDlgItemText(dlg, IDC_GPGPREFS_COMMENT, t, sizeof t - 1 ) ))      case WM_SYSCOMMAND:
193                  modify_entry( opt, ENTRY_MULTI, "comment", t );          if (LOWORD (wparam) == SC_CLOSE)
194              else if( n == 0 )              EndDialog (dlg, FALSE);
195                  modify_entry( opt, ENTRY_MULTI, "comment", "\"\"" );          return FALSE;
196              else          
197                  delete_option( opt, "comment" );      case WM_COMMAND:
198            if (HIWORD (wparam) == BN_CLICKED &&
199              if( (n=GetDlgItemText( dlg, IDC_GPGPREFS_ENCTO, t, sizeof t -1 ) ) )              LOWORD (wparam) == IDC_GPGPREFS_OVRDEFAULT) {
200                  modify_entry( opt, ENTRY_MULTI, "encrypt-to", t );              if (IsDlgButtonChecked (dlg, LOWORD (wparam))) {
201              else                  enable_disable_items (dlg, TRUE);
202                  delete_option( opt, "encrypt-to" );                  gpg4win = false;
203                }
204              commit_gpg_options( p, opt );              else {
205              release_gpg_options( opt );                  enable_disable_items (dlg, FALSE);
206              EndDialog( dlg, TRUE );                  gpg4win = true;
207              return TRUE;              }
208                            break;
209          case IDC_GPGPREFS_HOMEDLG:          }
210              const char * home;  
211            switch (LOWORD (wparam)) {
212              home = get_folder_dlg( dlg, _("Choose GPG home directory"), NULL );          case IDC_GPGPREFS_SAVE:
213              if( home )              if (!GetDlgItemText (dlg, IDC_GPGPREFS_HOMEDIR,
214                  SetDlgItemText( dlg, IDC_GPGPREFS_HOMEDIR, home );                                   homedir, sizeof (homedir) -1)) {
215              break;                  msg_box (dlg, _("Please enter the GnuPG home directory."),
216                             _("Preferences"), MB_ERR);
217          case IDC_GPGREFS_EXEDLG:                  return FALSE;
218              const char * bin;              }
219              bin = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG binary"), _("Executable Files (*.exe)\0*.exe\0\0"), NULL );              if (dir_exist_check (homedir)) {
220              if( bin )                  _snprintf (t, sizeof (t) - 1, "%s: %s", homedir,
221                  SetDlgItemText( dlg, IDC_GPGPREFS_EXEDIR, bin );                             winpt_strerror (WPTERR_DIR_OPEN));
222              return TRUE;                  msg_box (dlg, t, _("Preferences"), MB_ERR);
223                                return FALSE;
224          case IDC_GPGPREFS_OPTDLG:              }
225              const char * opt;              
226              opt = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG config file"), NULL, NULL );              if (!gpg4win && set_reg_entry_gpg ("HomeDir", homedir)) {
227              if( opt )                  msg_box (dlg, _("Could not save 'HomeDir' in the registry."),
228                  SetDlgItemText( dlg, IDC_GPGPREFS_OPTFILE, opt );                           _("Preferences"), MB_ERR);
229              return TRUE;                  return FALSE;
230          }              }
231          break;              if( !GetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR,
232      }                                   exedir, sizeof (exedir) -1)) {
233                        msg_box (dlg, _("Please enter where GPG.exe is located."),
234      return FALSE;                           _("Preferences"), MB_ERR);
235  } /* gpgprefs_dlg_proc */                  return FALSE;
236                }
237                if (file_exist_check (exedir)) {
238                    msg_box (dlg, _("Could not find the GPG program in this directory."),
239                             _("Preferences"), MB_ERR);
240                    return FALSE;
241                }
242                if (!gpg4win && set_reg_entry_gpg ("gpgProgram", exedir)) {
243                    msg_box (dlg, _("Could not save 'gpgProgram' in the registry"),
244                             _("Preferences"), MB_ERR);
245                    return FALSE;
246                }
247                if (GetDlgItemText (dlg, IDC_GPGPREFS_LOCALE,
248                                    locale_dir, sizeof (locale_dir) -1) > 0) {
249                    if (dir_exist_check (locale_dir)) {
250                        log_box ( _("Preferences"), MB_ERR, "%s: %s", locale_dir,
251                                 winpt_strerror (WPTERR_DIR_OPEN));
252                        return FALSE;
253                    }
254                    if (!gpg4win)
255                        set_reg_entry_mo (locale_dir);
256                    set_gettext_file ("winpt", locale_dir);
257                }
258                else if (!gpg4win)
259                    set_reg_entry_mo ("");
260    
261                p = get_gnupg_cfgfile ();
262                if (!p) {
263                    msg_box (dlg, _("Could not get GPG config file"),
264                             _("Preferences"), MB_ERR);
265                    EndDialog (dlg, FALSE);
266                }
267                parse_gpg_options (p, &opt);
268    
269                if (IsDlgButtonChecked (dlg, IDC_GPGPREFS_ASKLEVEL)) {
270                    modify_entry (opt, ENTRY_SINGLE, "ask-cert-level", NULL);
271                    reg_prefs.gpg.ask_cert_level = 1;
272                }
273                else {
274                    delete_option (opt, "ask-cert-level");
275                    reg_prefs.gpg.ask_cert_level = 0;
276                }
277                if (IsDlgButtonChecked (dlg, IDC_GPGPREFS_ASKEXPIRE)) {
278                    modify_entry (opt, ENTRY_SINGLE, "ask-cert-expire", NULL);
279                    reg_prefs.gpg.ask_cert_expire = 1;
280                }
281                else {
282                    delete_option (opt, "ask-cert-expire");
283                    reg_prefs.gpg.ask_cert_expire = 0;
284                }
285    
286                n = GetDlgItemText(dlg, IDC_GPGPREFS_COMMENT, t, sizeof t - 1);
287                if (n > 0)
288                    modify_entry (opt, ENTRY_MULTI, "comment", t);
289                else if (n == 0)
290                    modify_entry (opt, ENTRY_MULTI, "comment", "\"\"");
291                else
292                    delete_option (opt, "comment");
293    
294                n = GetDlgItemText (dlg, IDC_GPGPREFS_ENCTO, t, sizeof t -1);
295                if (n > 0)
296                    modify_entry (opt, ENTRY_MULTI, "encrypt-to", t);
297                else
298                    delete_option (opt, "encrypt-to");
299    
300                commit_gpg_options (p, opt);
301                release_gpg_options (opt);
302                EndDialog (dlg, TRUE);
303                return TRUE;
304                
305            case IDC_GPGPREFS_HOMEDLG:
306                folder = get_folder_dlg (dlg, _("Choose GPG home directory"), NULL);
307                if (folder) {
308                    char *name;
309    
310                    SetDlgItemText (dlg, IDC_GPGPREFS_HOMEDIR, folder);
311                    if (GetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR,
312                                        exedir, DIM (exedir)-1) > 0)
313                        break;
314                    name = make_filename (folder, "gpg", "exe");
315                    if (file_exist_check (name) == 0)
316                        SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, name);
317                    free_if_alloc (name);
318                    name = make_filename (folder, "gpg", "conf");
319                    if (file_exist_check (name) == 0)
320                        SetDlgItemText (dlg, IDC_GPGPREFS_OPTFILE, name);
321                    free_if_alloc (name);
322                }
323                return TRUE;
324    
325            case IDC_GPGPREFS_LOCDLG:
326                folder = get_folder_dlg (dlg, _("Choose locale directory"), NULL);
327                if (folder)
328                    SetDlgItemText (dlg, IDC_GPGPREFS_LOCALE, folder);
329                return TRUE;
330                
331            case IDC_GPGREFS_EXEDLG:
332                s = get_fileopen_dlg (dlg, _("Choose GPG binary"),
333                                      "Executable Files (*.exe)\0*.exe\0\0",
334                                      NULL);
335                if (s)
336                    SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, s);
337                return TRUE;
338                
339            case IDCANCEL:
340                EndDialog (dlg, FALSE);
341                return TRUE;
342            }
343            break;
344        }
345        
346        return FALSE;
347    }

Legend:
Removed from v.4  
changed lines
  Added in v.181

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26