94 lines
2.9 KiB
C++
94 lines
2.9 KiB
C++
#if !defined(AFX_DOORWINDLG_H__BBF0B6F5_C95B_4EEE_862E_53FE45D457F9__INCLUDED_)
|
|
#define AFX_DOORWINDLG_H__BBF0B6F5_C95B_4EEE_862E_53FE45D457F9__INCLUDED_
|
|
|
|
#include "InsertOpeningDlg.h"
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DoorWinDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDoorWinDlg dialog
|
|
|
|
class CDoorWinDlg : public CInsertOpeningDlg
|
|
{
|
|
// Construction
|
|
public:
|
|
CDoorWinDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDoorWinDlg)
|
|
enum { IDD = IDD_DOORWIN };
|
|
CComboBox m_doorwCtl;
|
|
CComboBox m_winhCtl;
|
|
CStatic m_picDoor;
|
|
CStatic m_picWin;
|
|
//}}AFX_DATA
|
|
double m_nDWidth; // 门宽
|
|
double m_nWHeight;
|
|
|
|
//AcDbObjectId m_nOpeningID;
|
|
CImageDC m_dcWin,m_dcDoor;
|
|
BOOL m_bInitMe;
|
|
|
|
CString m_sDoor3DStyle; // 3D
|
|
CString m_sWin3DStyle; // 3D
|
|
|
|
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);
|
|
|
|
virtual int GetOpeningKind() const { //子类需要重载本方法
|
|
return TOpeningData::OP_DOORWIN;
|
|
}
|
|
|
|
virtual BOOL InitParamList(DList<XOpeningParam> &lstParam) const;
|
|
|
|
//add by lgy 20120119 拾取门窗参数的时候需要专门为对话框初始化
|
|
virtual int ObjToDlg(TDbOpening* pOpening);
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDoorWinDlg)
|
|
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(CDoorWinDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnPicWin();
|
|
afx_msg void OnPicDoor();
|
|
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DOORWINDLG_H__BBF0B6F5_C95B_4EEE_862E_53FE45D457F9__INCLUDED_)
|