;查看nsDialogs帮助使用${NSD_CreatePassword} 创建文本密码控件!
!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
Caption "如何创建一个文本密码控件"
loadlanguagefile "${NSISDIR}ContribLanguage filessimpChinese.nlf"
OutFile "Dreams8.exe"
Page Custom pre
var dialog
var hwnd
Function pre
nsDialogs::Create 1018
Pop $dialog
${NSD_CreatePassword} 0 0 50% 8% ""
Pop $hwnd
nsDialogs::Show
FunctionEnd
Section ""
SectionEnd
;当然,实际上就是一个Edit文本控件加了一个外观属性${ES_PASSWORD}
!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
Caption "如何创建一个文本密码控件"
loadlanguagefile "${NSISDIR}ContribLanguage filessimpChinese.nlf"
OutFile "yhxs3344.exe"
Page Custom pre
var dialog
var hwnd
var pwd
Function pre
nsDialogs::Create 1018
Pop $dialog
${NSD_CreatePassword} 0 0 50% 8% "yhxs3344.Net"
Pop $hwnd
nsDialogs::CreateControl EDIT "${__NSD_Text_STYLE}|${ES_PASSWORD}" "${__NSD_Text_EXSTYLE}" 0 50% 50% 8% "yhxs3344.Net"
Pop $pwd
nsDialogs::Show
FunctionEnd
Section ""
SectionEnd
© 版权声明
THE END
暂无评论内容