<?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[bei edit control caret unsichtbar machen]]></title><description><![CDATA[<p>hallo,<br />
ich bins wieder mal xD<br />
ich will bei einem Edit control den caret wegmachen. Ich hab das Edit control schon auf nichts eingeben gestellt. jedoch blinkt der Caret noch auf.<br />
Warum dann ein Edit control? Weil man den Text rauskopieren kann.<br />
Wie kann ich den Caret unsichtbar machen?<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223936/bei-edit-control-caret-unsichtbar-machen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 23:04:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223936.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Oct 2008 18:11:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bei edit control caret unsichtbar machen on Thu, 02 Oct 2008 18:11:42 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich bins wieder mal xD<br />
ich will bei einem Edit control den caret wegmachen. Ich hab das Edit control schon auf nichts eingeben gestellt. jedoch blinkt der Caret noch auf.<br />
Warum dann ein Edit control? Weil man den Text rauskopieren kann.<br />
Wie kann ich den Caret unsichtbar machen?<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592394</guid><dc:creator><![CDATA[dialog5000]]></dc:creator><pubDate>Thu, 02 Oct 2008 18:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to bei edit control caret unsichtbar machen on Fri, 03 Oct 2008 00:38:10 GMT]]></title><description><![CDATA[<p>Ohne api-hooking gehts nur mit subclassing:</p>
<pre><code class="language-cpp">LRESULT CALLBACK AntiCaretWndProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
	LRESULT result = CallWindowProc(GetProp(hwnd, TEXT(&quot;LPFN&quot;)), hwnd, uMsg, wParam, lParam);
	HideCaret(hwnd);
	return result;
}

void HideCaretAlways(HWND hwndEdit)
{
	SetProp(hwndEdit, TEXT(&quot;LPFN&quot;), SetWindowLong(hwndEdit, GWL_WNDPROC, (LONG)AntiCaretWndProc));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1592608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592608</guid><dc:creator><![CDATA[sapero]]></dc:creator><pubDate>Fri, 03 Oct 2008 00:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to bei edit control caret unsichtbar machen on Fri, 03 Oct 2008 07:23:00 GMT]]></title><description><![CDATA[<p>Aber das Caret dient doch dazu, dass man auch mit den Cursortasten vernünftig markieren kann, zudem zeigt es an wo der Focus liegt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592742</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 03 Oct 2008 07:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to bei edit control caret unsichtbar machen on Fri, 03 Oct 2008 07:55:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/20713">@sapero</a>:<br />
1. IMHO sollte das HideCaret nur nach Ausführung von WM_SETFOCUS notwendig sein.<br />
2. Müssen Properties auch wieder entfernt werden. Es sind nach der Doku keine Eigenschaften, die mit dem zerstören des Fensters auch verschwinden.</p>
<blockquote>
<p>Before a window is destroyed (that is, before it returns from processing the WM_NCDESTROY message), an application must remove all entries it has added to the property list. The application must use the RemoveProp function to remove the entries.</p>
</blockquote>
<p>IMHO ist die Verwendung von GetWindowLong mit GWL_USERDATA hier schneller und einfacher.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592757</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 03 Oct 2008 07:55:46 GMT</pubDate></item></channel></rss>