00001
00002
00003
00004
00005
00006 #include "stdafx.h"
00007 #include "FdmApp.h"
00008 #include "Dlg_SavePassword.h"
00009
00010 #ifdef _DEBUG
00011 #define new DEBUG_NEW
00012 #undef THIS_FILE
00013 static char THIS_FILE[] = __FILE__;
00014 #endif
00015
00016 CDlg_SavePassword::CDlg_SavePassword(CWnd* pParent )
00017 : CDialog(CDlg_SavePassword::IDD, pParent)
00018 {
00019
00020
00021
00022 }
00023
00024 void CDlg_SavePassword::DoDataExchange(CDataExchange* pDX)
00025 {
00026 CDialog::DoDataExchange(pDX);
00027
00028
00029
00030 }
00031
00032 BEGIN_MESSAGE_MAP(CDlg_SavePassword, CDialog)
00033
00034
00035 END_MESSAGE_MAP()
00036
00037 void CDlg_SavePassword::ApplyLanguage()
00038 {
00039 CString str = LS (L_SAVEPASSWORD_0);
00040 str += "\n"; str += LS (L_SAVEPASSWORD_1);
00041 SetDlgItemText (IDC__MSG, str);
00042
00043 fsDlgLngInfo lnginfo [] = {
00044 fsDlgLngInfo (IDC_DONTSUGGEST, L_DONTSUGGESTTOSAVEPWDS),
00045 fsDlgLngInfo (IDOK, L_YES),
00046 fsDlgLngInfo (IDCANCEL, L_NO),
00047 };
00048
00049 _LngMgr.ApplyLanguage (this, lnginfo, sizeof (lnginfo) / sizeof (fsDlgLngInfo), L_SAVEPASSWORD);
00050 }
00051
00052 void CDlg_SavePassword::OnOK()
00053 {
00054 if (IsDlgButtonChecked (IDC_DONTSUGGEST) == BST_CHECKED)
00055 _App.SM_PwdsManualAddition (TRUE);
00056
00057 CDialog::OnOK();
00058 }
00059
00060 void CDlg_SavePassword::OnCancel()
00061 {
00062 if (IsDlgButtonChecked (IDC_DONTSUGGEST) == BST_CHECKED)
00063 _App.SM_PwdsManualAddition (TRUE);
00064
00065 CDialog::OnCancel();
00066 }
00067
00068 BOOL CDlg_SavePassword::OnInitDialog()
00069 {
00070 CDialog::OnInitDialog();
00071
00072 ApplyLanguage ();
00073
00074 return TRUE;
00075 }