hottracker.h
来自「管理项目进度工具的原代码」· C头文件 代码 · 共 43 行
H
43 行
// HotTracker.h: interface for the CHotTracker class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HOTTRACKER_H__5F3B72B7_716D_47A0_B2A3_8815CE3FEBBE__INCLUDED_)
#define AFX_HOTTRACKER_H__5F3B72B7_716D_47A0_B2A3_8815CE3FEBBE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Subclass.h"
#include <afxtempl.h>
const UINT WM_HTHOTCHANGE = ::RegisterWindowMessage("WM_HTHOTCHANGE");
class CHotTracker : public CSubclassWnd
{
public:
CHotTracker();
virtual ~CHotTracker();
BOOL Initialize(CWnd* pWnd);
void Reset();
int AddRect(const CRect& rect);
int AddRect(); // adds a placeholder
BOOL UpdateRect(int nRect, const CRect& rect);
int GetRectCount() { return m_aRects.GetSize(); }
protected:
CArray<CRect, CRect&> m_aRects;
int m_nHotRect;
protected:
int HitTest(CPoint ptScreen);
virtual LRESULT WindowProc(HWND hRealWnd, UINT msg, WPARAM wp, LPARAM lp);
void InitTracking();
};
#endif // !defined(AFX_HOTTRACKER_H__5F3B72B7_716D_47A0_B2A3_8815CE3FEBBE__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?