<?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[EN_LINk problem]]></title><description><![CDATA[<p>moin, ich habe ne subclasse, von richedit :</p>
<pre><code class="language-cpp">LRESULT CALLBACK ChatControl (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    static HMENU hMenu; // PopUp menu
    POINT  point; // Position
    int select;
    switch(msg)
    {
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_CONTEXTMENU:
            hMenu = CreatePopupMenu ();    
            InsertMenu (hMenu, 0, MF_BYPOSITION, 0, &quot;Kopieren&quot;);
            POINTSTOPOINT (point, lParam);
            if ((point.x == -1) &amp;&amp; (point.y == -1))
            {
                point.x = point.y = GetSystemMetrics (SM_CXEDGE);
                ClientToScreen (hwnd, &amp;point); // Die Koordinaten auf unser Fenster legen 
            }
            select = (int) TrackPopupMenu (hMenu, TPM_CENTERALIGN|TPM_LEFTBUTTON|TPM_RETURNCMD, point.x, point.y, 0, hwnd, 0);
            if (select == 0)
            {
                // Copy to clipboard    
            }
            break;
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_NOTIFY:
                if (wParam == EN_LINK)
                {
                MessageBox(NULL, &quot;dfsdf&quot;, &quot;dfsdf&quot;, MB_OK);
                ShellExecute(hChat, &quot;open&quot;, &quot;http://www.Meine-Hompage.de/cpp&quot;, NULL,NULL,SW_SHOWDEFAULT);
                }  
            break;
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_DESTROY:
            DestroyMenu (hMenu);
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
    }

    return CallWindowProc ((WNDPROC) PrevhChat, hwnd, msg, wParam, lParam);      
}
</code></pre>
<p>so, jetzt wird in richedit ein link eingefügt, und ich clickt mit der maus drauf aber es passeir nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> wieso passiert ncihts?</p>
<p>pS: mit EM_AUTOURLDETECT werden die links gesucht und auch gefunden ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/140383/en_link-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 00:52:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140383.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Mar 2006 14:49:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EN_LINk problem on Tue, 14 Mar 2006 14:49:55 GMT]]></title><description><![CDATA[<p>moin, ich habe ne subclasse, von richedit :</p>
<pre><code class="language-cpp">LRESULT CALLBACK ChatControl (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    static HMENU hMenu; // PopUp menu
    POINT  point; // Position
    int select;
    switch(msg)
    {
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_CONTEXTMENU:
            hMenu = CreatePopupMenu ();    
            InsertMenu (hMenu, 0, MF_BYPOSITION, 0, &quot;Kopieren&quot;);
            POINTSTOPOINT (point, lParam);
            if ((point.x == -1) &amp;&amp; (point.y == -1))
            {
                point.x = point.y = GetSystemMetrics (SM_CXEDGE);
                ClientToScreen (hwnd, &amp;point); // Die Koordinaten auf unser Fenster legen 
            }
            select = (int) TrackPopupMenu (hMenu, TPM_CENTERALIGN|TPM_LEFTBUTTON|TPM_RETURNCMD, point.x, point.y, 0, hwnd, 0);
            if (select == 0)
            {
                // Copy to clipboard    
            }
            break;
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_NOTIFY:
                if (wParam == EN_LINK)
                {
                MessageBox(NULL, &quot;dfsdf&quot;, &quot;dfsdf&quot;, MB_OK);
                ShellExecute(hChat, &quot;open&quot;, &quot;http://www.Meine-Hompage.de/cpp&quot;, NULL,NULL,SW_SHOWDEFAULT);
                }  
            break;
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
        case WM_DESTROY:
            DestroyMenu (hMenu);
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
    }

    return CallWindowProc ((WNDPROC) PrevhChat, hwnd, msg, wParam, lParam);      
}
</code></pre>
<p>so, jetzt wird in richedit ein link eingefügt, und ich clickt mit der maus drauf aber es passeir nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> wieso passiert ncihts?</p>
<p>pS: mit EM_AUTOURLDETECT werden die links gesucht und auch gefunden ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016091</guid><dc:creator><![CDATA[tütü]]></dc:creator><pubDate>Tue, 14 Mar 2006 14:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to EN_LINk problem on Tue, 14 Mar 2006 15:02:09 GMT]]></title><description><![CDATA[<p>MSDN Library schrieb:</p>
<blockquote>
<p>To receive EN_LINK notifications, specify the ENM_LINK flag in the mask sent with the EM_SETEVENTMASK message.</p>
</blockquote>
<p>Hast du das gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1016099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016099</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 14 Mar 2006 15:02:09 GMT</pubDate></item><item><title><![CDATA[Reply to EN_LINk problem on Tue, 14 Mar 2006 17:24:33 GMT]]></title><description><![CDATA[<p>jo, habe das in der Haupt callback:</p>
<pre><code class="language-cpp">SendMessage(hChat, EM_SETEVENTMASK, 0, ENM_LINK);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1016197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1016197</guid><dc:creator><![CDATA[tütü]]></dc:creator><pubDate>Tue, 14 Mar 2006 17:24:33 GMT</pubDate></item></channel></rss>