Print Page | Close Window

Context menu doesn't pick up theme

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=17858
Printed Date: 28 September 2024 at 12:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context menu doesn't pick up theme
Posted By: DavidH
Subject: Context menu doesn't pick up theme
Date 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.



Replies:
Posted By: DavidH
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net