1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- // Dlg_CreateFile.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "SupportSmsPlatform.h"
- #include "Dlg_CreateFile.h"
- #include ".\dlg_createfile.h"
- // CDlg_CreateFile 对话框
- IMPLEMENT_DYNAMIC(CDlg_CreateFile, CDialog)
- CDlg_CreateFile::CDlg_CreateFile(CWnd* pParent /*=NULL*/)
- : CDialog(CDlg_CreateFile::IDD, pParent)
- , m_sEdit_FilePath(_T(""))
- , m_sEdit_Format(_T(""))
- {
- }
- CDlg_CreateFile::~CDlg_CreateFile()
- {
- }
- void CDlg_CreateFile::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_EDIT_FILEPATH, m_sEdit_FilePath);
- DDX_Text(pDX, IDC_EDIT_CONTENT, m_sEdit_Format);
- }
- BEGIN_MESSAGE_MAP(CDlg_CreateFile, CDialog)
- ON_BN_CLICKED(IDC_BTN_BROWSE, OnBnClickedBtnBrowse)
- END_MESSAGE_MAP()
- // CDlg_CreateFile 消息处理程序
- BOOL CDlg_CreateFile::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: 在此添加额外的初始化
- GetIni();
- return TRUE; // return TRUE unless you set the focus to a control
- // 异常: OCX 属性页应返回 FALSE
- }
- void CDlg_CreateFile::GetIni()
- {
- UpdateData( false );
- }
- void CDlg_CreateFile::SetIni()
- {
- UpdateData( );
- }
- bool CDlg_CreateFile::Apply()
- {
- SetIni();
- return true;
- }
- void CDlg_CreateFile::OnBnClickedBtnBrowse()
- {
- CFileDialog dlg(TRUE,NULL,
- NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT |OFN_ALLOWMULTISELECT|OFN_ENABLESIZING ,
- _T("ALL Files (*.*)|*.*||"),NULL);
- if (dlg.DoModal() != IDOK)
- {
- return;
- }
- m_sEdit_FilePath = dlg.GetPathName();
- UpdateData( false );
- }
|