<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=LoadRTF</id>
	<title>LoadRTF - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=LoadRTF"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LoadRTF&amp;action=history"/>
	<updated>2026-05-12T19:04:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=LoadRTF&amp;diff=18921&amp;oldid=prev</id>
		<title>ZeBoxx at 18:42, 17 September 2010</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LoadRTF&amp;diff=18921&amp;oldid=prev"/>
		<updated>2010-09-17T18:42:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:42, 17 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Presuming you have two RTF files in the same folder as the script, test.rtf and test2.rtf ...&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!addincludedir &amp;quot;.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!addincludedir &amp;quot;.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ZeBoxx</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=LoadRTF&amp;diff=18920&amp;oldid=prev</id>
		<title>ZeBoxx: Created page with &quot;== Description == This header file allows you to easily load an RTF (Rich Text File) into a RichEdit20A/RichEdit20W control for use on, for example, custom pages.  The header cor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LoadRTF&amp;diff=18920&amp;oldid=prev"/>
		<updated>2010-09-17T18:40:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Description == This header file allows you to easily load an RTF (Rich Text File) into a RichEdit20A/RichEdit20W control for use on, for example, custom pages.  The header cor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
This header file allows you to easily load an RTF (Rich Text File) into a RichEdit20A/RichEdit20W control for use on, for example, custom pages.  The header correctly handles use in multiple pages.&lt;br /&gt;
&lt;br /&gt;
== Attribution ==&lt;br /&gt;
This header file is the result of the forum discussion &amp;quot;RichEdit with nsDialogs?&amp;quot; ( http://forums.winamp.com/showthread.php?t=288129 ), and credit goes largely to Anders for the System calls required.  The header file simply packages it up into easy-to-use functions and corrects the multiple-pages issue.&lt;br /&gt;
&lt;br /&gt;
== Header ==&lt;br /&gt;
* Main download link: &amp;lt;attach&amp;gt;LoadRTF.zip&amp;lt;/attach&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot; size=&amp;quot;1&amp;quot;&amp;gt;MD5: b5d6f1a67cd08fca0ed214985cc06139 | Filesize: 1,279B &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
!addincludedir &amp;quot;.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!include &amp;quot;nsDialogs.nsh&amp;quot;&lt;br /&gt;
!include &amp;quot;LoadRTF.nsh&amp;quot;&lt;br /&gt;
OutFile &amp;quot;$%temp%\temp.exe&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Section&lt;br /&gt;
SectionEnd&lt;br /&gt;
&lt;br /&gt;
Page Custom customPage&lt;br /&gt;
Page Custom customPage2&lt;br /&gt;
&lt;br /&gt;
Var dialog&lt;br /&gt;
Var hwnd&lt;br /&gt;
Var null&lt;br /&gt;
&lt;br /&gt;
Function customPage&lt;br /&gt;
  nsDialogs::Create 1018&lt;br /&gt;
  Pop $dialog&lt;br /&gt;
  ${If} $dialog == error&lt;br /&gt;
    Abort&lt;br /&gt;
  ${EndIf}&lt;br /&gt;
&lt;br /&gt;
  nsDialogs::CreateControl &amp;quot;RichEdit20A&amp;quot; \&lt;br /&gt;
    ${ES_READONLY}|${WS_VISIBLE}|${WS_CHILD}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} \&lt;br /&gt;
	${WS_EX_STATICEDGE} \&lt;br /&gt;
	0 0 100% 100% &amp;#039;&amp;#039;&lt;br /&gt;
  Pop $hwnd&lt;br /&gt;
&lt;br /&gt;
  /* Load an RTF file into the control */&lt;br /&gt;
  ${LoadRTF} &amp;quot;test.rtf&amp;quot; $hwnd&lt;br /&gt;
&lt;br /&gt;
  nsDialogs::Show&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&lt;br /&gt;
Function customPage2&lt;br /&gt;
  nsDialogs::Create 1018&lt;br /&gt;
  Pop $dialog&lt;br /&gt;
  ${If} $dialog == error&lt;br /&gt;
    Abort&lt;br /&gt;
  ${EndIf}&lt;br /&gt;
&lt;br /&gt;
  nsDialogs::CreateControl &amp;quot;RichEdit20A&amp;quot; \&lt;br /&gt;
    ${ES_READONLY}|${WS_VISIBLE}|${WS_CHILD}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} \&lt;br /&gt;
	${WS_EX_STATICEDGE} \&lt;br /&gt;
	0 0 100% 100% &amp;#039;&amp;#039;&lt;br /&gt;
  Pop $hwnd&lt;br /&gt;
&lt;br /&gt;
  /* Load an RTF file into the control */&lt;br /&gt;
  ${LoadRTF} &amp;quot;test2.rtf&amp;quot; $hwnd&lt;br /&gt;
&lt;br /&gt;
  nsDialogs::Show&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Headers]] [[Category:Code Examples]]&lt;/div&gt;</summary>
		<author><name>ZeBoxx</name></author>
	</entry>
</feed>