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

📄 uuview.cpp

📁 运用vc++编写对话框登陆界面
💻 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 + -