;虽然多行编辑(文本)是一种窗体风格,但一旦创建后此类风格的文本框就不能使用${NSD_AddStyle} 为文本控件增加风格!
!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
Caption "如何创建一个多行编辑(文本)控件"
loadlanguagefile "${NSISDIR}ContribLanguage filessimpChinese.nlf"
BrandingText "www.yhxs3344.net"
OutFile "yhxs3344.exe"
Page Custom pre
var dialog
var hwnd
Function pre
nsDialogs::Create 1018
Pop $dialog
${NSD_CreateText} 0 0 100% 40% "永恒心锁$r$nHttp://www.yhxs3344.net$r$n仅单行编辑文本控件"
Pop $hwnd
nsDialogs::CreateControl EDIT
"${__NSD_Text_STYLE}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN}"
"${__NSD_Text_EXSTYLE}"
0 50% 100% 40%
"永恒心锁$r$nHttp://www.yhxs3344.net$r$n多行编辑文本控件"
Pop $hwnd
nsDialogs::Show
FunctionEnd
Section -yhxs3344.Net
SectionEnd
© 版权声明
THE END
暂无评论内容