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

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

 2010-05-31 20:19:00 来源:WEB开发网   
核心提示:{// [[[ begin generated region: do not modify [Generated Contents]CWindowGc& gc = SystemGc();gc.Clear( aRect );// ]]] end generated region [Generated Contents]}

{

// [[[ begin generated region: do not modify [Generated Contents]

CWindowGc& gc = SystemGc();

gc.Clear( aRect );

// ]]] end generated region [Generated Contents]

}

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

/**

* Add a list box item to a list.

*/

void CATestList2ListBox::AddListBoxItemL(

CEikTextListBox* aListBox,

const TDesC& aString )

{

CTextListBoxModel* model = aListBox->Model();//得到listbox的model

CDesCArray* itemArray = static_cast< CDesCArray* > ( model->ItemTextArray() );//得到ilistbox 的数组

itemArray->AppendL( aString );//添加本数组

aListBox->HandleItemAdditionL();//当listbox的model改变的时候 用这个功能来改变他们内在的这个状态

}

// ]]] end generated function

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

/**

* Get the array of selected item indices, with respect to the list model.

* The array is sorted in ascending order.

* The array should be destroyed with two calls to CleanupStack::PopAndDestroy(),

* the first with no argument (referring to the internal resource) and the

* second with the array pointer.

* @return newly allocated array, which is left on the cleanup stack;

* or NULL for empty list.

*/

RArray< TInt >* CATestList2ListBox::GetSelectedListBoxItemsLC( CEikTextListBox* aListBox )

{

CAknFilteredTextListBoxModel* model =

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

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

return NULL;

// get currently selected indices

const CListBoxView::CSelectionIndexArray* selectionIndexes =

aListBox->SelectionIndexes();

上一页  25 26 27 28 29 30 31  下一页

Tags:关于 symbian listbox

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接