?? serialsampledoc.h
字號:
// SerialSampleDoc.h : interface of the CSerialSampleDoc class
//
/////////////////////////////////////////////////////////////////////////////
/* This sample application and corresponding sample code is provided
* for example purposes only. It has not undergone rigorous testing
* and as such should not be shipped as part of a final application
* without extensive testing on the part of the organization releasing
* the end-user product.
*/
#if !defined(AFX_SERIALSAMPLEDOC_H__22EDD7EE_3A00_11D3_9578_00AA00571CAB__INCLUDED_)
#define AFX_SERIALSAMPLEDOC_H__22EDD7EE_3A00_11D3_9578_00AA00571CAB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialSampleView.h"
#include "MapX.h"
class CSerialSampleDoc : public CDocument
{
protected: // create from serialization only
CSerialSampleDoc();
DECLARE_DYNCREATE(CSerialSampleDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerialSampleDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
CMapX* GetMap();
void AddDataset(const CString tableName);
CDaoDatabase* GetDB(); // returns NULL on error.
const CString GetDBPath() /* throw(CString)*/;
// Implementation
public:
virtual ~CSerialSampleDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CMapX m_ctrlMapX;
CSerialSampleView* GetMainView();
static CDaoDatabase s_db;
bool FileExists(const CString path);
// Generated message map functions
protected:
//{{AFX_MSG(CSerialSampleDoc)
// 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_SERIALSAMPLEDOC_H__22EDD7EE_3A00_11D3_9578_00AA00571CAB__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -