#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