📄 bitmapwnd.h
字号:
#pragma once
// CBitmapWnd
// forward declarations
class CStroke;
namespace ATL {
class CImage;
}
class CBitmapWnd : public CStatic
{
//{{AFX_VIRTUAL(CBitmapWnd)
//}}AFX_VIRTUAL
public:
CBitmapWnd();
virtual ~CBitmapWnd();
void SetBitmap(HBITMAP);
// get the annotated bitmap
HBITMAP GetBitmap();
protected:
HBITMAP m_hBitmap;
CImage* m_pImg;
int m_nX;
int m_nY;
protected:
// Generated message map functions
//{{AFX_MSG(CBitmapWnd)
afx_msg void OnPaint();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
CTypedPtrList<CObList,CStroke*> m_strokeList;
CStroke* NewStroke();
CPoint m_ptPrev;
CStroke* m_pStrokeCur;
CPen m_Pen;
void DeleteStrokes();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -