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 |
|
John Ritzenthaler
|
Jan 29, 2009 - 3:29 PM
|
I need to create context menus that contain temporary commands. The command is specific to the current context. It’s not in any menu or tool bar. For example, I might want to right-click on an object to copy one of several attributes of that object to the clipboard. So I use a starting ID plus the index of the attribute. When I try to do this, I get an ASSERT in CExtPopupMenuWnd::InsertItem() because g_CmdManager->CmdGetPtr() returns NULL. Is there any way around this or should I be doing something else? It seems like a fairly common requirement.
|
|
John Ritzenthaler
|
Jan 30, 2009 - 8:01 AM
|
Please disregrad the posting above. I found the ItemInsertCommand function.
|
|