<?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[Funktionstaste F10]]></title><description><![CDATA[<p>Wenn man bei einem laufenden, in MFC generiertem Programm die F10-Taste betätigt, dann wird das Untermenue aufgerufen (nebenbeibemerkt, Die F1-Taste ruft das Help-Menue auf). Hat man aber in seiner Anwendung kein Menue eingebunden - so wie ich - und drückt dann die F10-Taste, dann &quot;wartet&quot; das Programm auf die nächste Tasten-Aktion (oder Maus-Klick-Aktion) bevor es wieder &quot;normal&quot; arbeiten kann. Nun benötige ich aber die F10-Tast um in meinem Programm ein bestimmtes Ereignis auszulösen. Durch das Betätigen der F10-Taste wird mein gewünschtes Ereignis ausgelöst, aber ich muss dem &quot;wartenden&quot; Rechner zunächst einen Tasten-Druck oder Mausklick geben bevor ich z.B. in ein Editor-Steuerelement schreiben kann. Weiss jemand Rat?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/62105/funktionstaste-f10</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 15:28:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/62105.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jan 2004 11:17:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 11:17:23 GMT]]></title><description><![CDATA[<p>Wenn man bei einem laufenden, in MFC generiertem Programm die F10-Taste betätigt, dann wird das Untermenue aufgerufen (nebenbeibemerkt, Die F1-Taste ruft das Help-Menue auf). Hat man aber in seiner Anwendung kein Menue eingebunden - so wie ich - und drückt dann die F10-Taste, dann &quot;wartet&quot; das Programm auf die nächste Tasten-Aktion (oder Maus-Klick-Aktion) bevor es wieder &quot;normal&quot; arbeiten kann. Nun benötige ich aber die F10-Tast um in meinem Programm ein bestimmtes Ereignis auszulösen. Durch das Betätigen der F10-Taste wird mein gewünschtes Ereignis ausgelöst, aber ich muss dem &quot;wartenden&quot; Rechner zunächst einen Tasten-Druck oder Mausklick geben bevor ich z.B. in ein Editor-Steuerelement schreiben kann. Weiss jemand Rat?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440381</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 20 Jan 2004 11:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 11:37:33 GMT]]></title><description><![CDATA[<p>Also, ich nutze auch F10 und das geht einwandfrei.</p>
<p>Hast du die alte Tastenbelegung vielleicht vergessen zu löschen? Debug doch mal, wo er da lang geht und versuch ihm das abzugewöhnen. Wenns nicht geht, beschreib mal, wo er sich rumtreibt.</p>
<p>PS: Kenne die Belegung mit Untermenü nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440399</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 20 Jan 2004 11:37:33 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 11:57:44 GMT]]></title><description><![CDATA[<p>Hi,<br />
was meinst du mit &quot;Löschen der Tastenbelegung&quot;? Ich fange die F10-Taste übrigens mit folgendem Code ab.</p>
<pre><code class="language-cpp">BOOL CMyDlg::PreTranslateMessage(MSG* lpmsg)
{
    if( (lpmsg-&gt;wParam == VK_F10)
        //tue was

    return CDialog::PreTranslateMessage(lpmsg);
}
</code></pre>
<p>Ich wüsste nicht wo ich debugen soll - es scheint alles OK zu sein, bis auf dass ich nach einem F10-Tastendruck irgendeine beliebige Taste (oder Mausklick) betätigen muss bevor ich an meine Steuerelemente zugreifen kann <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="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/440417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440417</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 20 Jan 2004 11:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 12:06:42 GMT]]></title><description><![CDATA[<p>Hast du schon mal im Accelerator Table geguckt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440421</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 20 Jan 2004 12:06:42 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 12:12:57 GMT]]></title><description><![CDATA[<p>Nein noch nicht aber das was ich eben kurz überflogen habe scheint schwere Kost zu sein... Hast du vielleicht einen weiteren Tip ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440426</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 20 Jan 2004 12:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 12:42:04 GMT]]></title><description><![CDATA[<p>Schwere Kost?</p>
<p>Steht da irgendwo was mit F10 (VK_F10)? Wenn ja, dann kopier die Zeile mal hier rein.</p>
<p>Wenn nicht, dann müsstest du mir mal die gesamte Accelerator Table zukommen lassen. Die ist aber eigentlich nicht sehr kompliziert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440461</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 20 Jan 2004 12:42:04 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 13:24:23 GMT]]></title><description><![CDATA[<p>Vielen Dank für deine Tips, aber irgendwie komme ich so nicht weiter. Ich werde mal 'ne Pause machen und es später nochmal versuchen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/440507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440507</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 20 Jan 2004 13:24:23 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Tue, 20 Jan 2004 13:28:19 GMT]]></title><description><![CDATA[<p>Hab was dazu in meinem Lieblingsbuch gefunden:</p>
<blockquote>
<pre><code>IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE
BEGIN
    &quot;N&quot;,            ID_FILE_NEW,            VIRTKEY,CONTROL
    &quot;O&quot;,            ID_FILE_OPEN,           VIRTKEY,CONTROL
    &quot;S&quot;,            ID_FILE_SAVE,           VIRTKEY,CONTROL
    &quot;Z&quot;,            ID_EDIT_UNDO,           VIRTKEY,CONTROL
    &quot;X&quot;,            ID_EDIT_CUT,            VIRTKEY,CONTROL
    &quot;C&quot;,            ID_EDIT_COPY,           VIRTKEY,CONTROL
    &quot;V&quot;,            ID_EDIT_PASTE,          VIRTKEY,CONTROL
    VK_BACK,        ID_EDIT_UNDO,           VIRTKEY,ALT
    VK_DELETE,      ID_EDIT_CUT,            VIRTKEY,SHIFT
    VK_INSERT,      ID_EDIT_COPY,           VIRTKEY,CONTROL
    VK_INSERT,      ID_EDIT_PASTE,          VIRTKEY,SHIFT
END
</code></pre>
<p>In this example, IDR_MAINFRAME is the accelerator table's resource ID. PRELOAD and MOVEABLE are load options that, like the equivalent keywords in MENU statements, have no effect in the Win32 environment. Each line in the table defines one accelerator. The first entry in each line defines the accelerator key, and the second identifies the corresponding menu item. The VIRTKEY keyword tells the resource compiler that the first entry is a virtual key code, and the keyword following it—CONTROL, ALT, or SHIFT—identifies an optional modifier key. In this example, Ctrl-N is an accelerator for File-New, Ctrl-O is an accelerator for File-Open, and so on. The Edit menu's Undo, Cut, Copy, and Paste functions each have two accelerators defined: Ctrl-Z and Alt-Backspace for Undo, Ctrl-X and Shift-Del for Cut, Ctrl-C and Ctrl-Ins for Copy, and Ctrl-V and Shift-Ins for Paste.</p>
</blockquote>
<p>Vielleicht hilft dir das weiter. Aber Pause ist auch immer gut - da habe ich immer die besten Ideen... <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/440512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/440512</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 20 Jan 2004 13:28:19 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Sat, 19 Jun 2004 11:56:59 GMT]]></title><description><![CDATA[<p>Versuch doch mal dies:</p>
<pre><code>BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if (pMsg-&gt;message == WM_KEYDOWN || pMsg-&gt;message == WM_SYSKEYDOWN) 
	{
		if ((int)pMsg-&gt;wParam &gt;= VK_F1 &amp;&amp; (int)pMsg-&gt;wParam &lt;= VK_F12) 
		{
			// machwas 
		}
	}
	return CFrameWnd::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Grüße,</p>
<p>LukeX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/543678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/543678</guid><dc:creator><![CDATA[LukeX]]></dc:creator><pubDate>Sat, 19 Jun 2004 11:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionstaste F10 on Sat, 19 Jun 2004 17:40:06 GMT]]></title><description><![CDATA[<p>q150022 schrieb:</p>
<blockquote>
<p>Hi,<br />
was meinst du mit &quot;Löschen der Tastenbelegung&quot;? Ich fange die F10-Taste übrigens mit folgendem Code ab.</p>
<pre><code class="language-cpp">BOOL CMyDlg::PreTranslateMessage(MSG* lpmsg)
{
    if( (lpmsg-&gt;wParam == VK_F10)
        //tue was

    return CDialog::PreTranslateMessage(lpmsg);
}
</code></pre>
<p>Ich wüsste nicht wo ich debugen soll - es scheint alles OK zu sein, bis auf dass ich nach einem F10-Tastendruck irgendeine beliebige Taste (oder Mausklick) betätigen muss bevor ich an meine Steuerelemente zugreifen kann <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="😞"
    /></p>
</blockquote>
<p>Ist so was nicht gut:</p>
<pre><code class="language-cpp">BOOL CMyApp::PreTranslateMessage(MSG* lpmsg)
{
    if(lpmsg-&gt;wParam == VK_F10){
        //tue was

        return true;
    }

    return CWinApp::PreTranslateMessage(lpmsg);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/543842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/543842</guid><dc:creator><![CDATA[Squeel]]></dc:creator><pubDate>Sat, 19 Jun 2004 17:40:06 GMT</pubDate></item></channel></rss>