#pragma once #include "resource.h" #include "GsPreviewCtrl.h" #include "uiiado.h" class CCRZZDlg : public CDialog { public: CCRZZDlg(CWnd* pParent = NULL); virtual~CCRZZDlg(void); public: //{{AFX_DATA(CCRZZDlg) enum { IDD = IDD_CRZZ_DLG }; CComboBox m_wndComSteel; CComboBox m_wndComboAngle; CComboBox m_wndComboYSize; CComboBox m_wndComboXSize; CComboBox m_wndComboShape; CGsPreviewCtrl m_wndPreview; double m_dXOffset; double m_dYOffset; double m_dRotAngle; 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(CCRZZDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); //}}AFX_VIRTUAL protected: //{{AFX_MSG(CCRZZDlg) virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnSelchangeCmbShape(); afx_msg void OnSelchangeCmbsteel(); afx_msg void OnBnClickedOk(); afx_msg void OnDestroy(); afx_msg void OnBnClickedBtnFill(); afx_msg void OnBnClickedCheck1(); afx_msg void OnBnClickedCheckHatch(); //}}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(); protected: void UpdateColData(); public: double m_dBomEl; 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; BOOL m_bAddHatch; bool m_bInplace; };