📄 gridstatic.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"
//##ModelId=3F90BAB9011A
class CGridStatic : public CStatic, public video_mask
{
//##ModelId=3F90BAB9012F
bitmap_mask mask;
//##ModelId=3F90BAB90143
CBitmap bmp;
//##ModelId=3F90BAB9014D
bmp_file bf;
//##ModelId=3F90BAB90156
int index;
//##ModelId=3F90BAB90160
CString text;
//##ModelId=3F90BAB90174
void draw_text(CDC& dc, LPCTSTR lpsz);
//##ModelId=3F90BAB9017F
void draw_frames(CDC& dc, CRect rc);
//##ModelId=3F90BAB90193
void darken_frame(CDC& dc, CRect rc);
//##ModelId=3F90BAB901A7
void darken_grid(CDC& dc, CRect rc);
//##ModelId=3F90BAB901BA
int r; // rows
//##ModelId=3F90BAB901C4
int c; // cols
//##ModelId=3F90BAB901CF
bool drawing_grid;
//##ModelId=3F90BAB901E3
void calc_mask(CPoint pt, int& x, int& y);
// Construction
public:
//##ModelId=3F90BAB901F7
CGridStatic();
// Attributes
public:
// Operations
public:
//##ModelId=3F90BAB901F8
bool init();
//##ModelId=3F90BAB90201
void destroy();
// derived from "video_mask"
//##ModelId=3F90BAB9020B
virtual void set_grid(int rows, int cols);
//##ModelId=3F90BAB90216
virtual void clear_grid();
//##ModelId=3F90BAB90220
virtual const byte* mask_data();
virtual void set_data(const byte* data);
//##ModelId=3F90BAB9022A
virtual void update();
//##ModelId=3F90BAB90233
void set_index(int _index);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGridStatic)
//}}AFX_VIRTUAL
// Implementation
public:
//##ModelId=3F90BAB9023D
virtual ~CGridStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CGridStatic)
//##ModelId=3F90BAB9023F
afx_msg void OnPaint();
//##ModelId=3F90BAB90248
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//##ModelId=3F90BAB9025B
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//##ModelId=3F90BAB9026F
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//##ModelId=3F90BAB90283
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 + -