General information
Category:
Windows API functions
I will use the assign method of an object whose color is determined by the windows selection and refresh from there.
I am sorry to sound so much like an excited child but I have only recently got over the hump converting a large FPD app into VFP and it is so much fun! All this plus embedded SQL select and macros (neither of which you-know-what-language doesn't have). VFP is an incredible work of art. Congratulations to the Fox team.
Alex
>For your info, got answer by trial and error:
>
>DECLARE INTEGER GetSysColor IN win32api INTEGER nIndex
>lnColor1 = GetSysColor(4) && Menu background
>lnColor2 = GetSysColor(2) && Active window caption
>
>I then render the _SCREEN and my logo in those colors and it looks pretty darn sharp. Now, have to figure how to refresh _SCREEN automatically if user changes color preferences. That will look impressive in a presentation.
>
>How do you do that without a timer? Is there an appropriate event?
>
>Alex
>
>
>>Hi,
>>
>>I got the following reference from the MS support pages. The functions read and change the system colors. The semantics are for VB. How do I implement them in VFP ?
>>
>>Declare Function GetSysColor Lib "User" (ByVal nIndex%) As Long
>>
>>Declare Sub SetSysColors Lib "User" (ByVal nChanges%,
>> lpSysColor%,
>> lpColorValues&)
>>
>>Thank you much.
>>
>>Alex
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only