Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Aleksey Leshchuk
|
Jun 14, 2007 - 3:24 AM
|
I discovered the problem with CExtGridCellComboBox selection, in 2.54 selection ( SetCurSel or SelectString ) worked as expected, but in 2.70 the old code became somehow incorrect, and all combo selection are dropped. The one of symphtoms is changing state of combobox like there was default value changing ( the title became bold ). Need a hint :)
|
|
Aleksey Leshchuk
|
Jun 14, 2007 - 10:22 AM
|
|
|
Technical Support
|
Jun 14, 2007 - 7:09 AM
|
We have recently fixed a bug in the CExtGridCellComboBox class. Please update the following method and recompile the library. void CExtGridCellComboBox::Assign( const CExtGridCell & other )
{
ASSERT_VALID( this );
CExtGridCellString::Assign( other );
CExtGridCellComboBox * pCell =
DYNAMIC_DOWNCAST(
CExtGridCellComboBox,
( const_cast < CExtGridCell * > ( &other ) )
);
ResetContent();
if( pCell != NULL )
{
// copy cell items
ITEM_INFO * pItemCurSel = NULL;
LONG nItem = 0;
for( nItem = 0; nItem < pCell->m_arrItems.GetSize(); nItem++ )
{
ITEM_INFO * pOtherItem = pCell->m_arrItems[ nItem ];
ITEM_INFO * pNewItem = new ITEM_INFO( *pOtherItem );
m_arrItems.Add( pNewItem );
if( pCell->m_pCurSel == pOtherItem )
pItemCurSel = pNewItem;
}
m_bEnumMode = pCell->m_bEnumMode;
SetImageList( pCell->m_pImageList );
if( pItemCurSel != NULL )
{
nItem = _GetIndexOf( pItemCurSel );
SetCurSel( nItem );
}
} // if( pCell != NULL )
}
|
|