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

70 lines
1.3 KiB
C++

#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__