Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Adrian M
|
Mar 2, 2005 - 12:40 PM
|
Hi,
Is there a way to associate a user defined value with a menu item? ItemInsert... methods do not have such a parameter.
Thanks,
Adrian
|
|
Technical Support
|
Mar 2, 2005 - 1:24 PM
|
You can associate the LPARAM value with each menu item. Please let us assume that you have inserted some menu item into pPopup menu at the nItemIndex position. In this case, to associate your LPARAM value with the menu item, just invoke the following code:LPARAM lParamItemCustomData = (LPARAM)...;
pPopup->ItemGetInfo().LParamSet( lParamItemCustomData );
|
|