#pragma once #include "afxcmn.h" #include "resource.h" #include "earthwormdef.h" class CReducerDlg : public CDialog { DECLARE_DYNAMIC(CReducerDlg) public: CReducerDlg(CWnd* pParent = NULL); virtual ~CReducerDlg(); void Set(CUIISQLiteServer* pDb,WPipe::PipeParam* pParam,AcGeVector3d& vtDirCur,BOOL bOnlyStandardRec = FALSE); public: enum { IDD = IDD_REDUCERDLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedRadioc(); afx_msg void OnBnClickedRadiou(); afx_msg void OnBnClickedRadiod(); afx_msg void OnLvnItemchangedListreducer(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnDZSize(); afx_msg void OnBnClckedButton2(); afx_msg void OnAddPipe(); DECLARE_MESSAGE_MAP() protected: void InitReducer(); void EnableOffsetRadio(); //PE、PP、PS、PVC、PET、NY、PC、PF、UF bool IsPlasticsMat(WPipe::PipeParam* pParam, CString& sDNo); protected: int m_nPos; CListCtrl m_wndListCtrl; // CUIISQLiteServer* m_pDb; // AcGeVector3d m_vtECCen; //偏心方向 AcGeVector3d m_vtEnter; //输入方向 WPipe::EReducer m_ePos; //类型 BOOL m_bOnlyStandardRec; //仅仅标准变径 WPipe::PipeParam* m_pPipeParam; // CBitmap m_bitMapC,m_bitMapU,m_bitMapD; // CBitmap m_bitMapB,m_bitMapF; CListCtrl m_wndListODThk; CListBox m_wndElbowradList;// };