Print Page | Close Window

TPM_RETURNCMD argument in TrackPopupMenu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1367
Printed Date: 06 November 2025 at 11:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TPM_RETURNCMD argument in TrackPopupMenu
Posted By: cpede
Subject: TPM_RETURNCMD argument in TrackPopupMenu
Date Posted: 04 November 2004 at 4:57am

When I call a popup menu like this:

UINT nRet = CXTPCommandBars::TrackPopupMenu(&menu,
    TPM_RETURNCMD|TPM_LEFTALIGN|TPM_RIGHTBUTTON,r.left,r.bottom, this);

using the
TPM_RETURNCMD flag, I don't expect all the menu items to become grayed out, since I want to handle the menus myself. When using the standard track popup it works as expected.

Is this a bug or do I do something wrong?

- cpede




Replies:
Posted By: Sven
Date Posted: 04 November 2004 at 8:01am
Add TPM_NONOTIFY to disable the update mechanism.


Posted By: cpede
Date Posted: 05 November 2004 at 4:26am

Yes off cause, thanks...

- cpede



Posted By: cpede
Date Posted: 05 November 2004 at 4:30am

Ups, but now the MF_MENUBREAK flag does not seem to have any effect?

- cpede




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net