智手移动中文网's Archiver

智手小石头 发表于 2006-5-9 11:07

动态改变SettingListBox中的一个Item的时候动态的隐藏其中的某一个Item

CAknSettingItemList::SettingItemArray()
/**
* @return a pointer to the setting item array; No ownership is transferred
*/
IMPORT_C CAknSettingItemArray* SettingItemArray() const;

上面的函数可以得到一个CAknSettingItem数组,然后可以试一下CAknSettingItem::SetHidden()
/**
* Set the visibility
* @param Set to Etrue to hide the item; EFalse to make it visible
*
* Note that the setting item array must have be notified of this
* by calling CAknSettingItemList::HandleChangeInItemArrayOrVisibility
*/
IMPORT_C void SetHidden(TBool aHidden );

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.