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