odbctestview.h
来自「vc++ 6.0 使用ODBC 連接access data base 與使用li」· C头文件 代码 · 共 100 行
H
100 行
// ODBCTestView.h : interface of the CODBCTestView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ODBCTESTVIEW_H__7ED2EE2C_3C8F_4CD6_A1F7_6A08FEF62DB7__INCLUDED_)
#define AFX_ODBCTESTVIEW_H__7ED2EE2C_3C8F_4CD6_A1F7_6A08FEF62DB7__INCLUDED_
#include "BtnST.h"
#include "WinXPButtonST.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CODBCTestSet;
class CODBCTestView : public CRecordView
{
protected: // create from serialization only
CODBCTestView();
DECLARE_DYNCREATE(CODBCTestView)
public:
//{{AFX_DATA(CODBCTestView)
enum { IDD = IDD_ODBCTEST_FORM };
CListCtrl m_List_DataBaseList;
CODBCTestSet* m_pSet;
//}}AFX_DATA
// Attributes
public:
CODBCTestDoc* GetDocument();
CODBCTestDoc *p_Doc;
CButtonST m_btnHyperLink;
CButtonST m_btnCursor;
CButtonST m_btnFocusRect;
CButtonST m_chkCheckbox;
CButtonST m_btnBitmap;
BOOL m_bTestCheck; // A variable used to show DDX_Check feature
int ListCurrentItem;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CODBCTestView)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void DeleteDataFromDataBase();
void AddNewToDataBase();
void InquiryDataBase();
virtual ~CODBCTestView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CODBCTestView)
afx_msg void OnBUTTONInquiry();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBUTTONAddNew();
afx_msg void OnBUTTONShowAllRecord();
afx_msg void OnBUTTONDelete();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ODBCTestView.cpp
inline CODBCTestDoc* CODBCTestView::GetDocument()
{ return (CODBCTestDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ODBCTESTVIEW_H__7ED2EE2C_3C8F_4CD6_A1F7_6A08FEF62DB7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?