view.h
来自「标签控制」· C头文件 代码 · 共 43 行
H
43 行
/////////////////////////////////////////////////////////////////////////////
#include "FolderFrame.h"
#include "Doc.h"
/////////////////
// Picture view is a typical scroll view.
//
class CPictureView : public CFolderView {
public:
virtual ~CPictureView();
CPictureDoc* GetDocument() { return (CPictureDoc*)m_pDocument; }
protected:
static CFont g_font; // current display font, global for all views
BOOL m_rcImage; // rect to display image in
UINT m_iHowScale; // how to scale image
CPictureView();
void GetImageRect(CRect& rc);
void SetScrollSizes();
// new folder tab functions
enum { PAGE_IMAGE, PAGE_BITMAPINFO, PAGE_HEX };
int m_iPage; // which page selected
virtual void OnChangedFolder(int iPage);
void DrawInfo(CDC& dc, CPicture* p, UINT nFormat=0);
void DrawHex(CDC& dc, CPicture* p);
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // called first time after construct
// command/message handlers
afx_msg void OnViewScale(UINT nID);
afx_msg void OnUpdateViewScale(CCmdUI* pCmdUI);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSize(UINT nType, int cx, int cy);
DECLARE_DYNCREATE(CPictureView)
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?