CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2001
    Location
    Rotmanka, Poland
    Posts
    88

    How get a TabCtrl page color

    Hi,

    TabCtrl have a different color with MFC, base on i.e. application and system settings (i.e. base on character set - unicode or dblbyte).

    I need to get at a runtime a current color for this application (I drawing a controls on it with a background what shoud have same color).

    How to get it ?

    Thnx in advance
    OlekBa

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: How get a TabCtrl page color

    GetSysColor(COLOR_3DFACE)
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Sep 2001
    Location
    Rotmanka, Poland
    Posts
    88

    Re: How get a TabCtrl page color

    This is not a solution. Independet what are a applicaction setting, this function always return same color. If you compile as dblbyte this will be right, but if you complile as unicode - not (at this time page color is white). It is alsow different with manifest file and with OS.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured