?? demodoc.h
字號:
// 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()
};
/////////////////////////////////////////////////////////////////////////////
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -