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

CXTPStatusBar - Icons

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: CXTPStatusBar - Icons
    Posted: 30 April 2008 at 12:52pm
When I select the CCustomOffice2007Theme, the icons I display on the StatusBar is centered in the pane.  However when I select the CXTPRibbonTheme, the icons are right justified in the pane.  The same is true for bitmaps.  See image below:
 
 
How do I center the icons in the pane in CXTPRibbonTheme?
 
Also, in versions prior to 12, I set the icon width by:
 
m_wndStatusBar.SetPaneWidth(nIndex,XTAuxData().cxSmIcon);
 
In version 12.0 I have to use:
 
m_wndStatusBar.SetPaneWidth(nIndex,XTAuxData().cxSmIcon+4);
 
Why is the extra 4 pixels needed?
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.047 seconds.