Force ANSI RichEdit in nsD example because UTF-16 encoded RTF is not valid

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7088 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2019-03-06 19:00:49 +00:00
parent 8b652965b1
commit d5ba6306e7
2 changed files with 8 additions and 6 deletions

View file

@ -1,14 +1,15 @@
!include nsDialogs.nsh
!include LogicLib.nsh
!include WinCore.nsh ; MAKELONG
Name "nsDialogs Example"
OutFile "nsDialogs Example.exe"
Caption "$(^Name)"
Unicode True
XPStyle on
RequestExecutionLevel user
!include nsDialogs.nsh
!include LogicLib.nsh
!include WinCore.nsh ; MAKELONG
LicenseText "All the action takes place on the next page..." "Start"
SubCaption 0 ": Ready?"
@ -175,7 +176,7 @@ FunctionEnd
Function NotifyPage
!insertmacro BeginControlsTestPage "WM_NOTIFY"
${NSD_CreateRichEdit} 1 1 -2 -2 ""
nsDialogs::CreateControl "${__NSD_RichEdit_CLASS_20A}" "${__NSD_RichEdit_STYLE}" "${__NSD_RichEdit_EXSTYLE}" 1 1 -2 -2 "" ; Forcing ANSI control, see forums.winamp.com/showthread.php?p=3169999
Pop $9
${NSD_OnNotify} $9 OnNotify
IntOp $8 ${ENM_LINK} | ${ENM_KEYEVENTS}

View file

@ -239,7 +239,8 @@ TVM Tree-view control
!define /math EM_GETOPTIONS ${WM_USER} + 78
!define /math EM_SETUNDOLIMIT ${WM_USER} + 82 ; v2+
!define /math EM_AUTOURLDETECT ${WM_USER} + 91
!define /math EM_SETEDITSTYLE ${WM_USER} + 204 ; v3+
!define /Math EM_SETTEXTEX ${WM_USER} + 97 ; v3+
!define /math EM_SETEDITSTYLE ${WM_USER} + 204
!define /math EM_SETFONTSIZE ${WM_USER} + 223
!define EN_MSGFILTER 0x0700