CMFCMenuButton does not respect dark color scheme

2019-06-14 10:02发布

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.

0条回答
登录 后发表回答