onomatopej
03-04-2006, 10:48 AM
Hi,
I just fixed internally PrimoPDF (which IMO is great application and PDFCreator killer) to use XP themes:
Normally Primo looks on my machine like that:
http://pingu.ii.uj.edu.pl/~ono/capture/primopdf_no_xp.png
But after I fixed it is:
http://pingu.ii.uj.edu.pl/~ono/capture/primopdf_xp_fixed.png
To achieve that in your source code resources (*.rc) files:
1) Use only DIALOGEX instead DIALOG
2) Add DS_FIXEDSYS style to dialog STYLE
3) Use: FONT 8, "MS S**** Dlg" instead of anything other like "MS Sans Serif"
4) Add link to XP manifest file in rc:
1 RT_MANIFEST "PrimoPDF.exe.manifest"
while the "PrimoPDF.exe.manifest" is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="PrimoPDF.exe.PrimoPDF.exe.PrimoPDF.exe"
type="win32"
/>
<description>PrimoPDF.exe</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
This will make dialogs use modern fonts on modern system (my screenshot), while still use old fonts on old ones :>
Cheers from friend programmer.
Bye.
I just fixed internally PrimoPDF (which IMO is great application and PDFCreator killer) to use XP themes:
Normally Primo looks on my machine like that:
http://pingu.ii.uj.edu.pl/~ono/capture/primopdf_no_xp.png
But after I fixed it is:
http://pingu.ii.uj.edu.pl/~ono/capture/primopdf_xp_fixed.png
To achieve that in your source code resources (*.rc) files:
1) Use only DIALOGEX instead DIALOG
2) Add DS_FIXEDSYS style to dialog STYLE
3) Use: FONT 8, "MS S**** Dlg" instead of anything other like "MS Sans Serif"
4) Add link to XP manifest file in rc:
1 RT_MANIFEST "PrimoPDF.exe.manifest"
while the "PrimoPDF.exe.manifest" is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="PrimoPDF.exe.PrimoPDF.exe.PrimoPDF.exe"
type="win32"
/>
<description>PrimoPDF.exe</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
This will make dialogs use modern fonts on modern system (my screenshot), while still use old fonts on old ones :>
Cheers from friend programmer.
Bye.