Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GridCellCheck.h

00001 #if !defined(AFX_GRIDCELLCHECK_H__ECD42822_16DF_11D1_992F_895E185F9C72__INCLUDED_)
00002 #define AFX_GRIDCELLCHECK_H__ECD42822_16DF_11D1_992F_895E185F9C72__INCLUDED_
00003 
00004 #if _MSC_VER >= 1000
00005 #pragma once
00006 #endif // _MSC_VER >= 1000
00007 
00009 // GridCellCheck.h : header file
00010 //
00011 // MFC Grid Control - Grid combo cell class header file
00012 //
00013 // Written by Chris Maunder <cmaunder@mail.com>
00014 // Copyright (c) 1998-2002. All Rights Reserved.
00015 //
00016 // This code may be used in compiled form in any way you desire. This
00017 // file may be redistributed unmodified by any means PROVIDING it is 
00018 // not sold for profit without the authors written consent, and 
00019 // providing that this notice and the authors name and all copyright 
00020 // notices remains intact. 
00021 //
00022 // An email letting me know how you are using it would be nice as well. 
00023 //
00024 // This file is provided "as is" with no expressed or implied warranty.
00025 // The author accepts no liability for any damage/loss of business that
00026 // this product may cause.
00027 //
00028 // For use with CGridCtrl v2.22+
00029 //
00031 
00032 
00033 #include "GridCell.h"
00034 
00035 
00036 class CGridCellCheck : public CGridCell
00037 {
00038     friend class CGridCtrl;
00039     DECLARE_DYNCREATE(CGridCellCheck)
00040 
00041 public:
00042     CGridCellCheck();
00043 
00044 public:
00045         BOOL SetCheck(BOOL bChecked = TRUE);
00046         BOOL GetCheck();
00047 
00048 // Operations
00049         virtual CSize GetCellExtent(CDC* pDC);
00050     virtual void OnClick( CPoint PointCellRelative);
00051     virtual BOOL GetTextRect( LPRECT pRect);
00052 
00053 protected:
00054         CRect GetCheckPlacement();
00055 
00056     virtual BOOL Draw(CDC* pDC, int nRow, int nCol, CRect rect, BOOL bEraseBkgnd = TRUE);
00057 
00058 protected:
00059     BOOL  m_bChecked;
00060     CRect m_Rect;
00061 };
00062 
00064 
00065 //{{AFX_INSERT_LOCATION}}
00066 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
00067 
00068 #endif // !defined(AFX_GRIDCELLCHECK_H__ECD42822_16DF_11D1_992F_895E185F9C72__INCLUDED_)

Generated on Tue Feb 17 02:03:03 2004 for harlem by doxygen 1.3.6