Questions tagged [cmfcmenubutton]

CMFCMenuButton is a implementation that displays a and reports on the user's menu selections. The CMenuButton was introduced with the Visual C++ 2008 Feature Pack ().

11 questions
5
votes
1 answer

CMFCMenuButton not properly repainting when toggling high contrast mode

In an C++ MFC project I'm using CMFCMenuButton using MSVC 2013. When I toggle the high contrast mode the button is not properly repainted (for comparison a normal button is displayed): Calling Invalidate() or…
MrTux
  • 32,350
  • 30
  • 109
  • 146
4
votes
1 answer

Example code for CMFCMenuButton?

Sorry for the newbie question, but can anyone point me at sample code that illustrates the use of the CMFCMenuButton? The Microsoft help refers to "New Controls samples", but these samples seem to be in the Visual Studio 2008 "Feature Pack", and…
Bill Heitler
  • 187
  • 3
  • 13
4
votes
2 answers

Why isn't the dropdown arrow drawn for an CMFCMenuButton?

I ran into this issue when trying to add a CMFCMenuButton to an existing MFC application. It worked properly, and even resized the button to accommodate the dropdown arrow. But it didn't draw the dropdown arrow, and when I hovered over the button,…
bsruth
  • 5,372
  • 6
  • 35
  • 44
2
votes
1 answer

how to correctly send CMFCMenuButton selected ID to the message map?

firstly let me describe what I have: scenario: CMFCMenuButton, loaded with a CMenu, in a dialog test: click on an item of the menuresult: the message map will get the ID of the CMFCMenuButton and not the ID of the menu how to get the actual menu ID…
Robson
  • 916
  • 5
  • 22
1
vote
2 answers

Conditionally set the mouse cursor on a CMFCMenuButon control

I have a standard CMFCMenuButton control on my dialog: CONTROL "Congregation Link",IDC_MFCMENUBUTTON_CONGREGATION_LINK, "MfcMenuButton",WS_TABSTOP,257,60,159,14 This is the menu: IDR_MENU_HYPERLINK_POPUP MENU BEGIN POPUP…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
1
vote
1 answer

CMFCMenuButton does not close

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…
sergiol
  • 4,122
  • 4
  • 47
  • 81
1
vote
1 answer

CMFCMenuButton with a programmatically constructed menu?

I'm new to the CMFCMenuButton control; here's my code in OnInitDialog(): // Load application list into menu button m_ApplicationMenu = CreateMenu(); m_MenuInfoSize = 2; m_MenuInfo = new MENUITEMINFO[m_MenuInfoSize]; memset(m_MenuInfo, 0,…
KC Wong
  • 2,410
  • 1
  • 18
  • 26
0
votes
1 answer

Problem deleting all sub-menu items correctly in CMFCMenuButton

I am getting myself confused. I have a menu: IDR_MENU_POPUP_MANAGE_GROUPS MENU BEGIN POPUP "__MANAGE_GROUP__" BEGIN MENUITEM "Add Group", ID_POPUP_ADD_GROUP POPUP "Edit Group" BEGIN …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
1 answer

How to SetOriginalState of a dynamically created CMFCToolbar?

I have create some toolbars dynamically in my mfc application m_cToolBarEx.CreateEx(this, TBSTYLE_FLAT , WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC | CBRS_HIDE_INPLACE); the toolbar has no…
Fatima A.
  • 41
  • 13
0
votes
0 answers

CMFCMenuButton does not respect dark color scheme

How to change the looks or MFCMenuButton? We need some dark color scheme, so styles is set to CMFCVisualManagerOffice2007::Office2007_ObsidianBlack. Visual manager is set as follows: class CustomVisualManager : public CMFCVisualManagerOffice2007 …
ChatCloud
  • 1,152
  • 2
  • 8
  • 22
0
votes
1 answer

CMFCMenuButton not showing dropdownlist in release

I have a CMFCMenuButton on a CDialogBar that has a very strange behaviour: it shows its dropdown list in the Debug build but does not show it in the Release build. Debug build: Release build: It seems that there is happening something wrong in the…
sergiol
  • 4,122
  • 4
  • 47
  • 81