diff --git a/Contrib/nsDialogs/example.nsi b/Contrib/nsDialogs/example.nsi index 55bca4f8..18d6ff07 100644 --- a/Contrib/nsDialogs/example.nsi +++ b/Contrib/nsDialogs/example.nsi @@ -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} diff --git a/Include/WinMessages.nsh b/Include/WinMessages.nsh index eab4b5d7..92c3559e 100644 --- a/Include/WinMessages.nsh +++ b/Include/WinMessages.nsh @@ -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