typedef enum {cstDisableState=0, cstUncheckedState=1, cstCheckedState} eCellCheckStateType; void SetCheck(eCellCheckStateType bChecked); CGridCellCheck* pCell = dynamic_cast<CGridCellCheck*>( m_gridctrl.GetCell(row, Column)); if (pCell) { pCell->SetCheck(static_cast<ecellcheckstatetype>(cstUncheckedState)); //error is here } error C2664: 'CGridCellTriStateCheck::SetCheck' : cannot convert parameter 1 from 'CSFT::eCellCheckStateType' to 'eCellCheckStateType' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) </ecellcheckstatetype>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)