<?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[AutoComplete]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Ist es möglich bei einem Edit-ChildFenster soetwas wie die Autovervollständigung bei c++/CLI(.Net) einzubauen, Also das Wenn ich zum Beispiel ein &quot;T&quot; eingebe, dass sich dann eine Liste über dem Editfeld öffnet wo alle vorher angegebenen Wörter mit dem Anfangsbuchsteben &quot;T&quot; stehen und wenn dann noch ein &quot;i&quot; dazukommt, dass dann alle mit den Anfangsbuchstaben &quot;Ti&quot; angezwigt werden usw.</p>
<p>Mit freundlichen Grüßen Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/237048/autocomplete</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 05:39:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/237048.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Mar 2009 18:28:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AutoComplete on Mon, 23 Mar 2009 18:28:17 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Ist es möglich bei einem Edit-ChildFenster soetwas wie die Autovervollständigung bei c++/CLI(.Net) einzubauen, Also das Wenn ich zum Beispiel ein &quot;T&quot; eingebe, dass sich dann eine Liste über dem Editfeld öffnet wo alle vorher angegebenen Wörter mit dem Anfangsbuchsteben &quot;T&quot; stehen und wenn dann noch ein &quot;i&quot; dazukommt, dass dann alle mit den Anfangsbuchstaben &quot;Ti&quot; angezwigt werden usw.</p>
<p>Mit freundlichen Grüßen Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685015</guid><dc:creator><![CDATA[TIM_]]></dc:creator><pubDate>Mon, 23 Mar 2009 18:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Mon, 23 Mar 2009 20:13:28 GMT]]></title><description><![CDATA[<p>Ja klar ist das möglich.<br />
Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685046</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Mon, 23 Mar 2009 20:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Mon, 23 Mar 2009 20:30:03 GMT]]></title><description><![CDATA[<p>Um das fortzuführen:<br />
Du fängst eine Eingabe ab, bspw. 'T'. Dann gehst du deine Liste durch und zeigst alle Einträge mit 'T' an. Beim nächsten mal, bspw. 'i' grenzt du die Liste weiter ein.</p>
<p>GG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685058</guid><dc:creator><![CDATA[Bond - Explosive]]></dc:creator><pubDate>Mon, 23 Mar 2009 20:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Tue, 24 Mar 2009 12:48:01 GMT]]></title><description><![CDATA[<p>Das ist relativ trivial wenn man IAutoComplete2 bzw IAutoComplete verwendet.</p>
<p>Für enige Sachen mag Dir auch SHAutoComplete genügen...<br />
<a href="http://msdn.microsoft.com/en-us/library/bb759862(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb759862(VS.85).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685162</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 24 Mar 2009 12:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Tue, 24 Mar 2009 19:36:27 GMT]]></title><description><![CDATA[<p>Vielen Dannk schon einmal. SHAutoComplete fällt wohl weg, da ich die Strings die als AutoComplete angezeigt werden selber definieren will, oder?</p>
<p>Aus IAutoComplete werde ich noch nicht ganz schlau. Könnte da jemand eventuell ein Beispiel posten oder mir einen nützlichen Link zu einem Beispel geben (mit google hab ichs schon versucht)?</p>
<p>Mit der Bitte um weitere Hilfe Tim.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685424</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Tue, 24 Mar 2009 19:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Tue, 24 Mar 2009 19:42:41 GMT]]></title><description><![CDATA[<p>Hast Du? Glaube ich nicht.<br />
Suche auf <a href="http://www.codeproject.com" rel="nofollow">www.codeproject.com</a> und Du findest ein komplettes ATL/WTL Sample.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685430</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 24 Mar 2009 19:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Wed, 25 Mar 2009 12:19:20 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Hast Du? Glaube ich nicht.<br />
Suche auf <a href="http://www.codeproject.com" rel="nofollow">www.codeproject.com</a> und Du findest ein komplettes ATL/WTL Sample.</p>
</blockquote>
<p>Vielen Dank. Hab die Seite gefunden, durchgelesen und das Demo Prject heruntergeladen. Das sieht ja schon richtig gut aus.</p>
<p>Doch leider kapier ich das mit dem IEnumString nicht ganz in dem so wie ich das verstanden habe die Strings gespeichert sind, die dann nacher beim AutoComplete verwendet werden sollen.</p>
<p>Es würde mich freuen wenn ihr mir da noch ein paar weitere Hilfen geben könntet</p>
<p>MFG Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1685701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1685701</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Wed, 25 Mar 2009 12:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Sun, 29 Mar 2009 17:59:45 GMT]]></title><description><![CDATA[<p>Ich bin jetzt so weit gekommen, dass ich es geschafft habe, dass im Autocomplete die Windows Verzeichnisse auftauchen. Doch wie kriege ich da meine eigenen Strings rein, in der MSDN steht wieder etwas von IEnumString.</p>
<p>Weis einer wie ich das unten abändern muss damit meine eigenen Strings auftauchen, z.B Apfel, Banane usw.</p>
<p>Code wie er bis jetzt aussieht:</p>
<pre><code class="language-cpp">#include &lt;shlobj.h&gt;
	IAutoComplete *pac;

CoCreateInstance(CLSID_AutoComplete, 
                 NULL, 
                 CLSCTX_INPROC_SERVER,
                 IID_IAutoComplete, 
                 (LPVOID*)&amp;pac);

IUnknown *punkSource;

CoCreateInstance(CLSID_ACListISF, 
                 NULL, 
                 CLSCTX_INPROC_SERVER,
                 IID_IACList, 
                 (LPVOID*)&amp;punkSource);

IACList2 *pal2;

if (SUCCEEDED(punkSource-&gt;QueryInterface(IID_IACList2, (LPVOID*)&amp;pal2)))
{
    pal2-&gt;SetOptions(ACLO_FILESYSONLY);
    pal2-&gt;Release();
}
pac-&gt;Init(eingabefeld, punkSource, NULL, NULL);

IAutoComplete2 *pac2;

if (SUCCEEDED(pac-&gt;QueryInterface(IID_IAutoComplete2, (LPVOID*)&amp;pac2)))
{
    pac2-&gt;SetOptions(ACO_AUTOSUGGEST);
    pac2-&gt;Release();
}

pac-&gt;Release();
punkSource-&gt;Release();
</code></pre>
<p>Bitte helft mir dabei ich sitz da schon seit Tagen dran.:(</p>
<p>MFG Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687895</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Sun, 29 Mar 2009 17:59:45 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Sun, 29 Mar 2009 18:37:07 GMT]]></title><description><![CDATA[<p>Guck dir mal <a href="http://www.codeproject.com/KB/wtl/customautocomplete_wtl.aspx?display=Print" rel="nofollow">diesen</a> Artikel und den Sourcecode davon an, das müsste helfen <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/1687925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687925</guid><dc:creator><![CDATA[bade_off]]></dc:creator><pubDate>Sun, 29 Mar 2009 18:37:07 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Sun, 29 Mar 2009 18:41:47 GMT]]></title><description><![CDATA[<p>Ich vermute mal du meinst das:</p>
<pre><code class="language-cpp">//
	//	IEnumString implementation
	//
	STDMETHODIMP Next(ULONG celt, LPOLESTR* rgelt, ULONG* pceltFetched)
	{

		HRESULT hr = S_FALSE;

		if (!celt)
			celt = 1;

		for (ULONG i = 0; i &lt; celt; i++)
		{

			if (m_nCurrentElement == (ULONG)m_asList.GetSize())
				break;

			rgelt[i] = (LPWSTR)::CoTaskMemAlloc((ULONG) sizeof(WCHAR) * (m_asList[m_nCurrentElement].GetLength() + 1));
			lstrcpy(rgelt[i], m_asList[m_nCurrentElement]);

			if (pceltFetched)
				*pceltFetched++;

			m_nCurrentElement++;
		}

		if (i == celt)
			hr = S_OK;

		return hr;
	}

	STDMETHODIMP Skip(ULONG celt)
	{

		m_nCurrentElement += celt;

		if (m_nCurrentElement &gt; (ULONG)m_asList.GetSize())
			m_nCurrentElement = 0;

		return S_OK;
	}

	STDMETHODIMP Reset(void)
	{

		m_nCurrentElement = 0;
		return S_OK;
	}

	STDMETHODIMP Clone(IEnumString** ppenum)
	{

		if (!ppenum)
			return E_POINTER;

		CCustomAutoComplete* pnew = new CCustomAutoComplete();

		pnew-&gt;AddRef();
		*ppenum = pnew;

		return S_OK;

	}
</code></pre>
<p>muss ich das einfach nur in meinem Code einbauen?</p>
<p>Sorry das ich soviel frage aber ich bin auf dem Gebiet echt neu.</p>
<p>MFG Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687927</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Sun, 29 Mar 2009 18:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Sun, 29 Mar 2009 19:00:27 GMT]]></title><description><![CDATA[<p>Man kann die Grundlagen von COM nicht einfach an solch einem komplexen Sample veranschaulichen...<br />
Zudem hast Du ein komplettes Sample..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687939</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 29 Mar 2009 19:00:27 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Wed, 01 Apr 2009 14:47:18 GMT]]></title><description><![CDATA[<p>Ich hab das jetzt so gemacht. doch ich bekomme immer die Fehlermeldung: error C2065: 'thEnum': nichtdeklarierter Bezeichner obwohl ich thEnum doch eigendlich deklariert habe?</p>
<pre><code class="language-cpp">#include &lt;atlcom.h&gt;
typedef CComEnum&lt;
                 IEnumString,
                 &amp;IID_IEnumString,
                 LPOLESTR,
                 _Copy&lt;LPOLESTR&gt; &gt; CComEnumStringAbstract;

typedef CComObject&lt;CComEnumStringAbstract&gt; CComEnumString;

	IAutoComplete *pac;

CoCreateInstance(CLSID_AutoComplete, 
                 NULL, 
                 CLSCTX_INPROC_SERVER,
                 IID_IAutoComplete, 
                 (LPVOID*)&amp;pac);

CComEnumString * thEnumObj  = NULL;
  HRESULT as = CComEnumString::CreateInstance(&amp;thEnumObj);
  if(FAILED(as))

  CComPtr&lt;CComEnumString&gt; thEnum(thEnumObj);

  LPOLESTR strings[] = {L&quot;One&quot;, L&quot;Two&quot;, L&quot;Three&quot;, NULL};
  hr = thEnum-&gt;Init(&amp;strings[0], &amp;strings[3], NULL, AtlFlagCopy);

 IUnknown* ppEnum;
  as = thEnum-&gt;QueryInterface( __uuidof(IUnknown), (void**)ppEnum);
</code></pre>
<p>MFG Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1689366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689366</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Wed, 01 Apr 2009 14:47:18 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Wed, 01 Apr 2009 17:39:46 GMT]]></title><description><![CDATA[<p>Ich Esel das lag natürlich an dem if... das da noch rumschwirte...</p>
<p>der code funktioniert leider immer noch nicht...<br />
Bitte kann mir jemand helfen?</p>
<pre><code class="language-cpp">typedef CComEnum&lt;
                 IEnumString,
                 &amp;IID_IEnumString,
                 LPOLESTR,
                 _Copy&lt;LPOLESTR&gt; &gt; CComEnumStringAbstract;
typedef CComObject&lt;CComEnumStringAbstract&gt; CComEnumString;

CComEnumString * thEnumObj  = NULL;
  HRESULT hr1 = CComEnumString::CreateInstance(&amp;thEnumObj);
  if(FAILED(hr))
    return hr;

  CComPtr&lt;CComEnumString&gt; thEnum(thEnumObj);

  LPOLESTR strings[] = {L&quot;One&quot;, L&quot;Two&quot;, L&quot;Three&quot;, NULL};
  hr1 = thEnum-&gt;Init(&amp;strings[0], &amp;strings[3], NULL, AtlFlagCopy);

 IUnknown* ppEnum;
  hr1 = thEnum-&gt;QueryInterface( __uuidof(IUnknown), (void**)ppEnum);

  IAutoComplete *pac;

CoCreateInstance(CLSID_AutoComplete, 
                 NULL, 
                 CLSCTX_INPROC_SERVER,
                 IID_IAutoComplete, 
                 (LPVOID*)&amp;pac);

pac-&gt;Init(eingabefeld, ppEnum, NULL, NULL);

IAutoComplete2 *pac2;

if (SUCCEEDED(pac-&gt;QueryInterface(IID_IAutoComplete2, (LPVOID*)&amp;pac2)))
{
    pac2-&gt;SetOptions(ACO_AUTOSUGGEST);
    pac2-&gt;Release();
}

pac-&gt;Release();
ppEnum-&gt;Release();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1689459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689459</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Wed, 01 Apr 2009 17:39:46 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Fri, 03 Apr 2009 13:55:53 GMT]]></title><description><![CDATA[<p>Kann mir da keiner helfen? Oder mir vielleicht einen Beispielcode schreiben wie ich ein Autocomplete auf ein Editfeld kriege? Das wäre doch auch was für die FAQ?</p>
<p>MFG Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1690464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1690464</guid><dc:creator><![CDATA[TIM__]]></dc:creator><pubDate>Fri, 03 Apr 2009 13:55:53 GMT</pubDate></item><item><title><![CDATA[Reply to AutoComplete on Fri, 03 Apr 2009 16:37:55 GMT]]></title><description><![CDATA[<p>Ok es hat jetzt mit dem Beispiel auf <a href="http://www.codeproject.com/KB/wtl/customautocomplete_wtl.aspx" rel="nofollow">Codeproject</a> geklappt. Vielen Dank für eure Hilfe.</p>
<p>Mfg Tim</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1690538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1690538</guid><dc:creator><![CDATA[TIM_]]></dc:creator><pubDate>Fri, 03 Apr 2009 16:37:55 GMT</pubDate></item></channel></rss>