1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| #ifndef __GRID_CELL_BUTTON__
| #define __GRID_CELL_BUTTON__
|
| #include "GridCell.h"
|
| class AFX_EXT_CLASS CGridCellButton : public CGridCell
| {
| friend class CGridCtrl;
| DECLARE_DYNCREATE(CGridCellButton)
|
| public:
| CGridCellButton(void);
| ~CGridCellButton(void);
|
| public:
| virtual BOOL Draw(CDC* pDC, int nRow, int nCol, CRect rect, BOOL bEraseBkgnd = TRUE);
|
| protected:
| virtual void OnClick(CPoint PointCellRelative);
| virtual void OnMouseLeave();
|
| protected:
| CRect m_rect;
| BOOL m_bPushing;
| };
| #endif
|
|