#pragma once #include "resource.h" #include "afxcmn.h" #include "afxwin.h" #include "GsPreviewCtrl.h" #include "uiiado.h" #include "AcDbX3dSolid.h" class AecDbEwPipe; class CPSGDDlg : public CDialog { DECLARE_DYNAMIC(CPSGDDlg) public: CPSGDDlg(CWnd* pParent = NULL); virtual ~CPSGDDlg(); void SetCrossSectionScr(LPCTSTR psz){ m_sCrossSectionScr = psz; } int GetPipe(AecDbEwPipe*& pPipe); enum { IDD = IDD_PSGD_DLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); afx_msg LRESULT OnViewLButtonDown(WPARAM wp,LPARAM lp); afx_msg void OnStnClickedStaticColor(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnBnClickedOk(); void ShowEarthWorm(); void InitPipeList(); public: CString m_sCurrSys; CString m_sMertial; double m_dDn; double m_dt; double m_dOD; int m_nPipeColor; int m_idxRoom; CString m_sPipeNo; CString m_sCrossSectionScr; int m_nFloor; int m_nCableCount; double m_dSpace; BOOL m_bDJ; int m_iNo; CGsPreviewCtrl m_wndViewCtrl; AcDbPolyline* m_pRectCell; CListCtrl m_wndPipeList; CUIISQLiteServer m_dbSQLite; CListBox m_wndListBoxMaters; CListBox m_wndSysListBox; BOOL m_bAllRoom; };