?? sdocdemodoc.h
字號:
// SDocDemoDoc.h : interface of the CSDocDemoDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SDOCDEMODOC_H__35CB547F_77DB_45B7_94EF_BAEFF05E3686__INCLUDED_)
#define AFX_SDOCDEMODOC_H__35CB547F_77DB_45B7_94EF_BAEFF05E3686__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "LineDraw.h"
class CSDocDemoDoc : public CDocument
{
protected: // create from serialization only
CSDocDemoDoc();
DECLARE_DYNCREATE(CSDocDemoDoc)
CObArray m_lineArray;
// Attributes
public:
void AddLine(int StartX,int StartY,int EndX,int EndY);//添加線條
CLineDraw *GetLine(int index);//獲取線條對象
int GetTotalLine();//獲取線條數目
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSDocDemoDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual void DeleteContents();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSDocDemoDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSDocDemoDoc)
afx_msg void OnUndo();
afx_msg void OnUpdateUndo(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SDOCDEMODOC_H__35CB547F_77DB_45B7_94EF_BAEFF05E3686__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -