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

📄 winmainlastview.cpp

📁 数据库管理系统
💻 CPP
字号:
// winmainlastView.cpp : implementation of the CWinmainlastView class
//

#include "stdafx.h"
#include "winmainlast.h"
#include"odbcdialog.h"
#include "winmainlastDoc.h"
#include "winmainlastView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView

IMPLEMENT_DYNCREATE(CWinmainlastView, CView)

BEGIN_MESSAGE_MAP(CWinmainlastView, CView)
	//{{AFX_MSG_MAP(CWinmainlastView)
	ON_COMMAND(idc_odbc, Onodbc)
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView construction/destruction

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

}

CWinmainlastView::~CWinmainlastView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView drawing

void CWinmainlastView::OnDraw(CDC* pDC)
{
	CWinmainlastDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView printing

BOOL CWinmainlastView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CWinmainlastView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CWinmainlastView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CWinmainlastView message handlers

void CWinmainlastView::Onodbc() 
{
	// TODO: Add your command handler code here
odbcdialog dlg;
dlg.DoModal();	
}

⌨️ 快捷键说明

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