📄 mystatic.h
字号:
#pragma once
// CMyStatic
#define WM_CLICKTEXT WM_USER+0x2001
class CMyStatic : public CStatic
{
DECLARE_DYNAMIC(CMyStatic)
public:
CMyStatic();
CMyStatic(HWND);
virtual ~CMyStatic();
protected:
static HCURSOR m_hCursorLink;
GdiplusStartupInput m_GdiplusStart;
ULONG_PTR m_GdiplusToken;
BOOL m_bLoadCursor;
BOOL m_bHover;
HWND m_hParent;
protected:
BOOL InitTrackEvent(HWND,DWORD);
void DrawText(BOOL);
protected:
DECLARE_MESSAGE_MAP()
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnStnClicked();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -