📄 hotspdoc.h
字号:
// hotspdoc.h : interface of the CHotspot2Doc class
//
/////////////////////////////////////////////////////////////////////////////
#include "dibapi.h"
//Name of hotlink data file.
#define LINKFILENAME "IMAGLINK.DAT"
class CHotspot2Doc : public CDocument
{
protected: // create from serialization only
CHotspot2Doc();
DECLARE_DYNCREATE(CHotspot2Doc)
// Attributes
private:
HDIB m_hDIB;
CPalette* m_palette;
CSize m_DocSize;
public:
HDIB GetHDIB() const { return m_hDIB; }
CPalette* GetDIBPalette() const { return m_palette; }
CSize* GetDocSize() { return &m_DocSize; };
void SaveHotspot(void);
void BlankCurrentHS(void);
CFile m_datafile;
HotSpotRecord m_currentHS; //Current hot spot.
BOOL m_regionDefined; //TRUE if a hot spot has been defined.
BOOL m_modeTesting; //TRUE if testing, FALSE if defining.
BOOL m_toEdit; //TRUE if the data file contains
//at least one hotspot to edit.
int m_editRecord; //Record number of hotspot being
//edited. 0 if not editing.
int m_recordNum[128]; //Holds record numbers of hotspot
//records read in for editing. We
//assume no image will have more than
//128 defined hotspots.
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHotspot2Doc)
public:
virtual BOOL OnNewDocument();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHotspot2Doc();
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
void InitBitmapData();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
public:
// Generated message map functions
protected:
//{{AFX_MSG(CHotspot2Doc)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -