![]() |
Office2013 RibbonResource sample |
Post Reply ![]() |
Author | |
Shinonome ![]() Groupie ![]() Joined: 18 July 2008 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() Posted: 20 December 2013 at 12:30am |
Could you please provide a RibbonResource sample program of The Office2013 Thema ?
I could not be created successfully. |
|
![]() |
|
yusufkrgz ![]() Newbie ![]() Joined: 27 March 2014 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
void CMainFrame::InitStyles()
{ VERIFY(XTPResourceImages()->SetHandle("Office2013.dll", "OFFICE2013WHITE.INI")); CXTPPaintManager::SetTheme(xtpThemeOffice2013); m_paneManager.SetTheme(xtpPaneThemeOffice2013); m_pWndRibbonBar->GetSystemButton()->SetStyle(xtpButtonCaption); CXTPCommandBarsFrameHook::m_bAllowDwm = false; m_pWndRibbonBar->EnableFrameTheme(true); auto const pCommandBars = GetCommandBars(); ASSERT(pCommandBars); pCommandBars->GetPaintManager()->m_bAutoResizeIcons = true; } just set style like that after you build the ribbon. of course if the theme is static that could work. |
|
![]() |
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 |