Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Application Style
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Application Style

 Post Reply Post Reply
Author
Message
msamocha View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2004
Location: Israel
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote msamocha Quote  Post ReplyReply Direct Link To This Post Topic: Application Style
    Posted: 28 September 2004 at 12:14pm


This is a standard MessageBox displayed in the XTP CustomizeDlg sample program:






This a standard MessageBox from somewhere else:






As you can see the customizedlg sample is blessed with the stylish buttons in all its windows. My question is: How can I set the buttons in my application to have these nice buttons as well (and not the ugly buttons in the 2nd image)?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2004 at 12:43pm
Add a manifest file to your project.
Back to Top
xred View Drop Down
Groupie
Groupie
Avatar

Joined: 24 August 2004
Location: China
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote xred Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2004 at 5:35am

And rename the mainfest file to "YourApplication.exe.mainfest"!

If you don't konw how to add a mainfest file,you can build an application with  VS.net,then you will find a mainfest file in debug!By the way,this file's type is xml,you can open it with notebook,and you will find some useful infomation!

Hope this help!

Back to Top
msamocha View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2004
Location: Israel
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote msamocha Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2004 at 5:17am

Yeah thanks it works great

I added a manifest file to allow xp looks on XP. Its a simple procedure - I'll write it here if any1 is interested:

1. create a new xml manifest file with the following content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
 processorArchitecture="x86"
 version="5.1.0.0"
 type="win32"
 name="Application name"
/>
<dependency>
 <dependentAssembly>
  <assemblyIdentity
   type="win32"
   name="Microsoft.Windows.Common-Controls"
   version="6.0.0.0"
   publicKeyToken="6595b64144ccf1df"
   language="*"
   processorArchitecture="x86"
  />
 </dependentAssembly>
</dependency>
</assembly>

 

2. insert a new Imported resource (the xml file from step 1) to the application -

    - the resource type should be 24

    -the reesource id is 1

Thats it

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.