#pragma once #include "resource.h" #include "GsPreviewCtrl.h" #include "EarThwormDef.h" class CJMSJDlg : public CDialog { DECLARE_DYNAMIC(CJMSJDlg) public: CJMSJDlg(CWnd* pParent = NULL); virtual ~CJMSJDlg(); public: enum { IDD = IDD_JMSJ_DLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); DECLARE_MESSAGE_MAP() afx_msg void OnBnClickedOk(); public: afx_msg void OnBnClickedBtaddtodb(); afx_msg void OnBnClickedButton2(); afx_msg void OnBnClickedButton3(); afx_msg void OnBnClickedButton7(); afx_msg void OnBnClickedButton1(); afx_msg void OnBnClickedBtselfromdb(); afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR); afx_msg void OnClose(); afx_msg void OnCancle(); protected: void ShowLastSection(); void ShowCurSection(); public: // gsview控件 CGsPreviewCtrl m_wndViewCtrl; // 缓存,出图用 AcDbVoidPtrArray m_arDrawBuffer; // 当前所选的截面描述 STSection m_curSection; CString m_sCrossSectionScr; afx_msg void OnBnClickedButton4(); };