|
|
|
|
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 |
|
Damien Castelltort
|
May 31, 2006 - 11:04 AM
|
Hi,
I’ve encountered a problem using a CExtPopupMenuWnd in a extension DLL. The dll implements a dialog call inside the main app.
The popup Menu is loaded like that : bOK = Menu.LoadMenu( IDR_LIB_NAVIGATOR_POPUP );
SubMenu = Menu.GetSubMenu(0); FillMoveElementMenu(SubMenu->GetSubMenu(4));
CExtPopupMenuWnd * pPopup = new CExtPopupMenuWnd;
//Construct the CExtPopupMenuWnd based on SubMenu pPopup->UpdateFromMenu( GetSafeHwnd(), &Menu, true, // bPopupMenu true, // bTopLevel true // bNoRefToCmdMngr );
//Track it pPopup->TrackPopupMenu(TPMX_LEFTALIGN, point.x, point.y);
The numeric ID of one of my item in the popup menu is the same as one of the main app Menu. In the main menu, the item has an icon associated automatically by profuis because it’s also in my main toolbar.
And when I pop the menu I have the same icon as in the main menu added by the profuis customization.
Here is a little screenshot to explain that a bit better : http://img241.imageshack.us/img241/8310/sanstitre7sa.jpg
|
|
Damien Castelltort
|
Jun 1, 2006 - 2:18 AM
|
OK, you confirm what we thought
Thanks for the answer.
|
|
Technical Support
|
May 31, 2006 - 12:33 PM
|
We recommend you avoid conflicts between commands identifiers. To fix your problem just change the identifier of one of the conflicting commands.
PS We noticed the bug with the Ctrl+Shift+N text in the popup menu. Please note this bug is already fixed in the last versions.
|
|