mrDarker
2025-06-21 f65a110d7f941ff8826406938408fb2828c43dcb
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
27
28
#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);
    virtual ~CGridCellButton(void);
 
    void SetPushing(BOOL bPush) {m_bPushing = bPush;}
 
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