106 lines
2.4 KiB
C++
106 lines
2.4 KiB
C++
#pragma once
|
|
#include "resource.h"
|
|
#include "SlideDc.h"
|
|
#include "AecDbXDormerWindow.h"
|
|
|
|
class CJLHCDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CJLHCDlg)
|
|
|
|
public:
|
|
CJLHCDlg(CWnd* pParent = NULL);
|
|
virtual ~CJLHCDlg();
|
|
|
|
void InitDormerLayer();
|
|
|
|
//{{AFX_DATA(CJLHCDlg)
|
|
enum { IDD = IDD_JLHC_DLG };
|
|
int m_nDormerType;
|
|
CString m_sEaves;
|
|
CString m_sFloor;
|
|
CString m_sGlass;
|
|
CString m_sRoof;
|
|
CString m_sWall;
|
|
CString m_sWindow;
|
|
BOOL m_bShowWindow;
|
|
CString m_sExtendEaves;
|
|
CString m_sExtendHill;
|
|
CString m_sSlopeGrade;
|
|
CString m_sSlopeHeight;
|
|
CString m_sSlopeThickness;
|
|
CString m_sWallHeight;
|
|
CString m_sWallThickness;
|
|
CString m_sWallWidth;
|
|
CString m_sWindowWidth;
|
|
CString m_sWindowHeight;
|
|
CString m_csLabel;
|
|
//}}AFX_DATA
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
|
|
//{{AFX_MSG(CJLHCDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeDormerType();
|
|
virtual void OnOK();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnCheckShowWindow();
|
|
afx_msg void OnChangeEditSlopeGrade();
|
|
afx_msg void OnChangeEditWallWidth();
|
|
afx_msg void OnChangeEditWindowWidth();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
|
|
//类型
|
|
void SetDormerType(DormerParam::DormerType dormerType);
|
|
DormerParam::DormerType GetDormerType() const;
|
|
|
|
//老虎窗参数
|
|
void SetDormerPar(const DormerParam& dormerPar);
|
|
void GetDormerPar(DormerParam& dormerPar) const;
|
|
|
|
//墙上开窗
|
|
void SetShowWindow(BOOL bShow=TRUE);
|
|
BOOL IsShowWindow() const;
|
|
|
|
CString GetDormerLabel(DormerParam &dormer) const {return m_csLabel;};
|
|
void SetDefaultLabel(bool bUseDefaultLabel = false, CString strDefaultLabel = _T(""));
|
|
|
|
protected:
|
|
|
|
CEdit m_ctrlWindowHeight;
|
|
CEdit m_ctrlWindowWidth;
|
|
CEdit m_ctrlWallWidth;
|
|
CEdit m_ctrlWallThickness;
|
|
CEdit m_ctrlWallHeight;
|
|
CEdit m_ctrlSlopeThickness;
|
|
CEdit m_ctrlSlopeHeight;
|
|
CEdit m_ctrlSlopeGrade;
|
|
CEdit m_ctrlExtendHill;
|
|
CEdit m_ctrlExtendEaves;
|
|
CComboBox m_comboWall;
|
|
CComboBox m_comboRoof;
|
|
CComboBox m_comboGlass;
|
|
CComboBox m_comboFloor;
|
|
CComboBox m_comboEaves;
|
|
CComboBox m_comboWindow;
|
|
|
|
CString m_sTitle;
|
|
CString m_strDefaultlabel;
|
|
bool m_bUseDefaultLabel;
|
|
CSlideDc m_slideDc;
|
|
|
|
protected:
|
|
void UpdateWindow();
|
|
void UpdateParameter();
|
|
void OpenSlide(LPCTSTR pszFilePath);
|
|
public:
|
|
CString m_sRoofMaterial;
|
|
CString m_sFloorMaterial;
|
|
CString m_sEavsMaterial;
|
|
CString m_sWallMaterial;
|
|
CString m_sGlassMaterial;
|
|
CString m_sWindowMaterial;
|
|
};
|