Thread: How do I make my buttons look like the currnet Theme?

  1. #1
    Registered User kinghajj's Avatar
    Join Date
    Jun 2003
    Posts
    218

    How do I make my buttons look like the currnet Theme?

    Whenever I make a button, no matter what theme I'm using, it always looks like a plain button. How do I make my buttons look like they should for each theme?

  2. #2
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    Posts
    128
    To do this, you have to include a manifest file.

    Make a .manifest file, and put

    Code:
    <?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="NameOfProgram" 
    
    type="win32" 
    
    /> 
    
    <description>Description of your project.</description> 
    
    <dependency> 
    
    <dependentAssembly> 
    
    <assemblyIdentity 
    
    type="win32" 
    
    name="Microsoft.Windows.Common-Controls" 
    
    version="6.0.0.0" 
    
    processorArchitecture="X86" 
    
    publicKeyToken="6595b64144ccf1df" 
    
    language="*" 
    
    /> 
    
    </dependentAssembly> 
    
    </dependency> 
    
    </assembly>
    Now, put your .manifest file in your project resources. It should be of type RT_MANIFEST and it's ID number should be 1. If you did it right, your project will now load the new common control library on startup and all your controls will be skinned/themed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  2. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  3. What to make?
    By Caldus in forum C++ Programming
    Replies: 4
    Last Post: 04-06-2005, 01:12 PM
  4. How would I make a c++ prgoram make a .exe file?
    By Rune Hunter in forum C++ Programming
    Replies: 9
    Last Post: 12-26-2004, 05:56 PM
  5. Problems to Make a Unix lib on a Win32 box.
    By Templario in forum Windows Programming
    Replies: 2
    Last Post: 11-21-2002, 02:22 AM