⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ~gridstatic.~h

📁 实时监控
💻 ~H
字号:
#if !defined(AFX_GRIDSTATIC_H__30B7BFC5_94EC_47F2_B064_C2048D370A99__INCLUDED_)
#define AFX_GRIDSTATIC_H__30B7BFC5_94EC_47F2_B064_C2048D370A99__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GridStatic.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGridStatic window

#include "bmp_file.h"
#include "video_mask.h"

class CGridStatic : public CStatic, public video_mask
{
	bitmap_mask mask;
	CBitmap bmp;
	
	bmp_file bf;
	int index;
	CString text;
	void draw_text(CDC& dc, LPCTSTR lpsz);
	void draw_frames(CDC& dc, CRect rc);

	void darken_frame(CDC& dc, CRect rc);
	void darken_grid(CDC& dc, CRect rc);
	
	int r;	// rows
	int c;	// cols
	bool drawing_grid;

	void calc_mask(CPoint pt, int& x, int& y);
	
// Construction
public:
	CGridStatic();

	
// Attributes
public:

// Operations
public:
	bool init();
	void destroy();

	// derived from "video_mask"
	virtual void set_grid(int rows, int cols);
	virtual void clear_grid();
	virtual byte* mask_data();
	virtual void update();

	void set_index(int _index);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGridStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGridStatic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CGridStatic)
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEnable(BOOL bEnable);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GRIDSTATIC_H__30B7BFC5_94EC_47F2_B064_C2048D370A99__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -