1. You can write a manifest for your app so that all its controls will have proper look, if a theme in the system is applied. If not all controls will have default look. The mainfest will be:
<?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="MY_PROGRAM"
type="win32"
/>
<description>MY_PROGRAM_DESCRIPTION</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
For MY_PROGRAM enter the name of your program, for MY_PROGRAM_DESCRIPTION enter a short description, e.g.: FileManager
Write this in notepad and save as my_program.exe.manifest. The file has to be in the same directory as the app's executable.
2. To import a manifest into executable's resources do this:
- save the above mainfest as my_program.manifest (without .exe in the filename),
- also in notepad write this: 1 24 "my_Program.manifest"
- save it as an *.rc file, e.g.: manifest.rc, in the same directory as the my_program.manifest file,
- in Builder go to Project->Add to Project (Shift+F11) and add manifest.rc,
- compile and run.
Now your app should have the look according to the system's current visual style.