mousecap.h
来自「MFC+Widnows程序设计(中文第二版)」· C头文件 代码 · 共 28 行
H
28 行
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 + =
减小字号Ctrl + -
显示快捷键?