Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

69 lines
1.5 KiB
C++

#pragma once
#include "resource.h"
#include <XListCtrl.h>
#include <vector>
#include <set>
#include <functional>
#include <algorithm>
#include <string>
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<CString> &recordNames);
public:
static void YBSZ();
private:
std::vector<CString> 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<Record, Record::_compare_> m_datas;
};