progressbar manipulation
Is it possible to manipulate the progressbar to increase / decrease the space for a certain section of the de-, installer progress?
33 posts
!define PBM_SETPOS 0x0402
# !define PBM_DELTAPOS 0x0403
# Use PBM_DELTAPOS if you want to increment,
# not to set, the value.
Section
# Other things
FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $R0 $R0 1004
Call ChangeProgressIndicatorBarPosition
# Other things
SectionEnd
Function ChangeProgressIndicatorBarPosition
StrCpy $0 50 # Set indicator bar in position "50%"
IntOp $0 $0 * 300
SendMessage $R0 ${PBM_SETPOS} $0 ""
# If you want to see the show above, put a
# MessageBox command after the command above,
# so it doesn't disappear, until you click OK.
# OR if you want to increment, not to set, the new
# position, you can use ${PBM_DELTAPOS}.
# SendMessage $R0 ${PBM_DELTAPOS} $0 ""
FunctionEnd GetDlgItem $R0 $HWNDPARENT 3
SendMessage $R0 ${WM_SETTEXT} 0 "STR: pOiSoN"
MessageBox MB_OK "HWNDPARENT: $HWNDPARENT"
MessageBox MB_OK "R0: $R0" and this worked. GetDlgItem $R0 $HWNDPARENT "#3333"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: pOiSoN"
MessageBox MB_OK "HWNDPARENT: $HWNDPARENT"
MessageBox MB_OK "R0: $R0" but it doesn't work.Var window
Section "Hauptgruppe" SEC01FindWindow $window "#32770" ""
FindWindow $window "#32770" "" $HWNDPARENT
GetDlgItem $R0 $window "3333"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: textofthecheckbox" List of common Windows Messagesfile
By KiCHiK
Var InstallWindow
Section "createWindow" SEC01
;1st
FindWindow $InstallWindow "#32770" "" $HWNDPARENT
GetDlgItem $R0 $InstallWindow "3333"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: Caption1"
;2nd
GetDlgItem $R0 $InstallWindow "3334"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: Text2"
;3rd
GetDlgItem $R0 $InstallWindow "3335"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: Text3"
;4th
GetDlgItem $R0 $InstallWindow "3336"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: Text4"
;5th
GetDlgItem $R0 $InstallWindow "3337"
SendMessage $R0 ${WM_SETTEXT} 0 "STR: Text5"
SectionEnd So now i can check/uncheck any box with GetDlgItem $R0 $InstallWindow "3333"
SendMessage $R0 ${BM_SETCHECK} ${BST_CHECKED} ""
GetDlgItem $R0 $InstallWindow "3335"
SendMessage $R0 ${BM_SETCHECK} ${BST_UNCHECKED} "" LangString CUSTOM_INSTFILES_CHECKBOX_FIRST${LANG_GERMAN} "Ein Männlein steht im Walde ganz still und stumm, Es hat von lauter Purpur ein Mäntlein um. Sagt, wer mag das Männlein sein, Das da steht im Wald allein. Mit dem purpurroten Mäntelein. " ]