Using visual themes with controls

This is a discussion on Using visual themes with controls within the Windows Programming forums, part of the Platform Specific Boards category; Simple question... what do you have to do/flag in order for dialog controls to use XP visual themes? I'm creating ...

  1. #1
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380

    Using visual themes with controls

    Simple question... what do you have to do/flag in order for dialog controls to use XP visual themes?

    I'm creating a dialog/controls from a resource... what am I missing?

  2. #2
    Registered User Dohojar's Avatar
    Join Date
    Feb 2002
    Posts
    115
    http://msdn.microsoft.com/library/de.../xptheming.asp
    I think this will get you started. You can search microcraps site and find a whole lot more.

    I just gave you a link instead of an answer because I don't know the answer. Just though that it might have the answer your looking for.
    Dohojar Moajbuj
    Time is the greatest teacher, too bad it kills all its students

  3. #3
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    The easiest way, just include a manifest file in your programs directory with the name "your_programs_filename.exe.manifest" ..

    For example using my program Project 21 (project21.exe) the manifest file would be called project21.exe.manifest ....

    The manifest file is just an XML file. Just rename the uploaded manifest file using the convention I showed you and it'll work.

  4. #4
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Had to rename the manifest to .txt make sure to rename the file properly.
    Attached Files Attached Files

  5. #5
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Originally posted by Mithoric
    The easiest way, just include a manifest file in your programs directory with the name "your_programs_filename.exe.manifest" ..

    For example using my program Project 21 (project21.exe) the manifest file would be called project21.exe.manifest ....

    The manifest file is just an XML file. Just rename the uploaded manifest file using the convention I showed you and it'll work.
    1) Wow, thanks! That worked PERFECTLY!
    2) Is there any way to do this without an external file?
    3) How did you know about this? What's a manifest file? Where can I see official documentation on it?

    Thanks!

    edit: http://www.codeproject.com/csharp/do...asp?print=true this helped me greatly, thanks again
    Last edited by BMJ; 09-16-2003 at 01:01 AM.

  6. #6
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    1) Glad to help.
    2 & 3) Find it here: http://msdn.microsoft.com/library/de...ndowsForms.asp

    I'm fairly sure that's where I found it anyway, I just ran a search on msdn for it.

    It took me a long time to find that information, no one seemed to want to tell.

    Also you can access the default manifestation (or whatever) using your resource file and a simple function call if I remember correctly.. adding a control manifest is just simple :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21