123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // Dlg_OCX.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "Dlg_Flash.h"
- // CDlg_Flash 对话框
- IMPLEMENT_DYNAMIC(CDlg_Flash, CPropertyPage)
- CDlg_Flash::CDlg_Flash()
- : CPropertyPage(CDlg_Flash::IDD)
- , m_sEdit_FlashPath(_T(""))
- {
- }
- CDlg_Flash::~CDlg_Flash()
- {
- }
- void CDlg_Flash::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_EDIT_FLASHPATH, m_sEdit_FlashPath);
- }
- BEGIN_MESSAGE_MAP(CDlg_Flash, CPropertyPage)
- ON_BN_CLICKED(IDC_BTN_BROWSE, OnBnClickedBtnBrowse)
- END_MESSAGE_MAP()
- // CDlg_Flash 消息处理程序
- void CDlg_Flash::OnBnClickedBtnBrowse()
- {
- CFileDialog dlg(TRUE,NULL,
- NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT |OFN_ALLOWMULTISELECT|OFN_ENABLESIZING ,
- _T("SWF Files (*.swf)|*.swf||"),NULL);
- if (dlg.DoModal() != IDOK)
- {
- return;
- }
- CString sPath = dlg.GetPathName();
- m_sEdit_FlashPath = sPath;
- UpdateData( false );
- }
|