#if !defined(AFX_BASESTAIRDLG_H__F7240D44_D448_4BAB_B20C_752B8A48A2B5__INCLUDED_) #define AFX_BASESTAIRDLG_H__F7240D44_D448_4BAB_B20C_752B8A48A2B5__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define _MIN_STAIRWIDTH _AS_SYS_UNIT(500) // BaseStairDlg.h : header file // #include "ObjPreviewDlg.h" ///////////////////////////////////////////////////////////////////////////// // CBaseStairDlg dialog class CBaseStairDlg : public CObjPreviewDlg { public: DECLARE_DYNAMIC(CBaseStairDlg) CBaseStairDlg(UINT IDD, CWnd* pParent = NULL); virtual ~CBaseStairDlg(); virtual void UpdateSel();//响应用户改变选项。 virtual bool UpdateEdit(UINT ctrlID,bool bReportError=false); //Edit内容可能变化时调用,进行了处理返回true,否则返回false。 //处理了踏步数,踏步高度,梯段高度的变化。 virtual void Dlg2Obj(AcDbEntity *pStep); virtual void Obj2Dlg(const AcDbEntity *pStep); public: CSpinButtonCtrl stepNumSpin; static int m_nPao;//剖视类型,Arc,Line,Curve共用,与Rect无关 static CString m_strElev;//起始高度,Arc,Line,Curve共用,与Rect无关 static CString m_strStepHeight;//踏步高度,梯段共用 static int m_nStepNum;//踏步数,梯段共用 static CString m_strStairHeight;//高度,梯段共用 static BOOL m_bNeed2D;//Arc,Line,Curve共用,Rect最后要其恢复其原始值 static BOOL m_bNeed3D;//Arc,Line,Curve共用,Rect最后要其恢复其原始值 static BOOL m_bNeedLeft;//共用 static BOOL m_bNeedRight;//共用 double m_lSectionPos, m_rSectionPos; // 0~1.0,Arc,Line,Curve共用,与Rect无关 // TArch6 members static BOOL m_bAsAscent;//共用 static BOOL m_bHasSlant;//共用 static BOOL m_bOnGround;//共用 BOOL m_bCreate; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBaseStairDlg) public: virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CBaseStairDlg) virtual BOOL OnInitDialog(); // Zyu modify on 100721 //afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnPaint(); afx_msg void OnChangeStepHeight(); afx_msg void OnChangeStepNum(); afx_msg void OnChangeStairHeight(); afx_msg void OnKFStepNum(); afx_msg void OnKFStepHeight(); afx_msg void OnKFStairHeight(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BASESTAIRDLG_H__F7240D44_D448_4BAB_B20C_752B8A48A2B5__INCLUDED_)