initialize header image
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5263 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6f8061bc6f
commit
617d8669b7
1 changed files with 6 additions and 4 deletions
|
@ -179,12 +179,11 @@ Var mui.Button.Back
|
||||||
|
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro MUI_GUIINIT_OUTERDIALOG
|
!macro MUI_GUIINIT_OUTERDIALOG UNINSTALLER
|
||||||
|
|
||||||
;Initialize outer dialog (fonts & colors)
|
;Initialize outer dialog (fonts & colors)
|
||||||
|
|
||||||
;Header
|
;Header
|
||||||
|
|
||||||
GetDlgItem $mui.Header.Text $HWNDPARENT 1037
|
GetDlgItem $mui.Header.Text $HWNDPARENT 1037
|
||||||
CreateFont $mui.Header.Text.Font "$(^Font)" "$(^FontSize)" "700"
|
CreateFont $mui.Header.Text.Font "$(^Font)" "$(^FontSize)" "700"
|
||||||
SendMessage $mui.Header.Text ${WM_SETFONT} $mui.Header.Text.Font 0
|
SendMessage $mui.Header.Text ${WM_SETFONT} $mui.Header.Text.Font 0
|
||||||
|
@ -198,6 +197,9 @@ Var mui.Button.Back
|
||||||
SetCtlColors $mui.Header.Text "" "transparent"
|
SetCtlColors $mui.Header.Text "" "transparent"
|
||||||
SetCtlColors $mui.Header.SubText "" "transparent"
|
SetCtlColors $mui.Header.SubText "" "transparent"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
;Header image
|
||||||
|
!insertmacro MUI_HEADERIMAGE_INIT "${UNINSTALLER}"
|
||||||
|
|
||||||
;Header background
|
;Header background
|
||||||
GetDlgItem $mui.Header.Background $HWNDPARENT 1034
|
GetDlgItem $mui.Header.Background $HWNDPARENT 1034
|
||||||
|
@ -233,7 +235,7 @@ Var mui.Button.Back
|
||||||
|
|
||||||
Function .onGUIInit
|
Function .onGUIInit
|
||||||
|
|
||||||
!insertmacro MUI_GUIINIT_OUTERDIALOG
|
!insertmacro MUI_GUIINIT_OUTERDIALOG ""
|
||||||
|
|
||||||
!ifdef MUI_PAGE_FUNCTION_GUIINIT
|
!ifdef MUI_PAGE_FUNCTION_GUIINIT
|
||||||
Call "${MUI_PAGE_FUNCTION_GUIINIT}"
|
Call "${MUI_PAGE_FUNCTION_GUIINIT}"
|
||||||
|
@ -251,7 +253,7 @@ Var mui.Button.Back
|
||||||
|
|
||||||
Function un.onGUIInit
|
Function un.onGUIInit
|
||||||
|
|
||||||
!insertmacro MUI_GUIINIT_OUTERDIALOG
|
!insertmacro MUI_GUIINIT_OUTERDIALOG UN
|
||||||
|
|
||||||
!ifdef MUI_UNPAGE_FUNCTION_GUIINIT
|
!ifdef MUI_UNPAGE_FUNCTION_GUIINIT
|
||||||
Call "${MUI_UNPAGE_FUNCTION_GUIINIT}"
|
Call "${MUI_UNPAGE_FUNCTION_GUIINIT}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue