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 |
|
Neville Franks
|
Aug 20, 2003 - 9:41 PM
|
Hi, I want to create a CExtPopupMenuWnd on the fly by building it from a set of strings. As in my previous post I don’t want messages handles by a parent window, and thus use: dwTrackFlags = TPMX_DO_MESSAGE_LOOP | TPMX_NO_WM_COMMAND | TPMX_NO_CMD_UI.
I tried using ItemInsert() without success. The only way I’ve found so far is to instantiate a CMenu, use AppendMenu() to add my items and then use UpdateFromMenu() with a dummy hWndCmdRecv param. This works but seems like quite a bit of extra work and overhead. Is there a better way? If not can we have functions like AppendMenu() added to CExtPopupMenuWnd - thanks.
PS. Is there a way to be notified by email when a reply is added to a forum post I’ve made? Various forum programs do this.
|
|
Technical Support
|
Aug 21, 2003 - 7:10 AM
|
Dear Neville,
We will think about how to enhance the menu construction procedures. In our projects we use preliminary constructed HMENU handles, which are passed as a parameter to CExtPopupMenuWnd::UpdateFromMenu() .
We have added the CExtPopupMenuWnd::ItemInsertCommand() method that should make creation of popup menus (with no reference to the command manager) much easier. You will receive an e-mail with library updates and a sample project. The project demonstrates how to use CExtPopupMenuWnd::ItemInsertCommand() and track a popup menu without mechanism of command updating.
As far as e-mail notifications are concerned, we are working on this now.
|
|
Neville Franks
|
Aug 22, 2003 - 12:54 AM
|
Hi Sergiy, Thanks for your prompt response. It sounds great.
Neville
|
|