Archive: Changing background color in MUI


Changing background color in MUI
Hi,

How can I get rid of the grey background in the MUI instfiles page (see picture)?

I tried setting MUI_BGCOLOR and MUI_INSTFILESPAGE_COLORS both to white, but nothing happened.

http://crdoconnor.googlepages.com/backgrey.png


You have to manually set the background color for each page once the page displays. Do it in each page's show callback function. To get the HWND, use FindWindow as used in Contrib\Modern UI\System.nsh.


Fixed. The code I used:

Page instfiles "" ShowInst

Function ShowInst
; Remove grey area above progress bar
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1006
SetCtlColors $1 000000 FFFFFF

; Remove grey area below progess bar
FindWindow $0 "#32770" "" $HWNDPARENT
SetCtlColors $0 000000 FFFFFF
FunctionEnd