#pragma once #include "resource.h" #include "CImageShowStatic.h" class CGZDJDlg : public CDialog { DECLARE_DYNAMIC(CGZDJDlg) public: CGZDJDlg(CWnd* pParent = NULL); virtual ~CGZDJDlg(); enum { IDD = IDD_GZDJ_DLG }; void ShowType(int nMode) { m_nMode = nMode; if (m_nMode >= 2) m_bHasPipeCp = FALSE;} void SetDN(double dDNOn, LPCTSTR pszName) { m_dDNOn = dDNOn; m_sName = pszName; } void SetDNMin(double dDN2) { m_dDNMin = dDN2; }; BOOL GetHolderData(CString& sName,AecDbObjXDataMap &mpData, CString &sScrFullPathFile); protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedRadio1(); afx_msg void OnBnClickedRadio2(); afx_msg void OnBnClickedCancel(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnSizing(UINT fwSide, LPRECT pRect); afx_msg void OnCbnSelchangeCombo1(); afx_msg void OnNMDblclkList2(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedButtonhf(); afx_msg void OnBnClickedButtonhf2(); afx_msg void OnBnClickedButton1(); afx_msg void OnBnClickedRadio3(); afx_msg void OnBnClickedButton2(); protected: void ShowHolderList(); void ShowDataTable(CString& sJpg); void ShowToListCtrl(CString &sSQL, CListCtrl *pm_wndList); void ShowPipeCp(); void FilltoXData(CListCtrl *pListCtrl); void FilltoXData2(CListCtrl *pListCtrl); BOOL MakeSureDNisRight(CListCtrl* pListCtrl); CComboBox m_wndCombList; CListCtrl m_wndListHld; CListCtrl m_wndListPCP; //CStatic m_wndPreview; CImageShowStatic m_wndPreview; CStringArray m_arJPGFiles; CUIISQLiteServer m_db; double m_dDNOn; double m_dDNMin; int m_nPipeCp; int m_nMode; int m_n2DStyle; BOOL m_bHasPipeCp; CString m_sName; CString m_sScrFullPathFile; CRect m_rcDefault; CSize m_szDefault; AecDbObjXDataMap m_xData; CBitmap m_bmp2D1; CBitmap m_bmp2D2; CBitmap m_bmp2D3; CButton m_wndBT2D1; CButton m_wndBT2D2; CButton m_wndBT2D3; };