36 lines
880 B
C++
36 lines
880 B
C++
#pragma once
|
|
#include "resource.h"
|
|
#include "afxwin.h"
|
|
#include "GsPreviewCtrlEx.h"
|
|
|
|
class CWJYLDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CWJYLDlg)
|
|
|
|
public:
|
|
CWJYLDlg(CWnd* pParent = NULL);
|
|
virtual ~CWJYLDlg();
|
|
|
|
enum { IDD = IDD_WJYL_DLG };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
|
|
|
|
CString m_sDwgFile;
|
|
CGsPreviewCtrlEx m_wndPreview;
|
|
CSize m_szDlg;
|
|
protected:
|
|
|
|
Acad::ErrorStatus InitDrawingControl (AcDbDatabase *pDb, const TCHAR *space = ACDB_MODEL_SPACE,bool b3D = true);
|
|
|
|
bool GetActiveViewPortInfo (AcDbDatabase *pDb, ads_real &height, ads_real &width, AcGePoint3d &target, AcGeVector3d &viewDir, ads_real &viewTwist, bool getViewCenter);
|
|
|
|
void SetViewTo(AcGsView *pView, AcDbDatabase *pDb, AcGeMatrix3d& viewMat,bool b3D = true);
|
|
|
|
};
|