SQLServerDataProviderDoc.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:
对话框与窗口
开发平台:
Visual C++
- // SQLServerDataProviderDoc.h : interface of the CSQLServerDataProviderDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SQLSERVERDATAPROVIDERDOC_H__86EEF6EC_0C3E_4087_AA83_3039A0030F37__INCLUDED_)
- #define AFX_SQLSERVERDATAPROVIDERDOC_H__86EEF6EC_0C3E_4087_AA83_3039A0030F37__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CCalendarDataProviderSQL;
- //////////////////////////////////////////////////////////////////////////
- class CSQLServerDataProviderDoc : public CDocument
- {
- protected: // create from serialization only
- CSQLServerDataProviderDoc();
- DECLARE_DYNCREATE(CSQLServerDataProviderDoc)
- // Attributes
- public:
- enum EUpdateViewFlags
- {
- uvfPopulate = 0x1,
- uvfSetDataProvider = 0x2,
- uvfDetachDataProvider = 0x4,
- };
- CXTPCalendarData* GetDataProvider_SQLServer();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSQLServerDataProviderDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CSQLServerDataProviderDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- void SafeReleaseSQLDataProvider();
- CCalendarDataProviderSQL* m_pSQLDataProvider;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CSQLServerDataProviderDoc)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SQLSERVERDATAPROVIDERDOC_H__86EEF6EC_0C3E_4087_AA83_3039A0030F37__INCLUDED_)