<?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[ToolTip ohne MFC]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich weiss nicht richtig wo das Thema hingehört, deshalb packe ich es mal da hin wo es auf jeden Fall nicht hingehört <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>
<p>Ich habe ein ActiveX Control, das ich ganz normale zeiche usw.<br />
Nun möchte ich abhängig von meiner Mausposition auf dem ActiveX Control verschiedene Tooltips (ganz normaler standard tooltip reicht) ausgeben.</p>
<p>Da ActiveX = ATL ist da nix mit CToolTipCtrl und dergleichen.</p>
<p>Hat jemand zufällig schon mal etwas diesbezüglich entworfen und würde sein Wissen teilen bzw. könnte ein paar Tips geben.</p>
<p>Vielen Dank, Grüsse Titanico.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152257/tooltip-ohne-mfc</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 10:11:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152257.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jul 2006 16:03:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ToolTip ohne MFC on Tue, 04 Jul 2006 16:03:56 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich weiss nicht richtig wo das Thema hingehört, deshalb packe ich es mal da hin wo es auf jeden Fall nicht hingehört <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>
<p>Ich habe ein ActiveX Control, das ich ganz normale zeiche usw.<br />
Nun möchte ich abhängig von meiner Mausposition auf dem ActiveX Control verschiedene Tooltips (ganz normaler standard tooltip reicht) ausgeben.</p>
<p>Da ActiveX = ATL ist da nix mit CToolTipCtrl und dergleichen.</p>
<p>Hat jemand zufällig schon mal etwas diesbezüglich entworfen und würde sein Wissen teilen bzw. könnte ein paar Tips geben.</p>
<p>Vielen Dank, Grüsse Titanico.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1091330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091330</guid><dc:creator><![CDATA[Titanico]]></dc:creator><pubDate>Tue, 04 Jul 2006 16:03:56 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Tue, 04 Jul 2006 16:31:49 GMT]]></title><description><![CDATA[<p>guckst du: <a href="http://www.ib-hoebel.de/SpamPal/tooltips.htm" rel="nofollow">http://www.ib-hoebel.de/SpamPal/tooltips.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1091340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091340</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Tue, 04 Jul 2006 16:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Tue, 04 Jul 2006 17:52:23 GMT]]></title><description><![CDATA[<p>Wobei das ganze besser so heißen sollte:</p>
<pre><code class="language-cpp">bool CreateToolTip(HWND hWndTarget, LPTSTR lpstToolTip, int nWidth)
{
    HWND hWndToolTip = CreateWindow(TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hWndTarget, NULL, NULL, NULL);

    if (!hWndToolTip)
        return false;

    TOOLINFO ti;
    ti.cbSize = sizeof(ti);
    ti.uFlags = TTF_TRANSPARENT | TTF_SUBCLASS;
    ti.hwnd = hWndTarget;
    ti.uId = 0;
    ti.hinst = NULL;
    lstrcpy(ti.lpszText, lpstToolTip);

    GetClientRect(hWndTarget, &amp;ti.rect);
    SendMessage(hWndToolTip, TTM_ADDTOOL, 0, (LPARAM)&amp;ti);
    SendMessage(hWndToolTip, TTM_SETMAXTIPWIDTH, 0, (LPARAM)nWidth);
    SendMessage(hWndToolTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, 20000);

    return true;
}
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1091374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091374</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Tue, 04 Jul 2006 17:52:23 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 05 Jul 2006 08:06:19 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p>Wobei das ganze besser so heißen sollte:</p>
<pre><code class="language-cpp">bool CreateToolTip(HWND hWndTarget, LPTSTR lpstToolTip, int nWidth)
{
    HWND hWndToolTip = CreateWindow(TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hWndTarget, NULL, NULL, NULL);

    if (!hWndToolTip)
        return false;
     
    TOOLINFO ti;
    ti.cbSize = sizeof(ti);
    ti.uFlags = TTF_TRANSPARENT | TTF_SUBCLASS;
    ti.hwnd = hWndTarget;
    ti.uId = 0;
    ti.hinst = NULL;
    lstrcpy(ti.lpszText, lpstToolTip);

    GetClientRect(hWndTarget, &amp;ti.rect);
    SendMessage(hWndToolTip, TTM_ADDTOOL, 0, (LPARAM)&amp;ti);
    SendMessage(hWndToolTip, TTM_SETMAXTIPWIDTH, 0, (LPARAM)nWidth);
    SendMessage(hWndToolTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, 20000);
    
    return true;
}
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>wenn schon dann so:</p>
<pre><code>HWND CreateToolTip(HWND target, char* tooltip, LPARAM width)
{
     HWND hwndToolTip;

     hwndToolTip = CreateWindow(TOOLTIPS_CLASS, NULL, WS_POPUP |
                       TTS_NOPREFIX | TTS_ALWAYSTIP, CW_USEDEFAULT,     
                       CW_USEDEFAULT, CW_USEDEFAULT,
                       CW_USEDEFAULT, target, NULL, NULL, NULL);
     if (hwndToolTip)
     {
          TOOLINFO ti;
          ti.cbSize = sizeof(ti);
          ti.uFlags = TTF_TRANSPARENT | TTF_SUBCLASS;
          ti.hwnd = target;
          ti.uId = 0;
          ti.hinst = NULL;
          ti.lpszText = tooltip;
          GetClientRect(target, &amp;ti.rect);
          SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM) &amp;ti );
          SendMessage(hwndToolTip,TTM_SETMAXTIPWIDTH,0,width);
          SendMessage(hwndToolTip,TTM_SETDELAYTIME,TTDT_AUTOPOP,20000);
     }
     return hwndToolTip;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1091574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091574</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Wed, 05 Jul 2006 08:06:19 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 05 Jul 2006 12:08:46 GMT]]></title><description><![CDATA[<p>Danke für die Antworten.</p>
<p>funktioniert!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1091662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091662</guid><dc:creator><![CDATA[Titanico]]></dc:creator><pubDate>Wed, 05 Jul 2006 12:08:46 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 05 Jul 2006 12:16:15 GMT]]></title><description><![CDATA[<p>Titanico schrieb:</p>
<blockquote>
<p>Danke für die Antworten.<br />
funktioniert!</p>
</blockquote>
<p>gern geschehen.. <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/1091747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091747</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Wed, 05 Jul 2006 12:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 24 Oct 2007 12:31:28 GMT]]></title><description><![CDATA[<p>Ich versuche auch den Quelltext zum Laufen zu bekommen. Allerdings bekomme ich in dem Quelltext in folgender Zeile</p>
<pre><code class="language-cpp">GetClientRect(target, &amp;ti.rect);
</code></pre>
<p>diese Fehlermeldung:</p>
<pre><code class="language-cpp">error C2660: 'GetClientRect' : Funktion akzeptiert keine 2 Parameter
</code></pre>
<p>Weiss jemand Rat?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1391179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1391179</guid><dc:creator><![CDATA[plizer]]></dc:creator><pubDate>Wed, 24 Oct 2007 12:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 24 Oct 2007 12:53:53 GMT]]></title><description><![CDATA[<p>versuch</p>
<pre><code class="language-cpp">::GetClientRect(target, &amp;ti.rect);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1391198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1391198</guid><dc:creator><![CDATA[~Airdamn]]></dc:creator><pubDate>Wed, 24 Oct 2007 12:53:53 GMT</pubDate></item><item><title><![CDATA[Reply to ToolTip ohne MFC on Wed, 24 Oct 2007 14:09:35 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> Das funktionierte!</p>
<p>Das Problem ist jetzt nur, dass nur Tooltips für Steuerelemente angezeigt werden, die enabled sind und leider auch nichts angezeigt wird bei einem grafischen ActiveX-Element, welches ich implementiert habe.</p>
<p>Hast Du da vielleicht auch noch einen Rat parat?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1391262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1391262</guid><dc:creator><![CDATA[plizer]]></dc:creator><pubDate>Wed, 24 Oct 2007 14:09:35 GMT</pubDate></item></channel></rss>