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

Annotation of /trunk/Src/wptFilePrefsDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (hide annotations)
Mon Oct 31 21:14:11 2005 UTC (19 years, 4 months ago) by werner
File size: 1949 byte(s)
More changes.  Compiles again but there are at least gettext issues with
w32-gettext.c.  I can't get a gpg-error build with ENABLE_NLS.

1 werner 36 /* 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    
27 werner 47 #include "resource.h"
28 werner 36 #include "wptW32API.h"
29    
30     LRESULT CALLBACK
31     file_prefs_dlg_proc( HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam )
32     {
33     HWND cb;
34    
35     switch( msg ) {
36     case WM_INITDIALOG:
37     cb = GetDlgItem( dlg, IDC_FILE_PREFS_ALGO );
38     combox_add_string( cb, (char *)"3DES" );
39     combox_add_string( cb, (char *)"CAST5" );
40     combox_add_string( cb, (char *)"BLOWFISH" );
41     combox_add_string( cb, (char *)"AES128" );
42     combox_add_string( cb, (char *)"AES192" );
43     combox_add_string( cb, (char *)"AES256" );
44     combox_add_string( cb, (char *)"TWOFISH" );
45     combox_add_string( cb, CB_SETCURSEL, (WPARAM)1, 0 );
46     return TRUE;
47    
48     case WM_SYSCOMMAND:
49     if( LOWORD( wparam ) == SC_CLOSE )
50     EndDialog( dlg, TRUE );
51     return FALSE;
52    
53     case WM_COMMAND:
54     switch( LOWORD(wparam) ) {
55     case IDOK:
56     EndDialog( dlg, TRUE );
57     return TRUE;
58     }
59     break;
60     }
61    
62     return FALSE;
63     } /* file_prefs_dlg_proc */

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26