1 #pragma once 2 #include "afxdialogex.h" 3 #include "CTabCtrlEx.h" 4 #include "FindDlg.h" 5 #include "FindListDlg.h" 6 7 // CFindContainerDlg 对话框 8 9 class CFindContainerDlg : public CBaseDialog 10 { 11 DECLARE_DYNAMIC(CFindContainerDlg) 12 13 public: 14 CFindContainerDlg(CWnd* pParent = nullptr); // 标准构造函数 15 virtual ~CFindContainerDlg(); 16 17 void LoadChildrenConfig(); 18 void SaveChildrenConfig(); 19 20 // 对话框数据 21 #ifdef AFX_DESIGN_TIME 22 enum { IDD = IDD_FIND_CONTAINER_DIALOG }; 23 #endif 24 25 private: 26 CTabCtrlEx m_tab_ctrl; 27 CFindDlg m_find_song_dlg; 28 CFindListDlg* m_find_list_dlg{}; 29 int m_tab_selected{}; 30 31 protected: 32 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 33 virtual CString GetDialogName() const override; 34 virtual bool InitializeControls() override; 35 36 DECLARE_MESSAGE_MAP() 37 public: 38 virtual BOOL OnInitDialog(); 39 virtual void OnOK(); 40 protected: 41 afx_msg LRESULT OnPlaySelectedBtnEnable(WPARAM wParam, LPARAM lParam); 42 public: 43 afx_msg void OnDestroy(); 44 }; 45