Files
envi-code/SourceCode/Code2026/CoreCommand/WJYLDlg.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

36 lines
883 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);
};