Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Pierre MEDART
|
Oct 18, 2007 - 2:29 AM
|
Hi is there a way to limit the number of theme that we display in the CExtThemeSwitcherToolControlBar ?
We need to provide some way to change the ui theme to our user, but for example, we don’t plan to use the Office 2000 theme that looks outdated now.
|
|
Technical Support
|
Oct 18, 2007 - 12:59 PM
|
You can override the ThemeSwitcherInit() method in a CExtThemeSwitcherToolControlBar -derived class and change the method’s body as you wish. Alternatively you can invoke the base class method and then remove the unwanted buttons. Each button represents some paint manager and has identifiers that are declared as follows #define ID_EXT_PM_THEME_Office2000 29901
#define ID_EXT_PM_THEME_OfficeXP 29902
#define ID_EXT_PM_THEME_Office2003 29903
#define ID_EXT_PM_THEME_Office2003NoThemes 29904
#define ID_EXT_PM_THEME_Studio2005 29905
#define ID_EXT_PM_THEME_NativeXP 29906
#define ID_EXT_PM_THEME_Office2007_R1 29907
#define ID_EXT_PM_THEME_Office2007_R2_LunaBlue 29908
#define ID_EXT_PM_THEME_Office2007_R2_Obsidian 29909
|
|