Thread: Windows XP visual styles

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User larry's Avatar
    Join Date
    Sep 2001
    Posts
    96

    Windows XP visual styles

    I think this question has been already asked multiple times, but for some reason I couldn't find any related posts so I have to ask. Please just give me a link to a post if the question was asked before.

    My problem with Visual styles (VC++ v.6) is that I can't let them work. (Important notes: 1] I only need to style the Windows controls like buttons and checkboxes, NOT the Common controls, so I'm not going to use ComCtl32.dll v.6 library neither. 2] I need to have the resulting app 100% compatible with older win versions.) I installed the appropriate SDK and began crawling through MSDN. I found articles where they recommend using OpenThemeData() to obtain an HTHEME handle and then owner draw a control using DrawThemeBackground() and similar functions, which is very complicated (I should do this for every control!) and incompatible, because in case Visual styles are not going to be used (e.g. w98), I should owner draw the control by myself too (I can't let system do it in such case, because the control is already owner drawn).

    So my question is: Is there any easier approach to have Visual styles working with basic Windows controls (not Common controls) than the one described in MSDN?
    Last edited by larry; 08-06-2003 at 05:33 PM.
    Please excuse my poor english...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  2. Visual C++ .NET 2003 and XP Style
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 10-07-2003, 11:08 AM
  3. Windows XP visual themes and style changing
    By bennyandthejets in forum Windows Programming
    Replies: 15
    Last Post: 10-03-2003, 10:49 AM
  4. Windows XP visual styles in C#?
    By Shag in forum C# Programming
    Replies: 3
    Last Post: 03-26-2003, 06:25 AM
  5. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 12:06 AM