odbctestview.cpp
来自「vc++ 6.0 使用ODBC 連接access data base 與使用li」· C++ 代码 · 共 86 行
CPP
86 行
// ODBCTestView.cpp : implementation of the CODBCTestView class
//
#include "stdafx.h"
#include "ODBCTest.h"
#include "ODBCTestSet.h"
#include "ODBCTestDoc.h"
#include "ODBCTestView.h"
#include "InquiryDialog.h"
#include "AddNewDialog.h"
#include "DeleteDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CODBCTestView
IMPLEMENT_DYNCREATE(CODBCTestView, CRecordView)
BEGIN_MESSAGE_MAP(CODBCTestView, CRecordView)
//{{AFX_MSG_MAP(CODBCTestView)
ON_BN_CLICKED(IDC_BUTTON_Inquiry, OnBUTTONInquiry)
ON_WM_TIMER()
ON_BN_CLICKED(IDC_BUTTON_AddNew, OnBUTTONAddNew)
ON_BN_CLICKED(IDC_BUTTON_ShowAllRecord, OnBUTTONShowAllRecord)
ON_BN_CLICKED(IDC_BUTTON_Delete, OnBUTTONDelete)
ON_WM_RBUTTONDOWN()
ON_WM_RBUTTONUP()
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CRecordView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CRecordView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CRecordView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CODBCTestView construction/destruction
CODBCTestView::CODBCTestView()
: CRecordView(CODBCTestView::IDD)
{
//{{AFX_DATA_INIT(CODBCTestView)
// NOTE: the ClassWizard will add member initialization here
m_pSet = NULL;
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CODBCTestView::~CODBCTestView()
{
}
void CODBCTestView::DoDataExchange(CDataExchange* pDX)
{
CRecordView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CODBCTestView)
DDX_Control(pDX, IDC_LIST_DataBase, m_List_DataBaseList);
//}}AFX_DATA_MAP
}
BOOL CODBCTestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CRecordView::PreCreateWindow(cs);
}
void CODBCTestView::OnInitialUpdate()
{
m_pSet = &GetDocument()->m_ODBCTestSet;
CRecordView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
p_Doc = GetDocument();
//Bulid list paprmeter
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?