<?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[Tastatureingabe in Dialog]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich in einem Dialog-Window mit Steuerelementen (Buttons), in dem der Focus nicht in einem Eingabefeld ist, Tastatureingaben abfangen?<br />
Danke im voraus für eure Antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/49107/tastatureingabe-in-dialog</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 02:53:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/49107.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Sep 2003 09:07:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tastatureingabe in Dialog on Tue, 16 Sep 2003 09:07:43 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich in einem Dialog-Window mit Steuerelementen (Buttons), in dem der Focus nicht in einem Eingabefeld ist, Tastatureingaben abfangen?<br />
Danke im voraus für eure Antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/354431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/354431</guid><dc:creator><![CDATA[Reiner]]></dc:creator><pubDate>Tue, 16 Sep 2003 09:07:43 GMT</pubDate></item><item><title><![CDATA[Reply to Tastatureingabe in Dialog on Tue, 16 Sep 2003 09:25:25 GMT]]></title><description><![CDATA[<p>Dies ist mit PreTranslateMessage möglich:<br />
z.B:</p>
<pre><code class="language-cpp">BOOL CListLog::PreTranslateMessage(MSG *pMsg)
{
    bool ctrlPressed = false;
    int nVirtKey = (int) pMsg-&gt;wParam;
    if (pMsg-&gt;message == WM_KEYDOWN)
    {
        if (GetKeyState(VK_CONTROL) &amp; 0x80)
        {
            ctrlPressed = true;
        }
        if (ctrlPressed)
        {
            if (nVirtKey == 'P')
            {
                OnFilePrint();
                pMsg-&gt;message = WM_NULL;
                return false;
            }
            else if (nVirtKey == 'A')
            {
                OnEditSelectAll();
                return false;
            }
        }
 ...
</code></pre>
<p>Gruss ghu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/354445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/354445</guid><dc:creator><![CDATA[ghu]]></dc:creator><pubDate>Tue, 16 Sep 2003 09:25:25 GMT</pubDate></item></channel></rss>