#ifndef _KTPIDPIPEPAGEDLG_H__ #define _KTPIDPIPEPAGEDLG_H__ #if _MSC_VER > 1000 #pragma once #endif #include "earthwormdef.h" #include "Resource.h" class KTPIDPipePageDlg : public CDialog { public: KTPIDPipePageDlg(CWnd* pParent = NULL); ~KTPIDPipePageDlg(); public: void SetPIDParam(PID::PIDPipeParam* pPipeParam); BOOL UpdateDataEx(); void OnAddPipeLine(); public: //{{AFX_DATA(KTPIDPipePageDlg) enum { IDD = IDD_PIDPIPEPAGEDLG }; CListBox m_wndPressList; CListCtrl m_wndHeatTraList; CListBox m_wndDNList; CListCtrl m_wndMedList; //}}AFX_DATA //{{AFX_VIRTUAL(KTPIDPipePageDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL protected: //{{AFX_MSG(KTPIDPipePageDlg) virtual BOOL OnInitDialog(); afx_msg void OnClickMediumlist(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnSelchangeListdn(); //}}AFX_MSG DECLARE_MESSAGE_MAP() void InitDNParam(); BOOL InitMediumFromDb(); void InitPressFromDb(); void InitHeatTraFromDb(); private: CImageList m_ImageList; PID::PIDPipeParam *m_pPipeParam; CUIISQLiteServer *m_pADOServer; //Êý¾ÝÁ¬½Ó }; inline void KTPIDPipePageDlg::SetPIDParam(PID::PIDPipeParam* pPipeParam) { m_pPipeParam = pPipeParam; } //{{AFX_INSERT_LOCATION}} #endif //_KTPIDPIPEPAGEDLG_H__