43 lines
926 B
C++
43 lines
926 B
C++
#pragma once
|
|
#include "afxcmn.h"
|
|
#include "MakeDim.h"
|
|
#include "afxwin.h"
|
|
|
|
class CTJSZDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CTJSZDlg)
|
|
|
|
public:
|
|
CTJSZDlg(const MK_DIM::NodeDim::ENodeType &type
|
|
, const std::vector<CString> &tanks
|
|
, CWnd* pParent = NULL);
|
|
virtual ~CTJSZDlg();
|
|
|
|
#ifdef AFX_DESIGN_TIME
|
|
enum { IDD = IDD_TJSZ_DLG };
|
|
#endif
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
virtual BOOL OnInitDialog();
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
protected:
|
|
CListCtrl m_lstCtrl;
|
|
CEdit m_editLable;
|
|
|
|
MK_DIM::NodeDim::ENodeType m_type;
|
|
std::vector<CString> m_tanks;
|
|
std::map<CString, double> m_mapDist;
|
|
std::map<CString, int> m_mapVenNum;
|
|
CString m_sEditLable;
|
|
int m_Idx, m_subIdx;
|
|
public:
|
|
afx_msg void OnBnClickedOk();
|
|
afx_msg void OnBnClickedCancle();
|
|
afx_msg void OnNMDblclkList1(NMHDR *pNMHDR, LRESULT *pResult);
|
|
afx_msg void OnEnKillfocusEdit1();
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
};
|