Hi!
Having never been one to leave things alone, I'm in the process of forcing the colours of every single control in my installer. On the components page, for instance, I do this:
code:
; Change the text and background colours of all controls on the page
FindWindow $0 "#32770" "" $HWNDPARENT
SetCtlColors $0 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1006 ; Static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1021 ; "Select the installation type" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1017 ; Installation type combobox control
SetCtlColors $1 ${BLACK} ${WHITE}
GetDlgItem $1 $0 1022 ; "Select the components" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1032 ; Components treeview control
SendMessage $1 ${TVM_SETBKCOLOR} 0 ${WHITE}
SendMessage $1 ${TVM_SETTEXTCOLOR} 0 ${BLACK}
GetDlgItem $1 $0 1023 ; "Space required" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1042 ; Description groupbox control
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1043 ; Description static text
SetCtlColors $1 ${BLACK} ${GRAY}
Which works fine, but there are 2 things I don't know how to do. How would I change the colour of 1) the dropdown part of the combobox control (dialog id # 1017) and 2) the "Description" title of the groupbox control (dialog id # 1042)?
Any help would be greatly appreciated!
Thanks in advance,
Brad.