PDA

View Full Version : how to get lData in IMenu ?


ameng
07-19-2002, 04:46 AM
associate to the APIReference 1.1, page 373-377:
on call function
boolean IMENUCTL_AddItem(IMenuCtl * pIMenuCtl,
const char * pszResFile, uint16 wResID,
uint16 nItemID, AECHAR * pText, uint32 lData)
the lData will appear on the dwParam of the callback xxx_HandleEvent.
but when I test on the Emulator the dwParam is
the pointer of the IMenuctl object.
Where can I get the lData ?

thank you!

arunbangari
07-19-2002, 07:52 AM
Hi,
Use IMENUCTL_GetItemData API to retrieve the Idata that you have set while adding the menu Item. For further information reffer BREW SDK API reference.

Good luck
Arun Bangari

ameng
07-20-2002, 06:28 AM
I got it.
Thank you very much!!