Say, if I display a popup context menu using TrackPopupMenu() API with TPM_RETURNCMD flag. While the context menu is displayed I need to see if Shift or Ctrl key is pressed on the keyboard and depending on that update some menu items from the context menu. Is that possible?
Say, if I display a popup context menu using TrackPopupMenu() API with TPM_RETURNCMD flag.
Share
This is not a standard user experience for the platform that you’re developing on. I know that I would be annoyed by such behavior. It is standard on the Windows platform to press the meta key before opening the menu. For example, holding shift while right-clicking an item in Explorer provides a modified context menu (e.g., “Open with…” or “Open in new process”).
Follow the platform conventions. I don’t expect an application on a Mac to behave like one on Windows and I don’t expect an application on Windows to behave like one on a Mac. If you don’t respect the conventions, you risk a large community of annoyed users. [See Lotus Notes, SAP]