Files
envi-code/SourceCode/Code2026/MFCCtrl/MfcGridCtrlCellCheck.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

65 lines
1.7 KiB
C++

#if !defined(__CMFCGRIDCTRLCELLCHECK_H__)
#define __CMFCGRIDCTRLCELLCHECK_H__
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// GridCellCheck.h : header file
//
// MFC Grid Control - Grid combo cell class header file
//
// Written by Chris Maunder <cmaunder@mail.com>
// Copyright (c) 1998-2002. All Rights Reserved.
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent, and
// providing that this notice and the authors name and all copyright
// notices remains intact.
//
// An email letting me know how you are using it would be nice as well.
//
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability for any damage/loss of business that
// this product may cause.
//
// For use with CGridCtrl v2.22+
//
//////////////////////////////////////////////////////////////////////
#include "MfcGridCtrlCell.h"
class THVAC_UIAPI CMfcGridCtrlCellCheck : public CMfcGridCtrlCell
{
friend class CMfcGridCtrl;
DECLARE_DYNCREATE(CMfcGridCtrlCellCheck)
public:
CMfcGridCtrlCellCheck();
public:
BOOL SetCheck(BOOL bChecked = TRUE);
BOOL GetCheck();
virtual CSize GetCellExtent(CDC* pDC);
virtual void OnClick( CPoint PointCellRelative);
virtual BOOL GetTextRect( LPRECT pRect);
protected:
CRect GetCheckPlacement();
virtual BOOL Draw(CDC* pDC, int nRow, int nCol, CRect rect, BOOL bEraseBkgnd = TRUE);
protected:
BOOL m_bChecked;
CRect m_Rect;
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(__CMfcGridCtrlCELLCHECK_H__)