Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing titlebar color

Status
Not open for further replies.

leyann

IS-IT--Management
Sep 16, 2002
29
FR
Hi,
all is in the subject : anybody knows hao I could change the titlebar color ?
 
Have you checked into the SetSysColor API call, using SYSCOL_ACTIVECAPTION = 2 as the 2nd parameter.

In your declarations section
Code:
Declare Function SetSysColors Lib "user32" (ByVal nChanges As Long, lpSysColor As Long, lpColorValues As Long) As Long

Const SYSCOL_ACTIVECAPTION = 2

Then call the function in your code
Code:
RetVal = SetSysColors(1, SYSCOL_ACTIVECAPTION, RGB(127, 127, 127))
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Hi,

Thanks a lot for your usefull answer : it works fine... but it changes the color of all windows. Do you know if it's possible to change only the active window ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top