XP "look and feel" missing in vsl.

R

Roger Pfister

XP "look and feel" missing in vsl.

I have a vsl that has worked well for years. The customer now needs
dialog boxes added - NO PROBLEM I can get the dialog boxes to work but
the XP "look and feel" does not happen under visio 2003, despite adding
the correct embedded manifest.

You can get the buttons to look OK under visio 2002 but only by adding
a viso.exe.manifest to the visio folder.

(I have compiled under vc6 to vc8)

The same code moved to a simple winapp does show with the XP styles.


Does anyone here know the extra magic that is needed to get the XP
styles to happen in a vsl. :)


Many thanks if you can help
 
R

Roger Pfister

To Answer my own question - you need to add the magic

#define ISOLATION_AWARE_ENABLED 1

to your general header and make your included manifest file resource file
be of type 2 not type 1 as you would for non dlls.

I hope this helps someone else.
 
N

nbelyh

(I have compiled under vc6 to vc8)

If you use MFC (if not, #define ISOLATION_AWARE_ENABLED + manifest of
type 2 should do) please note the following:

XP styles do not work in a vsl that uses MFC if compiled with VC6, VC7,
VC71.
No matter what is included, and what is defined.
You will have to use a technique described by microsoft for MMC
extensions in this case.
Not 100% sure, but 99% :)

In VC8, if you can only include the manifest (of type 2)
#dfinine ISOLATION_AWARE_ENABLED is actuall optional. It just works.

Note! In VC8, you should feed the manifest to the MANIFEST TOOL, and
NOT include it to resources. If manifest is included in resources, the
debug version of your program may not link.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top