Problem in ICONVIEWCTL!! | developer.brewmp.com Problem in ICONVIEWCTL!! | developer.brewmp.com

Developer

Problem in ICONVIEWCTL!!

Forums:

Hello,

I am using BREW SDK 3.1.2
i am trying to make a menu which is icon based just like given in the example "Whiteboard" i am pasting my code below....but it is not running successfully .....

please help me!!!

Am i missing something....plzz help me!!

--------------------------------------------------------------------------------------------------
case EVT_APP_START:

if (SUCCESS !=ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_MENUCTL,(void**)(&pMe->m_pMenu)))
{
return FALSE;
}
if (SUCCESS !=ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_ICONVIEWCTL, (void**)( &pMe->m_pIconViewCtl)))
{
return FALSE;
}

IMENUCTL_SetProperties( pMe->m_pIconViewCtl, MP_ICON_TEXT_TOP | MP_NO_ARROWS );

rMenuItem.pText = NULL;
rMenuItem.pImage = NULL;
rMenuItem.pszResImage = rMenuItem.pszResText = TEST_MENU_RES_FILE;
rMenuItem.wFont = AEE_FONT_NORMAL;

rMenuItem.wText = IDC_ITEM1;
rMenuItem.wImage = IDB_ITEM1;
rMenuItem.wItemID = IDC_ITEM1;
IMENUCTL_AddItemEx( pMe->m_pIconViewCtl, &rMenuItem );

rMenuItem.wText = IDC_ITEM2;
rMenuItem.wImage = IDB_ITEM2;
rMenuItem.wItemID = IDC_ITEM2;
IMENUCTL_AddItemEx( pMe->m_pIconViewCtl, &rMenuItem );

//SETAEERECT( &rRect, 0, (pMe->m_pScreenRect.dy + pMe->m_pScreenRect.y ) - MAIN_MENU_HEIGHT, pMe->m_pScreenRect.dx, MAIN_MENU_HEIGHT );

SETAEERECT( &rRect,0,128,128,132 );

IMENUCTL_SetRect(pMe->m_pIconViewCtl,&rRect);

IMENUCTL_SetActive(pMe->m_pIconViewCtl, TRUE );
IDISPLAY_Update( pMe->a.m_pIDisplay);

return(TRUE);
default:
break;
-------------------------------------------------------------------------------------------------------