📄 view.h
字号:
/////////////////////////////////////////////////////////////////////////////
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -