update state field
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5213 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f1b8604bcb
commit
16e6702900
2 changed files with 33 additions and 1 deletions
|
@ -354,6 +354,24 @@ Function CreateDialogFromINI
|
|||
|
||||
FunctionEnd
|
||||
|
||||
Function UpdateINIState
|
||||
|
||||
${DEBUG} "Updating INI state"
|
||||
|
||||
ReadINIStr $R0 $0 Settings NumFields
|
||||
|
||||
${DEBUG} "NumField = $R0"
|
||||
|
||||
${For} $R1 1 $R0
|
||||
ReadINIStr $R2 $0 "Field $R1" HWND
|
||||
${DEBUG} " HWND = $R2"
|
||||
System::Call user32::GetWindowText(iR2,t.R2,i${NSIS_MAX_STRLEN})
|
||||
${DEBUG} " Window text = $R2"
|
||||
WriteINIStr $0 "Field $R1" STATE $R2
|
||||
${Next}
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function FileRequest
|
||||
|
||||
IntOp $R5 $R5 - 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue