Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/RectHoleDlg.h
T

82 lines
2.8 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#if !defined(AFX_RECTHOLEDLG_H__9D483822_3D75_11D3_827A_0000E82EB017__INCLUDED_)
2026-09-28 15:28:50 +08:00
#define AFX_RECTHOLEDLG_H__9D483822_3D75_11D3_827A_0000E82EB017__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RectHoleDlg.h : header file
//
#include "InsertOpeningDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CRectHoleDlg dialog
class CRectHoleDlg : public CInsertOpeningDlg {
// Construction
public:
//DECLARE_DYNAMIC(CRectHoleDlg)
CRectHoleDlg(CWnd* pParent = NULL); // standard constructor
2026-10-04 00:04:20 +08:00
int m_nHoleStyle; // 0--空洞, 1--双平行虚线, 2--双垂直虚线
2026-09-28 15:28:50 +08:00
CImageDC m_slideDc;
2026-10-04 00:04:20 +08:00
// add by xly on 110216 8.5需求修改矩形洞
static BOOL m_bIsPassWall; // 穿透墙体
static CString m_csHoleDepth; // 洞深
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
// add by xly on 110301 增加变量记录是否不穿透,但是厚度大于墙体厚度
2026-09-28 15:28:50 +08:00
static bool m_bIsHasPassWall;
static int m_nHasPassWallNums;
// Dialog Data
//{{AFX_DATA(CRectHoleDlg)
enum { IDD = IDD_RECT_HOLE };
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRectHoleDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
// Implement virtual method from CInsertOpeningDlg
virtual int GetOpeningKind() const;
virtual BOOL GetRegLocation(XString &sRegLoc) const;
virtual BOOL ReadParamFromRegistry();
virtual BOOL WriteParamToRegistry() const;
virtual void UpdateOpening(TDbOpening &op, BOOL bLoadStyle=TRUE);
virtual BOOL SetDlgParamFrom(const TDbOpening &op);
2026-10-04 00:04:20 +08:00
// 用对话框上的参数更新实体数据, 不重新计算插入点
2026-09-28 15:28:50 +08:00
virtual BOOL ModifyOpeningWithDlgParam(TDbOpening &op);
2026-10-04 00:04:20 +08:00
// add by xly on 110216 8.5需求修改矩形洞,增加洞深
2026-09-28 15:28:50 +08:00
virtual BOOL InitParamList(DList<XOpeningParam> &lstParam) const;
2026-10-04 00:04:20 +08:00
// sg add 110906,本函数主要是用来更新子类中特有的属性,比如,矩形洞更新洞口深度数据,子类可重载
2026-09-28 15:28:50 +08:00
virtual int ModifySpecialProperty(TDbOpening &op);
2026-10-04 00:04:20 +08:00
//add by lgy 20120119 拾取门窗信息时需要初始化对话框
2026-09-28 15:28:50 +08:00
virtual int ObjToDlg(TDbOpening* pOpening);
protected:
void InitComboxes();
void ShowHoleStyle(BOOL bReLoad);
// Implement virtual method from CDialog
// Generated message map functions
//{{AFX_MSG(CRectHoleDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnHoleStyle();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
2026-10-04 00:04:20 +08:00
afx_msg void OnClickPassWall();// add by xly on 110216 点击穿透墙体控件
2026-09-28 15:28:50 +08:00
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RECTHOLEDLG_H__9D483822_3D75_11D3_827A_0000E82EB017__INCLUDED_)