📄 gridpic.h
字号:
#if !defined(AFX_GRIDPIC_H__28D7C4AF_0864_11D7_856D_00E04C5F149F__INCLUDED_)
#define AFX_GRIDPIC_H__28D7C4AF_0864_11D7_856D_00E04C5F149F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GridPic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CGridPic window
class CGridPic : public CStatic
{
// Construction
public:
CGridPic();
enum{ WIDTH=16,HEIGHT=16};
// Attributes
private:
void VtoH();
void HtoV();
int m_bgrid;
COLORREF m_clorbak;
COLORREF m_clordot;
void drawxy(CDC* pdc,int x,int y);
unsigned char m_mask[WIDTH*HEIGHT/8];
// Operations
public:
int m_align;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGridPic)
//}}AFX_VIRTUAL
// Implementation
public:
void SetFore(const COLORREF& cor);
void SetBak(const COLORREF& cor);
CBrush m_brush;
unsigned char* GetMask();
int GetHeight();
int GetWidth();
void DeltaRect(BOOL ack);
CRect m_rect;
void SetAlign(int value);
int m_balign;
void SetGrid(int value);
void ClrMask();
BOOL FillMask(CString strValue);
void SetDot(int x,int y);
virtual ~CGridPic();
// Generated message map functions
protected:
//{{AFX_MSG(CGridPic)
afx_msg void OnPaint();
afx_msg void OnMButtonDblClk(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRIDPIC_H__28D7C4AF_0864_11D7_856D_00E04C5F149F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -