📄 viewcdibdoc.cpp
字号:
// ViewCDibDoc.cpp : implementation of the CViewCDibDoc class
//
#include "stdafx.h"
#include "ViewCDib.h"
#include "ViewCDibDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CViewCDibDoc
IMPLEMENT_DYNCREATE(CViewCDibDoc, CDocument)
BEGIN_MESSAGE_MAP(CViewCDibDoc, CDocument)
//{{AFX_MSG_MAP(CViewCDibDoc)
ON_COMMAND(IDR_DOSOBEL, OnDosobel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CViewCDibDoc construction/destruction
CViewCDibDoc::CViewCDibDoc()
{
// TODO: add one-time construction code here
m_pDib=new CDib;
}
CViewCDibDoc::~CViewCDibDoc()
{
}
BOOL CViewCDibDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CViewCDibDoc serialization
void CViewCDibDoc::Serialize(CArchive& ar)
{
m_pDib->Serialize(ar);
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CViewCDibDoc diagnostics
#ifdef _DEBUG
void CViewCDibDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CViewCDibDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CViewCDibDoc commands
void CViewCDibDoc::OnDosobel()
{
// TODO: Add your command handler code here
// CDib* newDib=m_pDib;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -