Archive: Big problems with the Background color


Big problems with the Background color
I am so sorry but I have steel big problems with the background color, I attach 2 files to show you the problem, the SetCtlColors works but my background stay grey and I would like it be white, do you have more ideas than all that I tried ???

My licence page is a MUI_PAGE and the login page is a custom page


here the second one, thank you for your help.


I found the problem before I decide to add the license page, I had :

GetDlgItem $R7 $HWNDPARENT 1 ; Control the color of the external padding of the window
SetCtlColors $HWNDPARENT ${DlgBackgroundColor} ${DlgBackgroundColor}

# Control the Background Color
GetDlgItem $R8 $HWNDPARENT 0 ; Control the color of the contain of the window
SetCtlColors $R8 ${DlgBackgroundColor} ${DlgBackgroundColor}

# 1028 is the id of the branding text control
FindWindow $R9 "#32770" "" $HWNDPARENT ; Control the color of the branding text of the window
GetDlgItem $R9 $HWNDPARENT 1028
SetCtlColors $R9 ${DlgBackgroundColor} ${DlgBackgroundColor}

But with the new page MUI_PAGE_LICENSE I totaly lost the GetDlgItem $R8 $HWNDPARENT 0 and it's because of this line I lost that I can't paint the inside of the window in white. I managed to color the external border and the bottom part of the window but I totaly lost the inside, does anyone have an idea about it ?


Is there a way to by pass the license window to keep the my $HWNDPARENT 0 ??

How can I know what is the name (= number) of this part of the window ???

Please, help me I am totaly depress.

Thank you


When I add the license page before my custom page, NSIS consider the :

GetDlgItem $R7 $HWNDPARENT 1

GetDlgItem $R8 $HWNDPARENT 0

Like the same thing, it change the same thing (the inside border around the window) but when I don't add it, NSIS consider the two parameters like two different things (the inside border arround the window AND the inside of the window)

I don't have any solution to fix that.


have a play arround with these.... you will have to see which control is relivant.

Function myOnGUIInit ; function to hide controls in the installer window and set colours
SetCtlColors $HWNDPARENT ffffff 000000
GetDlgItem $0 $HWNDPARENT 1
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 2
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 3
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 1004
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 1035
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1036
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1045
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1028
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1256
ShowWindow $0 ${SW_HIDE}

FunctionEnd


OK thanks I try it immediatly !!!