99 lines
2.7 KiB
C++
99 lines
2.7 KiB
C++
#ifndef __TWODOORDLG_H
|
|
#define __TWODOORDLG_H
|
|
|
|
#include "InsertOpeningDlg.h"
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DoorWinDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CTwoDoorDlg dialog
|
|
|
|
class CTwoDoorDlg : public CInsertOpeningDlg
|
|
{
|
|
// Construction
|
|
public:
|
|
CTwoDoorDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CTwoDoorDlg)
|
|
enum { IDD = IDD_TWO_DOOR };
|
|
CComboBox m_doorwCtl;
|
|
CStatic m_picDoor;
|
|
CStatic m_picWin;
|
|
//}}AFX_DATA
|
|
double m_nDWidth; // 门宽
|
|
//double m_nWHeight;
|
|
//CComboBox m_winhCtl;
|
|
|
|
CImageDC m_dcWin,m_dcDoor;
|
|
BOOL m_bInitMe;
|
|
|
|
CString m_sDoor3DStyle; // 3D
|
|
ads_real m_nDoor3DHeight;
|
|
ads_real m_nDoor3DWidth;
|
|
ads_real m_nDoor3DThick;
|
|
|
|
CString m_sWin3DStyle; // 3D
|
|
ads_real m_nWin3DHeight;
|
|
ads_real m_nWin3DWidth;
|
|
ads_real m_nWin3DThick;
|
|
|
|
protected:
|
|
// method from base class
|
|
//virtual BOOL UpdateData(BOOL bSaveAndValidate=TRUE);
|
|
virtual BOOL GetTitleKeyString(XString &sKeyStr) const; //获得对话框标题关键字串
|
|
virtual BOOL GetRegLocation(XString &sRegLoc) const; //关键注册位置, 子类需要重载本方法
|
|
virtual BOOL ReadParamFromRegistry();
|
|
virtual BOOL WriteParamToRegistry() const;
|
|
// 用于编辑以及改选编号时
|
|
virtual BOOL SetDlgParamFrom(const TDbOpening &op);
|
|
// 用对话框上的参数更新实体数据, 不重新计算插入点
|
|
virtual BOOL ModifyOpeningWithDlgParam(TDbOpening &op);
|
|
virtual void UpdateOpening(TDbOpening &op, BOOL bLoadStyle=TRUE);
|
|
|
|
//add by lgy 20120119 拾取参数时需要分别初始化对话框中的内容
|
|
virtual int ObjToDlg(TDbOpening* pOpening);
|
|
|
|
virtual int GetOpeningKind() const { //子类需要重载本方法
|
|
return TOpeningData::OP_TWODOOR;
|
|
}
|
|
|
|
virtual BOOL InitParamList(DList<XOpeningParam> &lstParam) const;
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CTwoDoorDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
void InitCombox();
|
|
void InitCombox(CComboBox& combox, DList<double> &lstModelNum);
|
|
|
|
void SetStyle(const TDbOpening& opening);
|
|
BOOL GetStyles(AcDbObjectId &id2d, AcDbObjectId &id3d);
|
|
void ShowSlide(CStatic& st, CImageDC& imgdc, const TCHAR* sldName);
|
|
void ShowSlide(CStatic& st);
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CTwoDoorDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnPicWin();
|
|
afx_msg void OnPicDoor();
|
|
afx_msg void On2dcheck();
|
|
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
|
|
#endif
|