XLL+ Class Library (7.0)

CXlWizExUIFunctionRegistry::SetShouldUseThemes

Sets whether the extended user interface should use Windows XP themes

void SetShouldUseThemes(
   bool bUseThemes
);

Parameters

bUseThemes

true if the the extended user interface should use Windows XP themes. false if it should not.

Remarks

Use this method to turn off theme support in the extended user interface. You should ensure that this value matches the behavior of your add-in. If you provide a manifest file that loads Common Controls 6, then theme support should be on, so that the extended UI buttons match the controls in Common Controls 6. If you do not provide a manifest file, or you expect your add-in to be used under Excel XP (2002) or below, then you should not support themes.

By default, XLL+ projects built with Visual Studio 2005 and above provide a manifest. Projects built with Visual Studio.NET do not.

Requirements

Header: xlwizexui.h

See Also

CXlWizExUIFunctionRegistry Class | CXlWizExUIFunctionRegistry Methods