⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pocketscribbleview.cpp

📁 这是一个在WindowsCE 环境下进行图形绘制的源程序。
💻 CPP
字号:
// PocketScribbleView.cpp : implementation of the CPocketScribbleView class
//

#include "stdafx.h"
#include "PocketScribble.h"

#include "PocketScribbleDoc.h"
#include "PocketScribbleView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPocketScribbleView

IMPLEMENT_DYNCREATE(CPocketScribbleView, CView)

BEGIN_MESSAGE_MAP(CPocketScribbleView, CView)
	//{{AFX_MSG_MAP(CPocketScribbleView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	ON_WM_CREATE()
	ON_WM_SETFOCUS()
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPocketScribbleView construction/destruction

CPocketScribbleView::CPocketScribbleView()
{
	// TODO: add construction code here

}

CPocketScribbleView::~CPocketScribbleView()
{
}

BOOL CPocketScribbleView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CPocketScribbleView drawing

void CPocketScribbleView::OnDraw(CDC* pDC)
{
	CPocketScribbleDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CPocketScribbleView diagnostics

#ifdef _DEBUG
void CPocketScribbleView::AssertValid() const
{
	CView::AssertValid();
}

void CPocketScribbleView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CPocketScribbleDoc* CPocketScribbleView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPocketScribbleDoc)));
	return (CPocketScribbleDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CPocketScribbleView message handlers
int CPocketScribbleView::OnCreate( LPCREATESTRUCT lpCreateStruct )
{
	int iResult = CView::OnCreate(lpCreateStruct);

	if(iResult == 0)
		ShowDoneButton(TRUE);

	return iResult;
}
void CPocketScribbleView::OnSetFocus(CWnd* pOldWnd)
{
	CView::OnSetFocus(pOldWnd);
	//::SHSipPreference(m_hWnd, SIP_UP);
}

void CPocketScribbleView::OnDestroy()
{
	//::SHSipPreference(m_hWnd, SIP_FORCEDOWN);
	CView::OnDestroy();
}

BOOL CPocketScribbleView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{
	return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -