Thread: Using visual themes with controls

  1. #1
    Banal internet user
    Join Date
    Aug 2002
    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
    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
    Had to rename the manifest to .txt make sure to rename the file properly.

  5. #5
    Banal internet user
    Join Date
    Aug 2002
    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
    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, 05: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, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM