//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2024 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// CustomCells.h: interface for the CColorGridItem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CUSTOMCELLS_H__2E159741_6592_4EA9_BBB1_B18CEE7D0BD5__INCLUDED_)
#define AFX_CUSTOMCELLS_H__2E159741_6592_4EA9_BBB1_B18CEE7D0BD5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

////////////////////////////////////////////////////////////////////////////////
// CButtonItem Class

class CButtonItem : public CBCGPGridItem
{
public:
	CButtonItem (LPCTSTR lpszText, UINT id);

protected:
	virtual BOOL IsPushButton() const
	{
		return TRUE;
	}

	virtual BOOL OnSetCursor () const
	{
		return FALSE; /* Use default */	
	}

	virtual BOOL IsTextOverflowingAllowed() const
	{
		return FALSE;
	}
	
	virtual BOOL IsHotTrackEnabled() const	{	return TRUE;	}
	virtual void OnMouseMove(const CPoint& point);
	virtual void OnMouseLeave();

	virtual void OnDrawValue (CDC* pDC, CRect rect);
	virtual BOOL OnClickValue (UINT uiMsg, CPoint point);
	virtual BOOL PushChar (UINT nChar);

	UINT	m_id;
};

/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_CUSTOMCELLS_H__2E159741_6592_4EA9_BBB1_B18CEE7D0BD5__INCLUDED_)
