Setting label colors
I've got a custom InstallOptions page that I'm trying to use with MUI which contains a label control that I'm trying to set the text color and font. I'm using SendMessage to change the font and it works fine. However, I can't seem to get the color to change.
Just to illustrate, I created a mock-up that just to see if I can get the color to work.
Here's my display function to in theory change the label text to red:
Function CustomPage
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioB.ini"
pop $0
GetDlgItem $1 $0 1200
SendMessage $1 ${WM_CTLCOLOR} "FF0000" 0
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd
Unfortunatly, this doesn't work. I've also tried replacing the SendMessage line with this:
SetCtlColors $1 FF0000
But no luck there, either.
The full sample script and installoptions file are attached if anyone needs to see them.
Any ideas what I may be doing wrong?:confused: