<?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[das RichEditCtrl mag mich nicht]]></title><description><![CDATA[<p>vermute ich so langsam #grr</p>
<pre><code class="language-cpp">void CShowLog::FormatContent()
{
	FINDTEXTEX ft;
	ft.chrg.cpMin = 0;
	ft.chrg.cpMax = -1;
	ft.lpstrText = &quot;:&quot;;
	long n = m_Output.FindText(FR_MATCHCASE|FR_WHOLEWORD, &amp;ft);
	if(n != -1)
		m_Output.SetSel(ft.chrgText);
}
</code></pre>
<p>so aus der MSDN entnommen - aber das FindText returniert immer -1 aber der string &quot;:&quot; kommt definitiv vor, sogar mehrmals - was solln der scheiss #grr</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/165733/das-richeditctrl-mag-mich-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 05:58:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/165733.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Nov 2006 14:54:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to das RichEditCtrl mag mich nicht on Wed, 22 Nov 2006 14:54:31 GMT]]></title><description><![CDATA[<p>vermute ich so langsam #grr</p>
<pre><code class="language-cpp">void CShowLog::FormatContent()
{
	FINDTEXTEX ft;
	ft.chrg.cpMin = 0;
	ft.chrg.cpMax = -1;
	ft.lpstrText = &quot;:&quot;;
	long n = m_Output.FindText(FR_MATCHCASE|FR_WHOLEWORD, &amp;ft);
	if(n != -1)
		m_Output.SetSel(ft.chrgText);
}
</code></pre>
<p>so aus der MSDN entnommen - aber das FindText returniert immer -1 aber der string &quot;:&quot; kommt definitiv vor, sogar mehrmals - was solln der scheiss #grr</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1179328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1179328</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 22 Nov 2006 14:54:31 GMT</pubDate></item><item><title><![CDATA[Reply to das RichEditCtrl mag mich nicht on Wed, 22 Nov 2006 15:25:07 GMT]]></title><description><![CDATA[<p>1. Lass mal FR_WHOLEWORD weg. : ist ein Trennzeichen und ist normalerweise nicht Bestandteil eines Wortes!<br />
2. Du hast das gelesen?<br />
FR_DOWN<br />
Microsoft Rich Edit 2.0 and later: If set, the search is from the end of the current selection to the end of the document. If not set, the search is from the end of the current selection to the beginning of the document.<br />
Rich Edit 1.0: The FR_DOWN flag is ignored. The search is always from the end of the current selection to the end of the document.</p>
<p>Wo ist die aktuele Selektion?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1179366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1179366</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 22 Nov 2006 15:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to das RichEditCtrl mag mich nicht on Thu, 23 Nov 2006 08:38:36 GMT]]></title><description><![CDATA[<p>keine ahnung wo die ist - das DOWN hab ich mitlerweile schon drinne steht, da ist dann nur das problem das sich das programm in einer dauerschleife verfaengt</p>
<p>ich glaub ich muss zuerst SetSel() an die erste position machen - werd ich probieren sobald ich zeit hab<br />
ich vermute naemlich das die selection am ende des dokumentes ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1179729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1179729</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 23 Nov 2006 08:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to das RichEditCtrl mag mich nicht on Thu, 23 Nov 2006 11:22:14 GMT]]></title><description><![CDATA[<p>habs hinbekommen - indem ich einfach die schleife abbrechen lass sobald er wieder von vorn anfaengt</p>
<pre><code class="language-cpp">void CShowLog::SingleFormat(CString csSearchFor, COLORREF TextColor, DWORD Effect)
{
	FINDTEXTEX ft;
	CHARFORMAT2 cf;
	ft.chrg.cpMin = 0;
	ft.chrg.cpMax = -1;
	cf.dwMask = CFM_BOLD|CFM_ITALIC|CFM_COLOR;
	ft.lpstrText = csSearchFor;
	cf.dwEffects = Effect;
	cf.crTextColor = TextColor;
	long n = 0;
	int i=0;
	do
	{
		n = m_Output.FindText(FR_DOWN|FR_MATCHCASE, &amp;ft);
		if(n&gt;i)
			i = n;
		else
			break;
		ft.chrg.cpMin = (n+1);
		if(n != -1)
		{
			m_Output.SetSel(ft.chrgText);
			m_Output.SetSelectionCharFormat(cf);
		}
	}while(n != -1);
}
</code></pre>
<p>brauch ich dann immer nur ganz simpel aufrufen {=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1179878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1179878</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 23 Nov 2006 11:22:14 GMT</pubDate></item></channel></rss>