Context menu doesn't pick up theme |
Post Reply |
Author | |
DavidH
Groupie Joined: 24 March 2007 Status: Offline Points: 59 |
Post Options
Thanks(0)
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. |
|
DavidH
Groupie Joined: 24 March 2007 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |