128 lines
3.0 KiB
C++
128 lines
3.0 KiB
C++
// WallDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CWallDlg dialog
|
|
|
|
#include <adui.h>
|
|
#include <acui.h>
|
|
#include "afxwin.h"
|
|
#include "wgroupctrl.h"
|
|
#include "setwall.h"
|
|
#include "ObjPreviewDlg.h"
|
|
|
|
|
|
class CWallDlg : public CObjPreviewDlg
|
|
{
|
|
public:
|
|
DECLARE_DYNAMIC(CWallDlg)
|
|
|
|
CWallDlg(const TDbWall &wall, CWnd* pParent = NULL);
|
|
~CWallDlg();
|
|
|
|
// ---------add by fxj 080528
|
|
// virtual BOOL ValidateData();
|
|
// virtual void UpdateImage();
|
|
virtual AcDbEntity *NewObject();
|
|
virtual void Dlg2Obj(AcDbEntity *pObj);
|
|
virtual void Obj2Dlg(const AcDbEntity *pObj);
|
|
|
|
double GetLeftWidth(); // 取左宽度
|
|
double GetRightWidth(); // 取右宽度
|
|
double GetHeight();
|
|
double GetElev();
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CWallDlg)
|
|
enum { IDD = IDD_WALLDLG };
|
|
CString m_csElevation;
|
|
double m_nLeftWidth;
|
|
double m_nRightWidth;
|
|
|
|
CString m_csRadius;
|
|
int m_nStyle;
|
|
BOOL m_bpartEdit;
|
|
CButton m_selectButton;
|
|
//}}AFX_DATA
|
|
|
|
XPoint m_ptStartBreak;
|
|
XPoint m_ptEndBreak;
|
|
|
|
//-----//add by fxj 080528-----
|
|
CComboBox m_comHeight;
|
|
// CComboBox m_comElev;
|
|
CListBox m_listCtrl;
|
|
WGroupCtrl m_group;
|
|
static BOOL m_bgroupStatus;
|
|
CToolTipCtrl m_wndToolTip;
|
|
DList<selMaterial> m_lstMat;
|
|
|
|
// 左、右侧保温
|
|
BOOL m_bLeftInsulate;
|
|
BOOL m_bRightInsulate;
|
|
double m_dInsulateThick; // 左侧
|
|
double m_dInsulateThick2; // 右侧
|
|
|
|
// sg add 100511,增加墙端头保温、两侧保温层厚度
|
|
BOOL m_bStemInsulate;
|
|
|
|
// sg add 100714,增加左侧保温、右侧保温对应的控件显示名称,区分内墙、外墙显示不同
|
|
CString m_csLeftCheckName;
|
|
CString m_csRightCheckName;
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CWallDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CWallDlg)
|
|
virtual BOOL OnInitDialog();
|
|
|
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
|
|
//-------Modified by fxj 080528---------
|
|
// afx_msg void OnBnClickedCheckPartedit();
|
|
// afx_msg void OnBnClickedButtonSelect();
|
|
afx_msg void OnSelchangeListData();
|
|
afx_msg void OnButtonLeft();
|
|
afx_msg void OnButtonMid();
|
|
afx_msg void OnButtonRight();
|
|
afx_msg void OnButtonChange();
|
|
afx_msg void OnSelchangeMaterial();
|
|
afx_msg void OnSetFocusInsThick();
|
|
afx_msg void OnCheckLeftIns();
|
|
afx_msg void OnCheckRightIns();
|
|
afx_msg void OnKFInsThick();
|
|
afx_msg void OnKFLeftWidth();
|
|
afx_msg void OnKFRightWidth();
|
|
afx_msg void OnKFRadius();
|
|
afx_msg void OnChangeInsThick();
|
|
afx_msg void OnChangeLeftWidth();
|
|
afx_msg void OnChangeRightWidth();
|
|
afx_msg void OnChangeRadius();
|
|
|
|
// sg add 100511,增加墙端头保温
|
|
afx_msg void OnCheckStemIns();
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
|
|
// [2010-3-25 wubo] C004-08 当墙体用途设为虚墙时,除用途外,所有控件都变灰。
|
|
afx_msg void OnCbnSelchangeComboUse();
|
|
|
|
protected:
|
|
TDbWall* m_pWall;
|
|
CImageDCEx m_image;
|
|
CString m_csWallHeight;
|
|
CString m_csWallElev;
|
|
|
|
public:
|
|
int m_nUse;
|
|
};
|