#pragma once #include "resource.h" #include #include #include #include #include #include class CYBSZDlg : public CDialog { DECLARE_DYNAMIC(CYBSZDlg) public: CYBSZDlg(CWnd* pParent = NULL); virtual ~CYBSZDlg(); enum { IDD = IDD_YBSZ_DLG }; struct Record { struct _compare_ { bool operator () (const Record& rc1, const Record& rc2) const { return rc1._sShangHua < rc2._sShangHua; } }; CString _sShangHua, _sYuanBiao, _sYuan; }; protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); void initCtrls(); DECLARE_MESSAGE_MAP() afx_msg void OnBnClickedBtnAdd(); afx_msg void OnBnClickedBtnMod(); afx_msg void OnBnClickedBtnDel(); afx_msg void OnCbnSelchangeType(); afx_msg void OnBnClickedButtonOk(); afx_msg void OnDblclkList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnRlclkList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR); afx_msg void OnBnClickedOpenTmp(); private: void Ini2Datas(LPCTSTR pszIni, LPCTSTR pszSection); void Datas2Ini(LPCTSTR pszIni, LPCTSTR pszSection); void refreshList(); void getListContent(std::vector &recordNames); public: static void YBSZ(); private: std::vector m_sStyleNames; CString m_sComboType; CFont m_font; CComboBox m_wndComboType; CButton m_btnAdd; CButton m_btnModify; CButton m_btnDel; CXListCtrl m_ListCtrl; std::set m_datas; };