1

I have written a Word add-in in C++ using plain Win32 API. It opens some dialogs but these are always shown without commctl6 visual styles on Vista+. The manifest is in place as RT_MANIFEST and resource ID - 2 (as shown below). When I invoke the same functionality/dialogs from my own test app, visual styles are OK.

Any idea how Word is preventing my add-in from using visual styles despite the manifest?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>
Deduplicator
  • 44,692
  • 7
  • 66
  • 118
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129

1 Answers1

1

Are you using ISOLATION_AWARE_ENABLED?

Alex K.
  • 171,639
  • 30
  • 264
  • 288
  • You hit the nail on the head! :-) I've known about this but I would have never remembered it on my own. It works beautifully. Thanks a lot! – wpfwannabe Jun 21 '10 at 12:06