B
bnk
Hello all,
I'll be very pleased for any information on subj.
I'll be very pleased for any information on subj.
bnk said:Hello, Bill.
Thank you for reply, but I've already tried this.
Exactly, I've added manifest file to the VSL resources, but this does
not work.
resource type=24 (RT_MANIFEST)
resource id=2
I've tried ID=3 too.
ISOLATION_AWARE_ENABLED = 1
The manifest file itself is at the end of this post.
To reproduce this use Visio 2003 Addon wizard to create VSL that uses
nothing.
Then, add the manifest to the resources. This VSL will pop the message
box when ivoked. This message box is not themed..
Hoping for help on this issue,
Nikolay, EiTAM Inc.
Manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="4.0.4.1"
processorArchitecture="X86"
name="My.Company.Application"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
"Bill K. [MSFT]" <[email protected]> wrote in messageVisio uses an opt-in model for XP themeing, so you will need to add a
manifest resource to your project and specify common controls version 6.
This article has details on how to add a manifest:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp
Hope this helps,
bnk said:Hello, Bill.
Thank you for assistance.
Can you see, the VSL does not use MFC at all (i.e. neither MFC nor ATL)...
So this can not be an issue...
Visio 2003 Pro, Win XP Pro..
Does theming work at all for VSL? (may be the problem is in file extension?)
Regards, Nikolay.
"Bill K. [MSFT]" <[email protected]> wrote in messageIt looks like you are adding the manifest correctly, but using an unthemed
mfc dll (mfc71.dll?). If the mfc dll is not compiled with
ISOLATION_AWARE_ENABLED (plus the manifest for common controls 6) then any
dialogs it displays such as MessageBox will not be themed.
To confirm this you can change MessageBox(args) to ::MessageBoxEx(args) to
bypass the mfc MessageBox implementation.
You could also remove the MessageBox and display a dialog box that is owned
by the vsl and it should theme correctly.
Hope this helps,
any dialogs it displays such as MessageBox will not be themed.
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.