📄 htextdoc.h
字号:
// htextdoc.h : interface of the CHtext2Doc class
//
/////////////////////////////////////////////////////////////////////////////
class CHtext2Doc : public CDocument
{
protected: // create from serialization only
CHtext2Doc();
DECLARE_DYNCREATE(CHtext2Doc)
// Attributes
public:
private:
//Holds hypertext data.
CString m_data;
//Holds link coordinates.
CRect m_LinkRect[100];
//Holds link text.
CString m_LinkText[100];
//Points at next element of HyperLinkArray[];
int m_nextLink;
public:
CString GetTopic(); //Returns entire topic text.
void InitLinkArray(void); //Initializes link array.
void CreateLink(CString, CRect); //Creates a link array element.
CString IsLink(CPoint); //Determines if user has clicked a link.
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHtext2Doc)
public:
virtual BOOL OnNewDocument();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHtext2Doc();
virtual void Serialize(CArchive& ar); // overridden for document i/o
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CHtext2Doc)
// 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()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -