WEB开发网
开发学院手机开发Symbian 开发 关于在symbian listbox中添加svg图片的问题 阅读

关于在symbian listbox中添加svg图片的问题

 2010-05-31 20:19:00 来源:WEB开发网   
核心提示:/*** Delete the selected item or items from the list box.*/void CATestList2ListBox::DeleteSelectedListBoxItemsL( CEikTextListBox* aListBox ){CAknFilteredTextLis

/**

* Delete the selected item or items from the list box.

*/

void CATestList2ListBox::DeleteSelectedListBoxItemsL( CEikTextListBox* aListBox )

{

CAknFilteredTextListBoxModel* model =

static_cast< CAknFilteredTextListBoxModel *> ( aListBox->Model() );

if ( model->NumberOfItems() == 0 )

return;

RArray< TInt >* orderedSelectedIndices = GetSelectedListBoxItemsLC( aListBox );

if ( !orderedSelectedIndices )

return;

// Delete selected items from bottom up so indices don't change on us

CDesCArray* itemArray = static_cast< CDesCArray* > ( model->ItemTextArray() );

TInt currentItem = 0;

for ( TInt idx = orderedSelectedIndices->Count(); idx-- > 0; )

{

currentItem = ( *orderedSelectedIndices )[ idx ];

itemArray->Delete ( currentItem );

}

// dispose the array resources

CleanupStack::PopAndDestroy();

// dispose the array pointer

CleanupStack::PopAndDestroy( orderedSelectedIndices );

// refresh listbox's cursor now that items are deleted

AknListBoxUtils::HandleItemRemovalAndPositionHighlightL(

aListBox, currentItem, ETrue );

}

// ]]] end generated function

// [[[ begin generated function: do not modify

/**

* Get the listbox.

*/

CAknDoubleLargeStyleListBox* CATestList2ListBox::ListBox()

{

return iListBox;

}

// ]]] end generated function

// [[[ begin generated function: do not modify

/**

* Create a list box item with the given column values.

*/

void CATestList2ListBox::CreateListBoxItemL( TDes& aBuffer,

TInt aIconIndex,

上一页  15 16 17 18 19 20 21 22 23 24 25  下一页

Tags:关于 symbian listbox

编辑录入:coldstar [复制链接] [打 印]
赞助商链接