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

45 lines
1007 B
C++

/*****************************************************************************
COPYRIGHT (C) 2000-2001, Ken Bertelson <kbertelson@yahoo.com>
*****************************************************************************/
#include "stdafx.h"
#include "GridBtnCell.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
IMPLEMENT_DYNCREATE(CGridBtnCell, CGridBtnCellBase)
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGridBtnCell::CGridBtnCell()
: CGridBtnCellBase()
{
Reset();
}
CGridBtnCell::~CGridBtnCell()
{
}
void CGridBtnCell::Reset()
{
CGridBtnCellBase::Reset();
m_strText.Empty();
m_nFormat = DT_RIGHT|DT_VCENTER|DT_SINGLELINE|DT_END_ELLIPSIS;
int i1;
for( i1=0; i1 < NBR_CTLS; i1++)
{
memset( &DrawCtl[i1] ,0, sizeof( STRUCT_DRAWCTL) );
strBtnAry[ i1].Empty();
}
}