<?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[Den Textcursor in ein bestimmtes RichEditControl setzen.]]></title><description><![CDATA[<p>Hi,<br />
hab schon viel probiert, aber irgendwie alles kagge. Das einzige was bisjetzt funzt ist</p>
<pre><code class="language-cpp">SendMessage (hEdit,WM_RBUTTONDOWN,0,0);
		SendMessage (hEdit,WM_RBUTTONUP,0,0);
</code></pre>
<p>Ist ok so?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235896/den-textcursor-in-ein-bestimmtes-richeditcontrol-setzen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 20:02:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235896.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Mar 2009 07:53:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Sun, 08 Mar 2009 07:53:32 GMT]]></title><description><![CDATA[<p>Hi,<br />
hab schon viel probiert, aber irgendwie alles kagge. Das einzige was bisjetzt funzt ist</p>
<pre><code class="language-cpp">SendMessage (hEdit,WM_RBUTTONDOWN,0,0);
		SendMessage (hEdit,WM_RBUTTONUP,0,0);
</code></pre>
<p>Ist ok so?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675999</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Sun, 08 Mar 2009 07:53:32 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Sun, 08 Mar 2009 11:39:49 GMT]]></title><description><![CDATA[<p>Funktion SetFocus!<br />
Message WM_NETXDLGCTL wenn es sich um einen Dialog handelt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676044</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 08 Mar 2009 11:39:49 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Mon, 09 Mar 2009 23:23:11 GMT]]></title><description><![CDATA[<p>hab ich mir auch schon so gedacht, aber funzt nicht. ich rufe das von nem anderen tread aus und das control ist gesubclasst. weiss nicht ob das damit zu tun hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677035</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Mon, 09 Mar 2009 23:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Tue, 10 Mar 2009 07:54:09 GMT]]></title><description><![CDATA[<p>focus n00b schrieb:</p>
<blockquote>
<p>hab ich mir auch schon so gedacht, aber funzt nicht. ich rufe das von nem anderen tread aus und das control ist gesubclasst. weiss nicht ob das damit zu tun hat.</p>
</blockquote>
<p>Aber sicher hat das damit zu tun. Die Informationen wie aktives Fenster, Focus usw. sind threadbezogene Daten. Du kannst nicht für einen anderen Thread den Focu setzen. Dies geht nur wenn Du die Input-Queues zusammenführst über AttachThreadInput.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms681956(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms681956(VS.85).aspx</a></p>
<p>Lesen bildet! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<blockquote>
<p>By using the AttachThreadInput function, a thread can attach its input processing to another thread. This also allows threads to share their input states, so they can call the SetFocus function to set the keyboard focus to a window of a different thread. This also allows threads to get key-state information. These capabilities are not generally possible.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1677093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677093</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 10 Mar 2009 07:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Tue, 10 Mar 2009 08:12:20 GMT]]></title><description><![CDATA[<p>da steht aber auch:</p>
<blockquote>
<p>...The AttachThreadInput function fails if either of the specified threads does not have a message queue.</p>
</blockquote>
<p>kann ich wohl vergessen, der hat keine eigene kju.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677101</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Tue, 10 Mar 2009 08:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Tue, 10 Mar 2009 09:21:03 GMT]]></title><description><![CDATA[<p>focus n00b schrieb:</p>
<blockquote>
<p>da steht aber auch:</p>
<blockquote>
<p>...The AttachThreadInput function fails if either of the specified threads does not have a message queue.</p>
</blockquote>
<p>kann ich wohl vergessen, der hat keine eigene kju.</p>
</blockquote>
<p>Hmmm... Dennoch ist das der einzige Weg. Versuch es doch mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677132</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 10 Mar 2009 09:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Tue, 10 Mar 2009 10:57:33 GMT]]></title><description><![CDATA[<p>Dann ruf doch einmal PeekMessage auf dann müsste eine Message-Queue erstellt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677209</guid><dc:creator><![CDATA[....]]></dc:creator><pubDate>Tue, 10 Mar 2009 10:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Wed, 11 Mar 2009 09:01:03 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Aber sicher hat das damit zu tun. Die Informationen wie aktives Fenster, Focus usw. sind threadbezogene Daten. Du kannst nicht für einen anderen Thread den Focu setzen. Dies geht nur wenn Du die Input-Queues zusammenführst über AttachThreadInput.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms681956(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms681956(VS.85).aspx</a></p>
<p>Lesen bildet! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<blockquote>
<p>By using the AttachThreadInput function, a thread can attach its input processing to another thread. This also allows threads to share their input states, so they can call the SetFocus function to set the keyboard focus to a window of a different thread. This also allows threads to get key-state information. These capabilities are not generally possible.</p>
</blockquote>
</blockquote>
<p>jetzt kapier ich auch, warum ein EM_LIMITTEXT nicht funzt, aber ein EM_STREAMOUT dagegen klappt. hmmm... da muss ich nochmal gucken, wie ich das mach, wa.<br />
komisch, das es da keine fehlermeldungen für gibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677849</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Wed, 11 Mar 2009 09:01:03 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Wed, 11 Mar 2009 09:20:57 GMT]]></title><description><![CDATA[<p>ok, habs jetzt auf die weichei-tour gemacht: ich sende an die zum control gehörige wndproc user-defined messages. funzt auch.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1677861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1677861</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Wed, 11 Mar 2009 09:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Sun, 15 Mar 2009 12:08:54 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich wollte das mit dem AttachThreadInput mal testen, aber ich bekomme false zurück:</p>
<pre><code class="language-cpp">PeekMessage (&amp;msg,hWnd,WM_KEYFIRST,WM_KEYLAST,0);
	ret = AttachThreadInput (GetCurrentThreadId(),GetWindowThreadProcessId(hWnd,NULL),1);
	if ( ret==false )
		MessageBox(NULL, _T(&quot;AttachThreadInput failed.&quot;), _T(&quot;&quot;), MB_OK );
</code></pre>
<p>Nochmal kurz worum es geht:<br />
AttachThreadInput wird in einem Thread aufgerufen, der in WinMain erzeugt wurde.<br />
Von dem Thread aus möchte ich den auf Focus in ein RichEditControl setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1680336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1680336</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Sun, 15 Mar 2009 12:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Sun, 15 Mar 2009 12:22:57 GMT]]></title><description><![CDATA[<p>nagut,jetzt wird true zurückgegeben, das hWnd war nicht gesetzt. bloss jetzt reagiert das haupfenster nicht mehr. lässt sich nicht bewegen und nicht schließen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1680347</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1680347</guid><dc:creator><![CDATA[focus n00b]]></dc:creator><pubDate>Sun, 15 Mar 2009 12:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to Den Textcursor in ein bestimmtes RichEditControl setzen. on Sun, 15 Mar 2009 12:51:51 GMT]]></title><description><![CDATA[<p>mach dir das leben nicht so schwer, nimm SendMessage.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1680383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1680383</guid><dc:creator><![CDATA[take it easy]]></dc:creator><pubDate>Sun, 15 Mar 2009 12:51:51 GMT</pubDate></item></channel></rss>