Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - TPM_RETURNCMD argument in TrackPopupMenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TPM_RETURNCMD argument in TrackPopupMenu

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: TPM_RETURNCMD argument in TrackPopupMenu
    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

Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2004 at 8:01am
Add TPM_NONOTIFY to disable the update mechanism.
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2004 at 4:26am

Yes off cause, thanks...

- cpede

Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2004 at 4:30am

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

- cpede

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.