?? ~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"
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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -