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

📄 oleviewerdoc.h

📁 Visual C++ 实践与提高--数据库篇的源代码。很好的东西。欢迎下载。
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -