?? uuview.cpp
字號:
// UUView.cpp : implementation of the CUUView class
//
#include "stdafx.h"
#include "UU.h"
#include "UUDoc.h"
#include "UUView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUUView
IMPLEMENT_DYNCREATE(CUUView, CView)
BEGIN_MESSAGE_MAP(CUUView, CView)
//{{AFX_MSG_MAP(CUUView)
ON_WM_LBUTTONDOWN()
ON_WM_RBUTTONDOWN()
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUUView construction/destruction
CUUView::CUUView()
{
// TODO: add construction code here
}
CUUView::~CUUView()
{
}
BOOL CUUView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CUUView drawing
void CUUView::OnDraw(CDC* pDC)
{
CUUDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CUUView printing
BOOL CUUView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CUUView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CUUView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CUUView diagnostics
#ifdef _DEBUG
void CUUView::AssertValid() const
{
CView::AssertValid();
}
void CUUView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CUUDoc* CUUView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CUUDoc)));
return (CUUDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CUUView message handlers
void CUUView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
MyDlg dlg;
dlg.DoModal();
CView::OnLButtonDown(nFlags, point);
}
void CUUView::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
dlgless.DestroyWindow();
dlgless.Create(IDD_DLG1,this);
dlgless.ShowWindow(SW_SHOW);
CView::OnRButtonDown(nFlags, point);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -