?? odbclistview.h
字號:
// ODBCListView.h : interface of the CODBCListView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ODBCLISTVIEW_H__04FCD2D2_A6DE_4C53_B52F_7668B5BD694D__INCLUDED_)
#define AFX_ODBCLISTVIEW_H__04FCD2D2_A6DE_4C53_B52F_7668B5BD694D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//OOOO>
#include <afxcview.h>
#include <afxdb.h>
//<OOOO
class CODBCListView : public CListView
{
protected: // create from serialization only
CODBCListView();
DECLARE_DYNCREATE(CODBCListView)
short m_NKey;
CString m_Key;
CRecordset * m_set;
int m_CurSel;
CListCtrl * m_List;
// Attributes
public:
//OOOO>
// CODBCListDoc* GetDocument();
CDatabase m_Db;
//<OOOO
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CODBCListView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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:
BOOL m_DSOK;
void SetRecordset(CRecordset * pSet,UINT nk=0);
virtual ~CODBCListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CODBCListView)
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//OOOO>
/*
#ifndef _DEBUG // debug version in ODBCListView.cpp
inline CODBCListDoc* CODBCListView::GetDocument()
{ return (CODBCListDoc*)m_pDocument; }
#endif
*/
//<OOOO
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ODBCLISTVIEW_H__04FCD2D2_A6DE_4C53_B52F_7668B5BD694D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -