I have seen this excellent answer about how to use CMFCButtonMenu
control.
I have also read the MSDN about the control.
Example:
Clicking the drop down works correctly. However, to quote the aforementioned SO Answer:
If left side of button is clicked, then event handler is called directly, without showing a popup menu.
How can I change this default behaviour? I want to always display the menu when they click anywhere on the button.
I should add that thus button is being displayed on a CDialog
in a CDialog
based application.