!include nsDialogs.nsh
Name nsDialogs
OutFile nsDialogs.exe
XPStyle on
Var Dialog
Var Getdlg
Var Text
Page custom nsDialogsPage
Page instfiles
Function nsDialogsPage
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateText} 0 33u 100% 13u ""
Pop $Text
GetDlgItem $Getdlg $HWNDPARENT 1
${NSD_OnChange} $Text TextChange
EnableWindow $Getdlg 0
nsDialogs::Show
FunctionEnd
Section
DetailPrint "hello world"
SectionEnd
Function TextChange
EnableWindow $Getdlg 1
FunctionEnd
© 版权声明
THE END
暂无评论内容