oleviewerdoc.h
来自「Visual C++ 实践与提高--数据库篇的源代码。很好的东西。欢迎下载。」· C头文件 代码 · 共 66 行
H
66 行
// OLEViewerDoc.h : interface of the COLEViewerDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_OLEVIEWERDOC_H__EDC18BF4_A50B_11D4_A6D9_0010B54D545E__INCLUDED_)
#define AFX_OLEVIEWERDOC_H__EDC18BF4_A50B_11D4_A6D9_0010B54D545E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyTreeView.h"
#include "MyListView.h"
class COLEViewerDoc : public CDocument
{
protected: // create from serialization only
COLEViewerDoc();
DECLARE_DYNCREATE(COLEViewerDoc)
// Attributes
public:
CMyTreeView * m_pTreeView;
CMyListView * m_pListView;
protected:
CString m_strConnect;//记录所链接的数据源名字
CDataSource m_Connect;//数据源对象
CSession m_Session;//会话对象
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COLEViewerDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
void RefreshViews();
CString GetDSN();
BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual ~COLEViewerDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(COLEViewerDoc)
afx_msg void OnFileOpen();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OLEVIEWERDOC_H__EDC18BF4_A50B_11D4_A6D9_0010B54D545E__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?