Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

114 lines
3.4 KiB
C++

//----------------------------------------------------
//直线梯段
//by nsh
//20070906
//----------------------------------------------------
#if !defined(_LINESTAIRCREATEDLG_H_)
#define _LINESTAIRCREATEDLG_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StairDlg.h : header file
//
#include "stdafx.h"
#include "dbstair.h"
#include "baseStairDlg.h"
#include "WGroupCtrl.h"
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CLineStairCreateDlg
class CLineStairCreateDlg : public CBaseStairDlg
{
protected:
bool bValidWnd;
public:
DECLARE_DYNAMIC(CLineStairCreateDlg)
CLineStairCreateDlg(CWnd* pParent = NULL);
CLineStairCreateDlg(UINT id,CWnd*pParent=NULL);
virtual ~CLineStairCreateDlg();
void HideDialogBase(BOOL bFlag);
virtual void UpdateSel();
//增加了新增项对用户改变选定的响应。
virtual bool UpdateEdit(UINT ctrlID,bool bReportError=false);
//增加了可能引起梯段长度与梯段宽度变化的处理。
virtual AcDbEntity * NewObject();
virtual void Dlg2Obj(AcDbEntity *pStep);
virtual void Obj2Dlg(const AcDbEntity *pStep);
BOOL CheckENChange(UINT ctrlID,const CString pStr);
public:
//{{AFX_DATA(CLineStairCreateDlg)
enum { IDD = IDD_LINESTAIR1 };
//}}AFX_DATA
WGroupCtrl m_WGroup;
static CString m_strStepWidth;//line,rect共用
static CString m_strStairLength;//line,rect共用
static CString m_strStairWidth;//line,rect共用
static BOOL m_mm;
static CLineStairCreateDlg * pSelfCSC;
static TDbLineStair *pStepTest;
static BOOL m_bGetStair;//判断是否进行了取梯段宽度操作
//以下为处理响应ESC键
static BOOL m_bUpdateEdit;
static BOOL m_bPickSW;
static BOOL m_bError;
static BOOL m_bGroupStatus;//对WGroupCtrl状态的设定
//operation the wgroupctrl
static BOOL m_bOpWgc;
//modify by xlc on 090325
BOOL m_bEdit;//是否处于编辑状态
TDbLineStair * m_pBakObj;//备份状态
BOOL m_bClickClose;//是否关闭对话框退出
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLineStairCreateDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CLineStairCreateDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPickStairWidth();
afx_msg void OnKFStepWidth();
afx_msg void OnKFStairLength();
afx_msg void OnKFStairWidth();
afx_msg void OnKFStepHeight();
afx_msg void OnChangeStepWidth();
afx_msg void OnChangeStairLength();
afx_msg void OnChangeStairWidth();
afx_msg void OnChangeStepHeight();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnNcDestroy();
afx_msg void OnClose();
afx_msg void OnBnClickedLeftBeam();
afx_msg void OnBnClickedRightBeam();
afx_msg void OnBnClickedNeed3d();
afx_msg void OnBnClickedNeed2d();
afx_msg void OnBnClickedNoPao();
afx_msg void OnBnClickedBottomPao();
afx_msg void OnBnClickedDoublePao();
afx_msg void OnBnClickedUpSect();
afx_msg void OnBnClickedHasSlant();
afx_msg void OnBnClickedOnGround();
afx_msg void OnBnClickedAsAscent();
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnChangeStepNum();
afx_msg void OnKFStairHeight();
afx_msg void OnKFStepNum();
public:
BOOL m_blAscent;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STAIRDLG_H__091966D5_BBBE_4768_9099_BFF2641ACB71__INCLUDED_)