I am trying to set up a listbox with little bitmap icons, planning on using CAknSingleGraphicStyleListbox.
However, I do have already problems on compiling the code to load the icons into the application:
// Get the name of the file containing the icons
iconFileName = StringLoader::LoadLC(R_ICON_FILE_NAME); // Pushes iconFileName onto the Cleanup Stack.
// Create an array of icons, reading them from the file
CArrayPtr<CGulIcon>* icons = new(ELeave) CAknIconArray(KNumberOfIcons);
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyAppTick, EMbmMyAppTick_mask));
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyApp1player, EMbmMyApp1player_mask));
icons->AppendL(iEikonEnv->CreateIconL(*iconFileName, EMbmMyApp2player, EMbmMyApp2player_mask));
iSavedGamesListBox->ItemDrawer()->ColumnData()->SetIconArray(icons); // passing ownership of icons
The compiler tell that EMbmMyAppTick, EMbmMyAppTick_mask,
: error C2065: 'EMbmCheatCallTick' : undeclared identifier
I check my mbg file
I did not find error
My mbg file below:
// Generated by BitmapCompiler
// Copyright (c) 1998-2001 Symbian Ltd. All rights reserved.
Who can tell me what is error.
Can anyone please help me?
Thank you very much!