📄 mousecap.h
字号:
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
protected:
BOOL m_bTracking; // TRUE if rubber banding
BOOL m_bCaptureEnabled; // TRUE if capture enabled
CPoint m_ptFrom; // "From" point for rubber banding
CPoint m_ptTo; // "To" point for rubber banding
void InvertLine (CDC* pDC, CPoint ptFrom, CPoint ptTo);
public:
CMainWindow ();
protected:
afx_msg void OnLButtonDown (UINT nFlags, CPoint point);
afx_msg void OnLButtonUp (UINT nFlags, CPoint point);
afx_msg void OnMouseMove (UINT nFlags, CPoint point);
afx_msg void OnNcLButtonDown (UINT nHitTest, CPoint point);
DECLARE_MESSAGE_MAP ()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -