#ifndef SECTIONDLG_H #define SECTIONDLG_H #include "resource.h" Adesk::Boolean acedPostCommand( const TCHAR * ); class CSectionDlg : public CModelessDialog { DECLARE_DYNAMIC(CSectionDlg) public: CSectionDlg(CWnd* pParent = NULL); virtual ~CSectionDlg(); enum{IDD = IDD_DLG_SECTION}; CString GetSectionNum(); //获得剖切编号 CString GetNumStyle(); //获得剖切编号文字样式 double GetNumHeight(); //获得剖切编号文字高度 CString GetDrawNum(); //获得剖面图号 int GetLocal(); //获得标注位置 int GetDirect(); //获得标注方向 int GetSectionMode(); //获得布置剖面符号的方式 CString GetDrawingStyle(); //获得剖面图号文字样式 double GetDrawHeight(); //获得剖面图号字高 BOOL GetIsShowDrawText(); //是否显示剖面图号 BOOL GetIsChangeType(); void SetIsChangeType(BOOL bIs); virtual BOOL DestroyWindow(); protected: virtual void DoDataExchange(CDataExchange* pDX); virtual BOOL OnInitDialog(); DECLARE_MESSAGE_MAP(); afx_msg void OnBtnBlickA(); afx_msg void OnBtnBlickB(); afx_msg void OnBtnBlickC(); afx_msg void OnBtnBlickD(); afx_msg void OnBnClickDrawNum(); afx_msg void OnBnClickedBtnWordhight(); afx_msg void OnBnClickedBtnDrawingheight(); afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult); void CheckTypeButton(); //add by lgy 20120525 设置BUTTON显示状态 private: void createToolBar(); void LoadTextStyle(); //加载文字样式 static CString m_strSectionNum; //剖切编号 static CString m_strStyle; //剖切编号文字样式 static CString m_strHeight; //剖切编号文字字高 static BOOL m_bCheck; //剖面编号选择框 static CString m_strDrawingNum; //剖面编号 static int m_iLocal; //标注位置 static int m_iDirect; //标注方向 static CString m_strDrawingHeight; //剖面图号字高 static CString m_strTextStyle; //剖面图号文字样式 static int m_nSectionMode; //布置剖面符号的方式 CComboBox m_cmbStyleName; //剖切编号文字样式 CComboBox m_cmbDrawStyle; //剖切符号文字样式 CToolBarCtrl m_toolbar; //绘制方式工具条 BOOL m_bStyeChange; }; #endif