popupmenubutton

CMFCMenuButton does not close

不羁岁月 提交于 2019-12-08 05:40:42
问题 I have a CDialog with a CFMCMenuButton . when I open it, everything appears normally: The problem happens when I click somewhere else to close the menu. The menu seems unclosable, unless user selects an option of it. And if I press Escape on the keyboard, the dialog closes itself, which is too drastic; I really would want it to close only the menu. I know I could solve this by setting its property "OS Menu" in the resource file to True (or equivalently, assigning its property m_bOSMenu= TRUE

CMFCMenuButton does not close

浪尽此生 提交于 2019-12-07 08:43:23
I have a CDialog with a CFMCMenuButton . when I open it, everything appears normally: The problem happens when I click somewhere else to close the menu. The menu seems unclosable, unless user selects an option of it. And if I press Escape on the keyboard, the dialog closes itself, which is too drastic; I really would want it to close only the menu. I know I could solve this by setting its property "OS Menu" in the resource file to True (or equivalently, assigning its property m_bOSMenu= TRUE ). And I would get: As you can see in the image, the consequences are : I loose the icons (not very