1 #pragma once 2 #include "BaseDialog.h" 3 #include "CListBoxEnhanced.h" 4 5 6 // CCleanupRangeDlg 对话框 7 8 class CCleanupRangeDlg : public CBaseDialog 9 { 10 DECLARE_DYNAMIC(CCleanupRangeDlg) 11 12 public: 13 CCleanupRangeDlg(CWnd* pParent = nullptr); // 标准构造函数 14 virtual ~CCleanupRangeDlg(); 15 IsCleanFileNotExist()16 bool IsCleanFileNotExist() const { return m_clean_file_not_exist; } IsCleanFileNotInMediaLibDir()17 bool IsCleanFileNotInMediaLibDir() const { return m_clean_file_not_in_media_lib_dir; } IsCleanFileWrong()18 bool IsCleanFileWrong() const { return m_clean_file_wrong; } IsCleanFileTooShort()19 bool IsCleanFileTooShort() const { return m_clean_file_too_short; } IsCleanFileNonMainInOsu()20 bool IsCleanFileNonMainInOsu() const { return m_clean_file_non_main_in_osu; }; SetCleanFileNonMainInOsuEnable(bool enable)21 void SetCleanFileNonMainInOsuEnable(bool enable) { m_clean_file_non_main_in_osu_enable = enable; }; 22 23 // 对话框数据 24 #ifdef AFX_DESIGN_TIME 25 enum { IDD = IDD_CLEAN_UP_RANGE_DIALOG }; 26 #endif 27 28 protected: 29 CListBoxEnhanced m_list_ctrl; 30 bool m_clean_file_not_exist{}; 31 bool m_clean_file_not_in_media_lib_dir{}; 32 bool m_clean_file_wrong{}; 33 bool m_clean_file_too_short{}; 34 bool m_clean_file_non_main_in_osu{}; 35 bool m_clean_file_non_main_in_osu_enable{}; 36 37 protected: 38 virtual CString GetDialogName() const override; 39 virtual bool InitializeControls() override; 40 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 41 42 DECLARE_MESSAGE_MAP() 43 public: 44 virtual BOOL OnInitDialog(); 45 virtual void OnOK(); 46 protected: 47 afx_msg LRESULT OnListboxSelChanged(WPARAM wParam, LPARAM lParam); 48 }; 49