Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/OpeningRegul.h
T
2026-09-28 15:28:50 +08:00

98 lines
2.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
class CWDRegualDlg : public CModelessDialog
{
// Construction
public:
CWDRegualDlg(CWnd* pParent = NULL); // standard constructor
~CWDRegualDlg();
// Dialog Data
//{{AFX_DATA(CWDRegualDlg)
enum { IDD = IDD_DLG_WDREGUL };
//}}AFX_DATA
public:
// 属性查询函数
bool IsNeedMidRegul() ; // 是否需要居中
bool IsNeedDK1() ; // 是否剁宽1调整
bool IsNeedDK2() ; // 是否剁宽2调整
bool IsAxisMid() ; // 是否轴线居中,true:轴线居中,否则,墙柱边居中
bool IsNeedMidDis() ; // 是否需要中距居中
bool IsNeedEdgeDis() ; // 是否需要边距居中
double GetDK1() ; // 剁宽1的范围
double GetDK2() ; // 剁宽2的方位
double GetDK2To() ; // 剁宽2调整的值
double GetMidDis() ; // 中距
double GetEdgeDis() ; // 边距
bool IfChangCMD() {return m_bChangeCmd;}
void ResetChangCMD() {m_bChangeCmd = false;}
void SetChangeCMD() {m_bChangeCmd = true;}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWDRegualDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CWDRegualDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBnClickCheckDK1();
afx_msg void OnBnClickCheckDK2();
afx_msg void OnBnClickCheckMid();
afx_msg void OnBnClickCheckMidDis();
afx_msg void OnBnClickCheckMidEdge();
afx_msg void OnRadioClick();
afx_msg void OnClose();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void SetState();
// data.成员变量私有
private:
// DK代表剁宽
static BOOL m_bDK1;
static BOOL m_bDK2;
static double m_dDK1;
static double m_dDK2;
static CString m_strDKTo2; // 规整为xxx;
static BOOL m_bMid; // 门窗居中
static BOOL m_nAxis; // 单选按钮勾选轴线居中或者墙柱居中(TRUE:轴线居中)
static BOOL m_bMidDis;
static BOOL m_bEdgeDis;
static CString m_strMidDis;
static CString m_strEdgeDis;
bool m_bChangeCmd; //
public:
bool m_bInCmd;
};
// 多选,每选择一次,函数退出。
// csPrompt:提示信息
// ssResult:结果选择集
// rbBaseMask:过滤列表
// szKeyword:关键字列表(单个关键字,不区分大小写,无须空格)
// chRet:所选择的关键字
// ret:空格,回车,右键:RTNONE;
// ret:关键字:RTKWORD;
// ret:正常选择:RTNORMAL;
// ret:ESC:RTCAN;
// ret:所选实体无亮显,用户可在每次选择之后自己控制亮显。
int SelectEntitiesOnce(CString csPrompt,PickSet &ssResult, TRBList &rbBaseMask,const TCHAR* szKeyword, TCHAR &chRet);