?? helloview.cpp
字號:
// helloView.cpp : implementation of the CHelloView class
//
#include "stdafx.h"
#include "hello.h"
#include "helloDoc.h"
#include "helloView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHelloView
IMPLEMENT_DYNCREATE(CHelloView, CView)
BEGIN_MESSAGE_MAP(CHelloView, CView)
//{{AFX_MSG_MAP(CHelloView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CHelloView construction/destruction
CHelloView::CHelloView()
{
// TODO: add construction code here
}
CHelloView::~CHelloView()
{
}
BOOL CHelloView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CHelloView drawing
void CHelloView::OnDraw(CDC* pDC)
{
CHelloDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CHelloView diagnostics
#ifdef _DEBUG
void CHelloView::AssertValid() const
{
CView::AssertValid();
}
void CHelloView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CHelloDoc* CHelloView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CHelloDoc)));
return (CHelloDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CHelloView message handlers
int CHelloView::OnCreate( LPCREATESTRUCT lpCreateStruct )
{
int iResult = CView::OnCreate(lpCreateStruct);
if(iResult == 0)
ShowDoneButton(TRUE);
return iResult;
}
void CHelloView::OnSetFocus(CWnd* pOldWnd)
{
CView::OnSetFocus(pOldWnd);
//::SHSipPreference(m_hWnd, SIP_UP);
}
void CHelloView::OnDestroy()
{
//::SHSipPreference(m_hWnd, SIP_FORCEDOWN);
CView::OnDestroy();
}
BOOL CHelloView::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 + -