#pragma once #include "resource.h" #include "GsPreviewCtrl.h" #include "uiiado.h" class CFZHLDlg : public CDialog { DECLARE_DYNAMIC(CFZHLDlg) public: CFZHLDlg(CWnd* pParent = NULL); virtual ~CFZHLDlg(); //{{AFX_DATA(CFZHLDlg) enum { IDD = IDD_FZHL_DLG }; CComboBox m_wndComSteel; CComboBox m_wndComboYSize; CComboBox m_wndComboXSize; CComboBox m_wndComboShape; CGsPreviewCtrl m_wndPreview; double m_dXOffset; double m_dYOffset; int m_iInsertType; int m_nShape; int m_nSteel; double m_dXSize; double m_dYSize; CString m_sA; CString m_sB; CString m_sC; CString m_sD; //}}AFX_DATA CString m_sBlockName; AcDbObjectId m_idStellCol; CUIISQLiteServer m_dbSQLite; void GetColumnParam(ColumnParam& ColParam) const; void SetFromCol(const AcDbObjectId& id); //{{AFX_VIRTUAL(CFZHLDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); //}}AFX_VIRTUAL protected: //{{AFX_MSG(CFZHLDlg) virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnSelchangeCmbShape(); afx_msg void OnSelchangeCmbsteel(); afx_msg void OnBnClickedOk(); afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() protected: void PreviewColumn(); bool GetActiveViewPortInfo (AcDbDatabase *pDb, ads_real &height, ads_real &width, AcGePoint3d &target, AcGeVector3d &viewDir, ads_real &viewTwist, bool getViewCenter); void SetViewTo(AcGsView *pView, AcDbDatabase *pDb, AcGeMatrix3d& viewMat); Acad::ErrorStatus InitDrawingControl (AcDbDatabase *pDb, const TCHAR *space = ACDB_MODEL_SPACE); AcDbObjectId CreateIStellBlock(); AcDbObjectId CreateOStellBlock(); AcDbObjectId CreateTrapezoidBlock(); void GetXYSizeFromReg(AcDbRegion *pReg); protected: void UpdateColData(); public: double m_dStartEl; double m_dEndEl; double m_dH; CString m_sMaterial; AcDbDatabase *m_pDb; AcDbObjectId m_idCol; CString m_sNo; BOOL m_bNOSetDefault; CString m_sHatch; CString m_sModel; CButton m_wndBtHatch; afx_msg void OnBnClickedCheck1(); afx_msg void OnBnClickedBtnFill(); BOOL m_bAddHatch; bool m_bInplace; afx_msg void OnBnClickedCheckHatch(); };