<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[rich edit]]></title><description><![CDATA[<p>heiho</p>
<p>nur ganz kurz ne schnelle frage bevor ich abhau {antworten werd ich dann morgen erst lesen}</p>
<p>kann ich in einer rich edit control die font einer selection aendern ?</p>
<p>mit WM_SETFONT gehts ja nur auf das ganze control, ich moechtes nur auf selectionen ausfuehren lassen</p>
<p>danke und tschoe #gg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172149/rich-edit</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 14:44:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172149.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Feb 2007 20:02:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to rich edit on Thu, 01 Feb 2007 20:02:32 GMT]]></title><description><![CDATA[<p>heiho</p>
<p>nur ganz kurz ne schnelle frage bevor ich abhau {antworten werd ich dann morgen erst lesen}</p>
<p>kann ich in einer rich edit control die font einer selection aendern ?</p>
<p>mit WM_SETFONT gehts ja nur auf das ganze control, ich moechtes nur auf selectionen ausfuehren lassen</p>
<p>danke und tschoe #gg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221386</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 01 Feb 2007 20:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to rich edit on Fri, 02 Feb 2007 05:41:04 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/ms651760.aspx#text_formatting" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms651760.aspx#text_formatting</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221496</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221496</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 02 Feb 2007 05:41:04 GMT</pubDate></item><item><title><![CDATA[Reply to rich edit on Fri, 02 Feb 2007 07:14:48 GMT]]></title><description><![CDATA[<p>PARAMFORMAT2 und CHARFORMAT2 kenn ich, aber diese beinhalten gar keine font, nur effekte /=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1221510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221510</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 02 Feb 2007 07:14:48 GMT</pubDate></item><item><title><![CDATA[Reply to rich edit on Fri, 02 Feb 2007 09:47:38 GMT]]></title><description><![CDATA[<p>ich werd hier noch bescheuert</p>
<p>wie funktioniert das bloede &quot;szFaceName&quot;</p>
<pre><code class="language-cpp">CHARFORMAT2 fm;
fm.cbSize = sizeof(CHARFORMAT);
fm.dwMask = CFM_FACE;

fm.szFaceName = _T(&quot;Courier&quot;); // error C2440: '=' : cannot convert from 'const wchar_t [8]' to 'WCHAR [32]'

fm.szFaceName = &quot;Courier&quot;;     // error C2440: '=' : cannot convert from 'const char [8]' to 'WCHAR [32]'

TCHAR *str = new TCHAR[8];
str = _T(&quot;Courier&quot;);
fm.szFaceName = str;           // error C2440: '=' : cannot convert from 'TCHAR *' to 'WCHAR [32]'

TCHAR str[] = _T(&quot;Courier&quot;);
fm.szFaceName = str;           // error C2440: '=' : cannot convert from 'TCHAR [8]' to 'WCHAR [32]'
</code></pre>
<p>in der MSDN steht &quot;A null-terminated character array specifying the font name.&quot;<br />
das hab ich doch - mensch, was will das scheiss WCHAR[32], args<br />
{es muss unicode sowie multibyte compilieren koennen}</p>
<p>------------<br />
//dazuedit</p>
<p>so nach einer runde rummeckern und gruebeln ging es so:</p>
<pre><code class="language-cpp">DString str(_T(&quot;Courier&quot;));
CHARFORMAT2 fm;
fm.cbSize = sizeof(CHARFORMAT2);
fm.dwMask = CFM_FACE;
_tcsncpy_s(fm.szFaceName, strFontName.data(), LF_FACESIZE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1221578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1221578</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 02 Feb 2007 09:47:38 GMT</pubDate></item></channel></rss>