|
|
|
|
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 |
|
Chris Anderson
|
May 1, 2007 - 4:51 PM
|
How can I set the check/uncheck mark of a menu item in a context menu which is not part of the command manager i.e these items are dynamically created and I do not want this information to be serialized. I have created CExtPopupMenuWnd, called CreatePopupMenu and then inserted the items using ItemInsertCommand. Even though I pass the nCheck parameter with appropriate values (1 & 0), I dont see the check marks on the context menu item. Am I missing something?
|
|
Chris Anderson
|
May 2, 2007 - 12:49 PM
|
|
|
Technical Support
|
May 2, 2007 - 8:48 AM
|
Please find the following code in CPagePopupMenus::OnContextMenu() in the ProfUIS_Controls sample pLongSubMenu->ItemInsertCommand(
nCmdID,
-1,
LPCTSTR(strLongCommandName)
); and replace it with pLongSubMenu->ItemInsertCommand(
nCmdID,
-1,
LPCTSTR(strLongCommandName),
NULL,
NULL,
false,
1
); Now if you run this sample again, select the popup menus page, invoke a context menu over it and select the Long sub-menu, then you will see many checked menu items. So please make sure you set all the parameters in the CExtPopupMenuWnd::ItemInsertCommand() method correctly.
|
|