Hi,

I have a CCommandBar on a dialog based WM 5.0 application.
The right button shows a menu which has a sub-menu created and updated
dinamically.
I keep a pointer for this sub-menu and I want to use as a context
pop-up menu (at long tap event) and to display with TrackPopupMenu.
If the sub-menu were opened at least one time from the command bar, I
will receive ERROR_POPUP_ALREADY_ACTIVE always when I want to call
TrackPopupMenu on it.

Any suggestion how can I force to close this menu (it seems that is
only hidden and is not closed prperly).

Thanks in advance,
Jozsef