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

Diff of /trunk/Src/wptFilePrefsDlg.cpp

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

revision 35 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 36 by werner, Thu Oct 27 15:25:13 2005 UTC
# Line 1  Line 1 
 /* wptFilePrefs.cpp - File Manager preferences  
  *      Copyright (C) 2001, 2002 Timo Schulz  
  *  
  * This file is part of WinPT.  
  *  
  * WinPT is free software; you can redistribute it and/or modify  
  * it under the terms of the GNU General Public License as published by  
  * the Free Software Foundation; either version 2 of the License, or  
  * (at your option) any later version.  
  *  
  * WinPT is distributed in the hope that it will be useful,  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
  * GNU General Public License for more details.  
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
  */  
   
 #include <windows.h>  
   
 #include "../resource.h"  
 #include "wptW32API.h"  
   
 LRESULT CALLBACK  
 file_prefs_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam )  
 {  
     HWND cb;      
       
     switch( msg )  {  
     case WM_INITDIALOG:  
         cb = GetDlgItem( dlg, IDC_FILE_PREFS_ALGO );      
         combox_add_string( cb, (char *)"3DES" );  
         combox_add_string( cb, (char *)"CAST5" );  
         combox_add_string( cb, (char *)"BLOWFISH" );  
         combox_add_string( cb, (char *)"AES128" );  
         combox_add_string( cb, (char *)"AES192" );  
         combox_add_string( cb, (char *)"AES256" );  
         combox_add_string( cb, (char *)"TWOFISH" );  
         combox_add_string( cb, CB_SETCURSEL, (WPARAM)1, 0 );  
         return TRUE;  
           
     case WM_SYSCOMMAND:  
         if( LOWORD( wparam ) == SC_CLOSE )  
             EndDialog( dlg, TRUE );  
         return FALSE;  
           
     case WM_COMMAND:  
         switch( LOWORD(wparam) ) {  
         case IDOK:  
             EndDialog( dlg, TRUE );  
             return TRUE;  
         }  
         break;  
     }  
       
     return FALSE;  
 } /* file_prefs_dlg_proc */  
1    /* wptFilePrefs.cpp - File Manager preferences
2     *      Copyright (C) 2001, 2002 Timo Schulz
3     *
4     * This file is part of WinPT.
5     *
6     * 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
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * WinPT is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with WinPT; if not, write to the Free Software Foundation,
18     * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19     */
20    
21    #ifdef HAVE_CONFIG_H
22    #include <config.h>
23    #endif
24    
25    #include <windows.h>
26    #include <windows.h>
27    
28    #include "../resource.h"
29    #include "wptW32API.h"
30    
31    LRESULT CALLBACK
32    file_prefs_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam )
33    {
34        HWND cb;    
35        
36        switch( msg )  {
37        case WM_INITDIALOG:
38            cb = GetDlgItem( dlg, IDC_FILE_PREFS_ALGO );    
39            combox_add_string( cb, (char *)"3DES" );
40            combox_add_string( cb, (char *)"CAST5" );
41            combox_add_string( cb, (char *)"BLOWFISH" );
42            combox_add_string( cb, (char *)"AES128" );
43            combox_add_string( cb, (char *)"AES192" );
44            combox_add_string( cb, (char *)"AES256" );
45            combox_add_string( cb, (char *)"TWOFISH" );
46            combox_add_string( cb, CB_SETCURSEL, (WPARAM)1, 0 );
47            return TRUE;
48            
49        case WM_SYSCOMMAND:
50            if( LOWORD( wparam ) == SC_CLOSE )
51                EndDialog( dlg, TRUE );
52            return FALSE;
53            
54        case WM_COMMAND:
55            switch( LOWORD(wparam) ) {
56            case IDOK:
57                EndDialog( dlg, TRUE );
58                return TRUE;
59            }
60            break;
61        }
62        
63        return FALSE;
64    } /* file_prefs_dlg_proc */

Legend:
Removed from v.35  
changed lines
  Added in v.36

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26