1 #pragma once 2 #include "BaseDialog.h" 3 4 // CTagEditDlg 对话框 5 6 class CTagEditDlg : public CBaseDialog 7 { 8 DECLARE_DYNAMIC(CTagEditDlg) 9 10 public: 11 CTagEditDlg(vector<SongInfo>& file_list, int index, CWnd* pParent = nullptr); // 标准构造函数 12 virtual ~CTagEditDlg(); 13 14 // 对话框数据 15 #ifdef AFX_DESIGN_TIME 16 enum { IDD = IDD_TAG_EDIT_DIALOG }; 17 #endif 18 19 protected: 20 vector<SongInfo>& m_file_list; 21 int m_index; 22 CComboBox m_genre_combo; 23 24 void ShowInfo(); 25 26 virtual CString GetDialogName() const override; 27 virtual bool InitializeControls() override; 28 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 29 30 DECLARE_MESSAGE_MAP() 31 public: 32 virtual BOOL OnInitDialog(); 33 afx_msg void OnBnClickedPreviousButton(); 34 afx_msg void OnBnClickedNextButton(); 35 afx_msg void OnBnClickedSaveButton(); 36 }; 37