colm
14th November 2006 16:24 UTC
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
kichik
14th November 2006 23:48 UTC
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.
colm
16th November 2006 11:35 UTC
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