|
-
May 7th, 2001, 03:22 AM
#1
Thread Starter
Addicted Member
Changing form's titlebar colors
Hello all.
I am trying to change the colors of a form, especially the colors of the titlebar at run-time.
I am using the GetSysColor API call with the constant COLOR_ACTIVEBORDER to retrieve the color of the titlebar.
However, when using the SetSysColors API call I have some problems.
The more fundemental of those is about the declaration of the call :
Declare Function SetSysColors& Lib "user32" (ByVal nChanges As Long, lpSysColor As Long, lpColorValues As Long)
As you can see guys the lpSysColor is passed byref, as well as the lpColorValues. OK, in my documentation, these are long pointers to matrices, each having a length of nChanges elements. I am creating 2 matrices let's say matrSC and matrCV, each of nChanges elements. When using the declaration I simply pass matrSC() or matrCV(), with no arguments (I hope this passes the pointer to the matrix).
This causes an error; clearly I am making a mistake... Any help ??
One more important thing : AM I USING THE CORRECT DECLARATION AT ALL ????!!!!? Any ideas ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|