Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Context menu doesn't pick up theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Context menu doesn't pick up theme

 Post Reply Post Reply
Author
Message
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Topic: Context menu doesn't pick up theme
    Posted: 10 February 2011 at 5:49am
I just 'ported' my application to CommandBars 15. It was a breeze. Thanks!

In previous versions I used the Scenic theme. In version 15, I use the following code snippet:

  XTPResourceImages()->SetHandle(AfxGetInstanceHandle(), _T("WINDOWS7BLUE.INI"));
  pCommandBars->SetTheme(xtpThemeRibbon);

The Ribbon is shown exactly as in previous versions, so that's OK.

The only problem is that the context menu's are not rendered correctly. They remain plain grey with black letters.

I've tested with some of the other themes, but for all of them the context menu's stay grey as well.

In previous versions of Codejock I did not need to do anything special to make the context menu's follow the theme. Did I miss something here?

David.
Back to Top
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2011 at 10:42am
I've solved the problem myself by replacing the static call to TrackPopupMenu by a normal member function call of the same function of CXTPCommandBars.

David.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.157 seconds.