ownerdrawn Ctabctrl with themes
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ownerdrawn Ctabctrl with themes

  1. #1
    Join Date
    Jul 2001
    Location
    Germany, near Frankfurt
    Posts
    135

    ownerdrawn Ctabctrl with themes

    I use an ownerdrawn Ctabctrl . In the original version, in
    CMyTabCtrl:rawItem ,
    there was a
    pDC->FillSolidRect(rect, ::GetSysColor(COLOR_BTNFACE));
    Later when using themes on Windows XP, I only deleted this line, and everything was fine.
    XP has drawn the themed background, and I have drawn the text and the bitmap.
    But on vista this seem not to work. Is that a difference between XP and vista, and I have to draw the themed background on vista myself ?

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: ownerdrawn Ctabctrl with themes

    Vista theme (Aero) support does seem to support things a bit differently than XP. I have also had code that worked fine on XP, but, does not work on Vista. I haven't had the time to research it further, so, I've added code that checks for the OS version and reacts differently if Vista is the OS.
    Gort...Klaatu, Barada Nikto!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center