>We use MS MSComCtl2.DTPicker to let users select a date from a drop down calendar.
>
>With XP themes, this control is not "themed" and always shows the W2K look. We were used to have VFP controls look "old" and ActiveX ones look great, but now VFP is ahead of time! Does anyone have an idea how to make MSComCtl2 controls inherit XP themes?
Hi Christian,
Add .manifest file for your EXE apps and/or VFPx.EXE and you will see common controls "themed".
For sample, manifest file for VFP7.EXE (save it as "vfp7.exe.manifest" in VFP home directory) may look like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="7.0.0.0"
processorArchitecture="X86"
name="Microsoft.VisualFoxPro"
type="win32"
/>
<description>Microsoft Visual FoxPro.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
HTH
Alex