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
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