?? pocketscribbleview.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 + -