Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Office 2003 not blue on Vista
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office 2003 not blue on Vista

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: Office 2003 not blue on Vista
    Posted: 21 March 2007 at 5:22pm



Previously (on XP) my app looked blue. I just upgraded to a new computer with Vista, and I also upgraded my version of the toolkit (from ~10.3 IIRC), so I'm not sure which is causing this issue (i.e. running on Vista or a change in the toolkit behaviour), but now it is grey.

The ShortcutBar Sample can be used to show the current behaviour, as it is also grey (see image) when displaying the "Office 2003" theme. It's not acting as it should, because the version of Office I installed (Office 2003) is still blue (see image again) on my Vista machine.

I've tried many combinations of:
CXTPPaintManager::SetTheme(xtpThemeOffice2003);
XTPPaintManager()->SetLunaTheme(xtpSystemThemeBlue);    XTThemeManager()->SetTheme(xtThemeOffice2003);
XTPColorManager()->RefreshLunaColors();
(etc)
but I can't seem to get the blue back. How do I do it?


I'm using 10.4.2, building on Vista with VS2005 (with SP1 and Vista update).

Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2007 at 6:16pm
Add aero.msstyles to CXTPColorManager::_GetWinThemeWrapperTheme (XTPColorManager.cpp):

     // search for "luna.msstyles" string in theme name.
     if (wcsstr(WCSLWR_S(pszThemeFileName, MAX_PATH), L"luna.msstyles") ||
// add:
          wcsstr(WCSLWR_S(pszThemeFileName, MAX_PATH), L"aero.msstyles") ||
//
          wcsstr(WCSLWR_S(pszThemeFileName, MAX_PATH), L"winxp.luna.cjstyles"))
     {
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2007 at 6:38pm
Thanks for the idea, but that doesn't work for me, since the program never gets that far. It always stops at the first function call:


XTPCurrentSystemTheme CXTPColorManager::_GetWinThemeWrapperTheme()
{
    // windows classic theme is in use we do not need to go further.
    if (!CXTPWinThemeWrapper().IsThemeActive())
        return xtpSystemThemeUnknown; <-- always goes here
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2007 at 2:04am
Hi,
 
easy to call
XTPColorManager()->SetLunaTheme(xtpSystemThemeBlue);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2007 at 10:16am
It works as I want it to now.

Thanks Oleg (once again!).

Back to Top
BastianPL View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote BastianPL Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2007 at 1:59pm
But how to call this, where ?
Bastian
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2007 at 11:11pm
As soon as possible (i.e. before any windows shows up on the screen)

In a MFC MDI app, I typically stick it in
CMainFrame::OnCreate
or
CMainFrame::CMainFrame()
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.078 seconds.