Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TPM_LEFTBUTTON and TrackPopupMenu

Status
Not open for further replies.

AliAndAli

Programmer
Aug 3, 2002
27
US
In the documentation for TrackPopupMenu it says that:

TPM_LEFTBUTTON Causes the pop-up menu to track the left mouse button.

TPM_RIGHTBUTTON Causes the pop-up menu to track the right mouse button.

In the following code, changing TPM_LEFTBUTTON to TPM_RIGHTBUTTON does not change anything. It always behaves as if TPM_RIGHTBUTTON was specified.

pMenu->TrackPopupMenu(TPM_CENTERALIGN | TPM_LEFTBUTTON, mosPoint.x, mosPoint.y, this, NULL);

I am using VC++ 6 and windows XP. Does any one know if this is a bug?

Thanks,
Ali
 
Yes, I guess that's a bug. I've used TrackPopupMenu before and it behaves the same way.

Though I don't see why it really matters whether or not it tracks both buttons.

Hope this helps,
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top