48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
#ifndef __OBJPREVIEWDLG_H
|
|
#define __OBJPREVIEWDLG_H
|
|
|
|
#include "ToolTipDialog.h"
|
|
class TEntityBase;
|
|
|
|
class CObjPreviewDlg: public WGroupDlg {
|
|
protected:
|
|
CImageDCEx m_image;
|
|
public:
|
|
DECLARE_DYNAMIC(CObjPreviewDlg)
|
|
CObjPreviewDlg(UINT id, CWnd* pParent = NULL); // standard constructor
|
|
virtual ~CObjPreviewDlg();
|
|
virtual void UpdateImage();
|
|
virtual BOOL ValidateData();
|
|
virtual AcDbEntity *NewObject()=0;
|
|
virtual void Dlg2Obj(AcDbEntity *pObj)=0;
|
|
virtual void Obj2Dlg(const AcDbEntity *pObj)=0;
|
|
// [8/13/2008 nsh]
|
|
virtual BOOL DestroyWindow();
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
virtual BOOL OnInitDialog();
|
|
AcDbDatabase *m_pDbPreview;
|
|
CGsPreviewCtrl m_ctrlPreview;
|
|
|
|
bool m_bUseOldImage;
|
|
DList<AcDbEntity> m_lstEntBuf;
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CObjPreviewDlg)
|
|
protected:
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
//{{AFX_MSG(CObjPreviewDlg)
|
|
virtual void OnOK();
|
|
afx_msg void OnPaint();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
|
|
|
|
#endif |