📄 findwndtool.h
字号:
#pragma once
// CFindWndTool
#pragma comment(lib, "gdiplus.lib")
#include <gdiplus.h>
using namespace Gdiplus;
class CFindWndTool : public CStatic
{
DECLARE_DYNAMIC(CFindWndTool)
public:
CFindWndTool();
virtual ~CFindWndTool();
enum{msgFind = WM_USER + 1, msgFinal};
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
private:
HCURSOR m_hDragCursor; // the cursor when user drag the find tool
BOOL m_bFind; // If the find tool is in find state
HWND m_hwndUnderCursor; // handle of the window under mouse cursor.
// compare this value with newly retrieved
// one to prevent reporting the same
// value repeatedly
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
// GDI+ stuff
private:
GdiplusStartupInput m_gdiplusStartupInput;
ULONG_PTR m_gdiplusToken;
// end of GDI+
private:
void DrawBorderInverted(HWND hwnd);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -