#if !defined(AFX_TGNORMWINDLG_H__5AC89594_ED58_477A_8A2B_8237692426D7__INCLUDED_) #define AFX_TGNORMWINDLG_H__5AC89594_ED58_477A_8A2B_8237692426D7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include "resource.h" #include "GsPreviewCtrl.h" #include "EarThwormDef.h" class KTNormWinDlg : public CDialog { public: KTNormWinDlg(CWnd* pParent = NULL); ~KTNormWinDlg(); DWDATA* GetData(); public: //{{AFX_DATA(KTNormWinDlg) enum { IDD = IDD_NORMWIND }; CGsPreviewCtrl m_wndPreView; CStatic m_wndTip; CComboBox m_wndComboWidth; CComboBox m_wndComboNo; CComboBox m_wndComboDist; CString m_sDist; CString m_sNo; CString m_sWidth; int m_nInstyle; //}}AFX_DATA //{{AFX_VIRTUAL(KTNormWinDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); //}}AFX_VIRTUAL protected: //{{AFX_MSG(KTNormWinDlg) afx_msg LRESULT OnStaticPreview(WPARAM wparam,LPARAM lparam); virtual BOOL OnInitDialog(); virtual void OnOK(); virtual void OnCancel(); afx_msg void OnCentInsert(); afx_msg void OnDoteCenInsert(); afx_msg void OnFixtOnpier(); afx_msg void OnSequInsert(); afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void InitGenDoorWidthCombo(); void ShowSlide(); BOOL CreateBlockRecord(); BOOL CreateBlockRecord3d(); 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); private: DWDATA m_dwData; CBitmap m_bmpStyle[4]; CString m_sDwgFile; CString m_sDwg3DFile; public: double m_dHeight; double m_dBomEl; afx_msg void OnBnClickedButton1(); CString m_sMaterial; CString m_sProvider; AcDbVoidPtrArray m_arpDb; afx_msg void OnDestroy(); }; //{{AFX_INSERT_LOCATION}} #endif