📄 imagedoc.h
字号:
// imageDoc.h : interface of the CImageDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGEDOC_H__08476F70_6CD2_40BE_AACB_57926AF52B4B__INCLUDED_)
#define AFX_IMAGEDOC_H__08476F70_6CD2_40BE_AACB_57926AF52B4B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>
class CShape;
class CBitmapFile;
class CImageDoc : public CDocument
{
protected: // create from serialization only
CImageDoc();
DECLARE_DYNCREATE(CImageDoc)
// Attributes
public:
CTypedPtrList<CObList, CShape*> m_ShapeList;
CBitmapFile *m_pBitmap;
private:
UINT m_nCurPenWidth;
COLORREF m_CurColor;
CPen *m_pPenCurrent;
// Operations
public:
CPen* GetPen()
{
return m_pPenCurrent;
}
UINT GetCurPenWidth()
{
return m_nCurPenWidth;
}
COLORREF GetCurColor()
{
return m_CurColor;
}
private:
void ReplacePen();
void InitDocument();
void OmitContents();
void OmitEdit();
CView* GetTheView();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CImageDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual void DeleteContents();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CImageDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CImageDoc)
afx_msg void OnPenWidth();
afx_msg void OnPenColor();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGEDOC_H__08476F70_6CD2_40BE_AACB_57926AF52B4B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -