#pragma once #include "resource.h" #include "afxwin.h" #include "GsPreviewCtrl.h" #include "uiiado.h" #include "EarThwormDef.h" class CBZZJDlg : public CDialog { DECLARE_DYNAMIC(CBZZJDlg) public: CBZZJDlg(CWnd* pParent = NULL); virtual ~CBZZJDlg(); //{{AFX_DATA(CBZZJDlg) enum { IDD = IDD_BZZJ_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; 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; ESection m_eShape; AcDbCurve* m_pCurve; void GetColumnParam(ColumnParam& ColParam) const; protected: virtual void DoDataExchange(CDataExchange* pDX); //{{AFX_MSG(CCRZZDlg) virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnSelchangeCmbShape(); afx_msg void OnSelchangeCmbsteel(); //}}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(); public: double m_dTopEl; double m_dH; CString m_sMaterial; AcDbDatabase *m_pDb; AcDbObjectId m_idCol; CString m_sNo; afx_msg void OnBnClickedOk(); afx_msg void OnDestroy(); double m_dY; double m_dX; CStatic m_wndRow; CStatic m_wndCol; CString m_sLoadNo; double m_dXHLoad; double m_dYHLoad; double m_dXULoad; double m_dYULoad; int m_nLoadType; CString m_sLoadInf; int m_nEQ; };