// CameraInfo.cpp: 实现文件 // #include "pch.h" #include "DMS.h" #include "CameraInfo.h" #include "afxdialogex.h" // CameraInfo 对话框 IMPLEMENT_DYNAMIC(CameraInfo, CDialogEx) CameraInfo::CameraInfo(CWnd* pParent /*=nullptr*/) : CDialogEx(IDD_DLG_CAMERA_INFO, pParent) ,m_szMsg("") ,m_iAct(0) { } CameraInfo::CameraInfo(CWnd* pParent, LPCTSTR szResultMsg) : CDialogEx(IDD_DLG_CAMERA_INFO, pParent) , m_szMsg(szResultMsg) , m_iAct(0) { } CameraInfo::~CameraInfo() { } void CameraInfo::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); DDX_Control(pDX, IDC_STATIC_MSG, m_Ctrl_Label_Msg); DDX_Control(pDX, IDC_STATIC_CONFIRM, m_Ctrl_Label_Confirm); } BEGIN_MESSAGE_MAP(CameraInfo, CDialogEx) ON_BN_CLICKED(ID_BTN_MOVE, &CameraInfo::OnBnClickedBtnMove) ON_BN_CLICKED(ID_BTN_DEL, &CameraInfo::OnBnClickedBtnDel) END_MESSAGE_MAP() // CameraInfo 消息处理程序 BOOL CameraInfo::OnInitDialog() { CDialogEx::OnInitDialog(); m_Ctrl_Label_Msg.SetWindowText(m_szMsg); m_Ctrl_Label_Confirm.SetWindowText(_T("目前图片文件在U盘")); return TRUE; } void CameraInfo::OnBnClickedBtnMove() { CString szSrc(_T("D://A")); CString szDes(_T("C://A")); Utils::MoveFolder(szSrc, szDes); MessageBox("移动成功"); } void CameraInfo::OnBnClickedBtnDel() { CString szDes(_T("C://A")); Utils::DeleteFolder(szDes); MessageBox("删除成功"); }