Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Theme is not changing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Theme is not changing

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Topic: Theme is not changing
    Posted: 14 May 2007 at 7:09am

Hai,

   I have implemented xtpThemeOffice2003 for my commandbar.So, my application coming good with blue color in commandbar(menu bar, toolbar etc.,).But the problem is when I am changing the color scheme(changing the display property of the desktop) to olive green / sliver the commanbar theme is not changing, it keep remains as default blue. What is the problem? please help.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 14 May 2007 at 7:43am

It can be only if

1. you call somewhere SetLunaTheme to use only blue colors
2. OnFrameWndMsg was not called - for example you override CmainFrame::OnWndMsg and didn't call base method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2007 at 1:56am
Thanks
 
 How can I change the statusbar theme from calssic style to xtpThemeOffice2003 (like default blue,olive green,silver). Any samples?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 16 May 2007 at 5:50am
Office 2003 doesn't draw statusbar with blue/olive colors - it uses standard colors for statusbar.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2007 at 4:11am
Hi,
  I haven't use SetLunaTheme anywhere in my code and I doesn't have any OnWndMsg or OnCmdMsg like that. The problem is when my application is running that time if I change the color scheme to olive green or silver, the commandbar is not changing to the present color scheme. If I stop & run my application again it is changing to the present color scheme. But all your example projects, when it is running and if I am change the color scheme, immediately commandbars is changing to the present color scheme. Please help.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 13 June 2007 at 5:33am
Hi,
 
 
open Source\CommandBars\XTPCommandBars.cpp  file and set breakpoint in
 
1. beginning OnFrameWndMsg method - check if it was called.
 
2. in (message == WM_SYSCOLORCHANGE) block - check if was called when you change windows theme.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2007 at 6:26am

Hi,

No, it is getting inside into the (message == WM_SYSCOLORCHANGE) block when I am changing the color scheme. What is the problem? Please give solution.

Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2007 at 6:29am
Sorry! it is not getting into the (message == M_SYSCOLORCHANGE) block. Please ignore the previous reply.
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2007 at 6:40am
Hi,
  Thanks. I solved the issue, the problem exists only becoz of my code. Anyway Thanks.
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.063 seconds.