Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Drawing of backstageview is wrong
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drawing of backstageview is wrong

 Post Reply Post Reply
Author
Message
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Topic: Drawing of backstageview is wrong
    Posted: 31 January 2018 at 12:16am
Hi,

Drawing of backstageview is wrong in 18.2.0.
The title bar becomes black and the arrow is not displayed.
It occurs only in new backstageview style and release build.




[Development environment]
Windows10 Pro Japanese
VisualStudio2010 SP1
Toolkit Pro for Visual C++ 18.2.0

[source]
void CMainFrame::SetBackstageTheme()
{
XTPPaintTheme nPaintTheme = GetCommandBars()->GetPaintManager()->GetCurrentTheme();
XTPControlTheme nTheme = xtpControlThemeResource;
switch (nPaintTheme)
{
case xtpThemeOffice2013:
case xtpThemeOffice2016:
nTheme = xtpControlThemeOffice2013;
break;
case xtpThemeVisualStudio2015: nTheme = xtpControlThemeVisualStudio2015; break;
default: nTheme = xtpControlThemeResource;
}
CXTPRibbonBar *pRibbonBar = (CXTPRibbonBar*)GetCommandBars()->GetMenuBar();
CXTPRibbonBackstageView *pView = DYNAMIC_DOWNCAST(CXTPRibbonBackstageView, pRibbonBar->GetSystemButton()->GetCommandBar());

if (pView)
{
if ((xtpThemeOffice2013 == nPaintTheme) || (xtpThemeOffice2016 == nPaintTheme) || (xtpThemeVisualStudio2015 == nPaintTheme))
pView->SetTheme(xtpThemeOffice2016);
//pView->SetTheme(xtpThemeOffice2013);
else
pView->SetTheme(nPaintTheme);
}

if (m_pageOpen.GetSafeHwnd())
m_pageOpen.SetTheme(nTheme);
if (m_pageProperty.GetSafeHwnd())
m_pageProperty.SetTheme(nTheme);
if (m_pagePdfOut.GetSafeHwnd())
m_pagePdfOut.SetTheme(nTheme);
if (m_pagePrint.GetSafeHwnd())
m_pagePrint.SetTheme(nTheme);
if (m_pageHelp.GetSafeHwnd())
m_pageHelp.SetTheme(nTheme);
}



Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 692
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2018 at 6:46am
Hello,

Can't reproduce this. Maybe you can reproduce this on our RibbonSample or send your sample application ?

Have you fixed issue with japan symbols in MarkUp on BackstageButtons ?

Regards,
 Oleksandr Lebed
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 692
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2018 at 6:49am
Also there strange grayed  disabled items in Backstage menu. Have you changed colors  of theme ?
Back to Top
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2018 at 6:59pm
>Have you fixed issue with japan symbols in MarkUp on BackstageButtons ?
>
What is it about?

>Also there strange grayed  disabled items in Backstage menu. Have you changed colors  of theme ?
>
No, I have not changed it.
Back to Top
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2018 at 7:01pm
>Maybe you can reproduce this on our RibbonSample or send your sample application ?
>
For now, I do not know how to reproduce with RibbonSample.
Back to Top
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2018 at 5:55am
I solved it.
I used old dll. (Office2013.dll)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.