Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Emerson Reed
  Where is Emerson Reed?
 Americana - SP
 Emerson Reed
Subject: GetSysColor
Thread ID: 112337 Message ID: 112337 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Win32API programming
Date: Tuesday, November 07, 2006 1:24:13 PM         

I'm using GetSysColor API to get some Windows colors to use in Outlook2003Bar control and tested all possible parameters, but I can't find some of them.
I've looked in Outlook 2003 and when I change the Windows Theme or one of the colors, Outlook 2003 colors changes following new colors. If GetSysColor doesn't have all colors, where Outlook 2003 get these colors?
For example:
How can I get the initial and ending gradient colors when a button has the focus?

Now, I'm using GetSysColor(2) to know what theme is in use and creating a bitmap with "predefined" colors for Silver and Olive themes. For any other colors, I'm creating a bitmap based on Blue theme. What I want to do is make the control follow the Windows colors like Outlook 2003 does.

Someone could help me?

Emerson Santon Reed


GetSysColor Posted by Emerson Reed @ 11/7/2006 1:24:13 PM