Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon sizing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon sizing

 Post Reply Post Reply
Author
Message
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon sizing
    Posted: 18 November 2009 at 3:17am

Hi,

could someone post some lines of code for showing me how decrease ribbon height and eliminate group caption?
 
thank you a lot
 
N.B:. My frame window is skinned with office theme
 
EDIT: I've found only one solution.
In InitInstance of my application I set a timer of 100ms, and then in CMainFrame I have a method OnTimer:

if (nIDEvent == ID_RIBBON_TIMER)

{

KillTimer(nIDEvent);

CXTPCustomRibbonTheme *pTheme = (CXTPCustomRibbonTheme*)m_pRibbonBar->GetPaintManager();

pTheme->SetGroupCaptionHeight(0);

m_pRibbonBar->OnRecalcLayout();

}

In this way, it seems to work. If i put these lines anywhere in the code, before the main window is shown, it doesn't work.
I really don't understand WHAT and WHEN overrides my caption settings. 
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.172 seconds.