#pragma once #include "resource.h" #include #include "afxwin.h" class CFZSS2Dlg : public CDialog { DECLARE_DYNAMIC(CFZSS2Dlg) public: //CFZSS2Dlg(CWnd* pParent = NULL); virtual ~CFZSS2Dlg(); enum { IDD = IDD_FZSS2_DLG }; CFZSS2Dlg(const std::vector& arWidthd, double dOffFrWall, double dEl, double dInThick, double dOutThick, CWnd* pParent = NULL); protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); void initCtrls(); DECLARE_MESSAGE_MAP() public: afx_msg void OnBnClickedOk(); afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);//EN_KILLFOCUS afx_msg void OnKillFocus(); void getUserInputData(std::vector &arWidths); public: double m_dOffFrWall; double m_dEl; double m_dInThick; double m_dOutThick; CEdit m_EditW; CXListCtrl m_ListCtrl; int m_Row; int m_Col; std::vector m_arWidths; const std::vector& m_arWidthd; };