CAknSelectionListDialog::CreateCustomControlL如何正确使用
在CAknSelectionListDialog我打算使用自定义的lisybox,code如下(从sdk上抄下来):
SEikControlInfo CMySeleDialog::CreateCustomControlL(TInt aControlType)
{
CCoeControl *control = NULL;
if (aControlType == EAknCtSingleGraphicListBox)
{
control = new(ELeave)CMyListBox;
}
SEikControlInfo info = {control,0,0};
return info;
}
TBool CMySeleDialog::IsAcceptableListBoxType(TInt aControlType, TBool &aIsFormattedCellList)
{
if (aControlType == EAknCtSingleGraphicListBox)
{
aIsFormattedCellList = ETrue;
return ETrue;
}else return EFalse;
}
CMySeleDialog::CreateCustomControlL一调就panic,怎样正确使用?