www.pudn.com > roadextr.rar > roadextrDoc.h
// roadextrDoc.h : interface of the CRoadextrDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROADEXTRDOC_H__E824DF34_CF14_4DE1_B30D_7DE6CF02C8D3__INCLUDED_)
#define AFX_ROADEXTRDOC_H__E824DF34_CF14_4DE1_B30D_7DE6CF02C8D3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "CxImage/ximage.h"
class CRoadextrDoc : public CDocument
{
protected: // create from serialization only
CRoadextrDoc();
DECLARE_DYNCREATE(CRoadextrDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRoadextrDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
int FindType(const CString &ext);
CString FindExtension(const CString &name);
float m_ZoomFactor;
BOOL m_stretchMode; //设置是否随窗口变化而调整图象比例
inline BOOL GetStretchMode() { return m_stretchMode; }
inline float GetZoomFactor() { return m_ZoomFactor; }
inline CxImage* GetImage(){ return image; }
CxImage *image;
virtual ~CRoadextrDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRoadextrDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ROADEXTRDOC_H__E824DF34_CF14_4DE1_B30D_7DE6CF02C8D3__INCLUDED_)