We have added one new extended grid cell style in the ../Prof-UIS/Include/ExtGridWnd.h file:
// do not select entire text in the in-place cell editor
#define __EGCS_EX_NO_INPLACE_CONTROL_SELECTION 0x00004000L
And changed the body of the following constructor in the
../Prof-UIS/Src/ExtGridWnd.cpp file:
CExtGridInplaceEdit::CExtGridInplaceEdit(
CExtGridWnd & wndGrid,
CExtGridCell & cell,
LONG nVisibleColNo,
LONG nVisibleRowNo,
LONG nColNo,
LONG nRowNo,
INT nColType,
INT nRowType,
const RECT & rcCellExtra,
const RECT & rcCell,
const RECT & rcInplaceControl,
LONG nLastEditedColNo,
LONG nLastEditedRowNo
)
: CExtGIE < CExtEditBase > (
wndGrid,
cell,
nVisibleColNo,
nVisibleRowNo,
nColNo,
nRowNo,
nColType,
nRowType,
rcCellExtra,
rcCell,
rcInplaceControl,
nLastEditedColNo,
nLastEditedRowNo
)
, m_bInValidation( false )
, m_bForceDisableInitSelText( false )
, m_strTextPrevious( _T("") )
, m_strTextInitial( _T("") )
{
if( ( cell.GetStyleEx() & __EGCS_EX_NO_INPLACE_CONTROL_SELECTION ) != 0 )
m_bForceDisableInitSelText = true;
}