DEMODOC.H
资源名称:Cimage.zip [点击查看]
上传用户:wep9318
上传日期:2007-01-07
资源大小:893k
文件大小:1k
源码类别:
图片显示
开发平台:
Visual C++
- // demoDoc.h : interface of the CDemoDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- class CImage;
- class CDemoDoc : public CDocument
- {
- protected: // create from serialization only
- CDemoDoc();
- DECLARE_DYNCREATE(CDemoDoc)
- // Attributes
- public:
- CImage *image;
- BOOL stretchMode;
- // Operations
- public:
- inline CImage *GetImage() { return image; }
- inline BOOL GetStretchMode() { return stretchMode; }
- int ComputePixel(float x, float y, float &x1, float &y1);
- void ComputeNewImage(void);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDemoDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
- virtual BOOL DoSave(LPCTSTR pszPathName, BOOL bReplace =TRUE);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CDemoDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDemoDoc)
- afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
- afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
- afx_msg void OnStretchMode();
- afx_msg void OnUpdateStretchMode(CCmdUI* pCmdUI);
- afx_msg void OnTransformEllipse();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////