#if !defined(AFX_KTMEDIUMDLG_H__DE4CAFBF_B329_4895_B083_11BF099D1BE6__INCLUDED_) #define AFX_KTMEDIUMDLG_H__DE4CAFBF_B329_4895_B083_11BF099D1BE6__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include "Resource.h" #include "EarThwormDef.h" class KTMediumDlg : public CDialog { public: KTMediumDlg(CWnd* pParent = NULL); void SetADOServer(KTADODatabase* pADOServer); void SetPipeParam(WPipe::PipeParam* pPipePar); void UpdateParamDlgFromParam(); public: //{{AFX_DATA(KTMediumDlg) enum { IDD = IDD_MEDIUNDLG }; CListBox m_wndPressList; CListCtrl m_wndListCtrl; //}}AFX_DATA //{{AFX_VIRTUAL(KTMediumDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL protected: //{{AFX_MSG(KTMediumDlg) virtual BOOL OnInitDialog(); afx_msg void OnClickMediumlist(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnSelchangeListpreess(); afx_msg void OnBtcustmor(); //}}AFX_MSG DECLARE_MESSAGE_MAP() protected: BOOL InitMediumFromDb(); void InitPressFromDb(); protected: CImageList m_ImageList; //ͼ±ê WPipe::PipeParam* m_pPipePar; KTADODatabase* m_pADOServer; }; inline void KTMediumDlg::SetPipeParam(WPipe::PipeParam* pPipePar) { m_pPipePar = pPipePar; } //{{AFX_INSERT_LOCATION}} #endif//