S
Scott McPhillips [MVP]
I am writing a Word 2007 COM add-in in native C++ with ATL. My dialogs
display buttons with the old, square-corner style with no color. So I'm
trying to improve the button's appearance to use the XP themes.
This Knowledge Base article <http://support.microsoft.com/kb/830033>
describes how to apply Windows XP themes to Office COM add-ins. However,
this article has not been updated since Visual C++ version 6. I have been
trying to apply it in Visual C++ 2008 without success.
In part, the article says
"Add the manifest file to your resource file, as in the following example:
#include "windows.h"
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST "mydllname.dl.manifest"
What "resource file" is that referring to? I don't know of any "resource
files" that include windows.h. Putting it into my project's .rc file either
has no effect or produces "fatal error CVT1100: duplicate resource",
depending on where within the .rc file it is placed.
I also tried using this new pragma to get the linker to add the required
manifest section:
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='x86' publicKeyToken='6595b64144ccf1df'
language='*'\"")
This succeeded in adding the section to my add-in's embedded manifest file,
but there is still no change to my buttons appearance. Should this work in
Word 2007?
display buttons with the old, square-corner style with no color. So I'm
trying to improve the button's appearance to use the XP themes.
This Knowledge Base article <http://support.microsoft.com/kb/830033>
describes how to apply Windows XP themes to Office COM add-ins. However,
this article has not been updated since Visual C++ version 6. I have been
trying to apply it in Visual C++ 2008 without success.
In part, the article says
"Add the manifest file to your resource file, as in the following example:
#include "windows.h"
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST "mydllname.dl.manifest"
What "resource file" is that referring to? I don't know of any "resource
files" that include windows.h. Putting it into my project's .rc file either
has no effect or produces "fatal error CVT1100: duplicate resource",
depending on where within the .rc file it is placed.
I also tried using this new pragma to get the linker to add the required
manifest section:
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='x86' publicKeyToken='6595b64144ccf1df'
language='*'\"")
This succeeded in adding the section to my add-in's embedded manifest file,
but there is still no change to my buttons appearance. Should this work in
Word 2007?