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 style remains light gray.

来源:https://stackoverflow.com/questions/30052718/cmfcmenubutton-does-not-respect-dark-color-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!