cmfcmenubutton

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

此生再无相见时 提交于 2019-12-22 08:28:13
问题 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, I saw the following debug output: > Can't load bitmap: 42b8.GetLastError() = 716 > CMenuImages. Can't load menu images 3f01 It turns out that even with Visual Studio 2010 RTM, when you create a brand new MFC Dialog based application, the

CMFCMenuButton not showing dropdownlist in release

放肆的年华 提交于 2019-12-12 04:35:44
问题 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 call of __super::OnShowMenu() of the OnShowMenu() method of my derived class. To make thing worse, there is some configuration on my machine that is not stepping into the MFC feature pack methods ... I made everything to put this working and I could

Example code for CMFCMenuButton?

橙三吉。 提交于 2019-12-10 19:57:54
问题 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 this refuses to install on my system since I'm running VS 2013 and don't have VS 2008. I haven't been able to find the samples as stand-alone code. To be specific, I have a dialog bar in which I want a button labelled Save with drop-down options of

CMFCMenuButton does not respect dark color scheme

爱⌒轻易说出口 提交于 2019-12-08 14:42:36
问题 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 { public: DECLARE_DYNCREATE(CustomVisualManager); CustomVisualManager() { SetStyle(Office2007_ObsidianBlack); } }; CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(Hydra::CustomVisualManager)); The looks of some UI has changed but MFCMenuButton

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

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

不羁岁月 提交于 2019-12-05 13:00:20
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, I saw the following debug output: > Can't load bitmap: 42b8.GetLastError() = 716 > CMenuImages. Can't load menu images 3f01 It turns out that even with Visual Studio 2010 RTM, when you create a brand new MFC Dialog based application, the CMFCMenuButton doesn't draw the arrow and shows the same errors. Initially I assumed that I didn't have something