Ribbon sizing |
Post Reply |
Author | |
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
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. |
|
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 |