📄 bmpviewerdoc.h
字号:
// BMPViewerDoc.h : interface of the CBMPViewerDoc class///////////////////////////////////////////////////////////////////////////////#if !defined(AFX_BMPVIEWERDOC_H__BD9BEC05_DE94_4C75_BD29_ABBBA22EED21__INCLUDED_)#define AFX_BMPVIEWERDOC_H__BD9BEC05_DE94_4C75_BD29_ABBBA22EED21__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000class CBMPViewerDoc : public CDocument{protected: // create from serialization only CBMPViewerDoc(); DECLARE_DYNCREATE(CBMPViewerDoc)// Attributespublic: BITMAPINFOHEADER bi; //信息头 RGBQUAD* quad; //调色板 BYTE* lpBuf; //图像数据 BITMAPINFO* pbi; int flag; //标志表示是否打开了bmp文件 int numQuad; //调色板数目 BYTE* lpshowbuf; //用于显示的图像数据 int zoomfactor; //缩放比率// Operationspublic:// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBMPViewerDoc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); //}}AFX_VIRTUAL// Implementationpublic: BOOL PrepareShowdata(); virtual ~CBMPViewerDoc();#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endifprotected:// Generated message map functionsprotected: //{{AFX_MSG(CBMPViewerDoc) afx_msg void OnFileOpen(); afx_msg void OnZoomin(); afx_msg void OnZoomout(); //}}AFX_MSG DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_BMPVIEWERDOC_H__BD9BEC05_DE94_4C75_BD29_ABBBA22EED21__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -