<?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[ESC-taste im dialogfeld abfragen]]></title><description><![CDATA[<p>hallo,<br />
problemchen: ich habe ein dialogfeld mit steuerelementen gegeben.immer wenn ich die esc-taste drücke sollte eine aktion durchgeführt werden.<br />
hab das so gelöst</p>
<p>Klasse::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) {<br />
...<br />
}</p>
<p>die methode wird aber nie augerufen.<br />
hab schon was von listener usw. gelesen, aber check das nicht ganz.<br />
könnte mir jemand weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154217/esc-taste-im-dialogfeld-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 13:55:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154217.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jul 2006 12:55:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Tue, 25 Jul 2006 13:04:24 GMT]]></title><description><![CDATA[<p>hallo,<br />
problemchen: ich habe ein dialogfeld mit steuerelementen gegeben.immer wenn ich die esc-taste drücke sollte eine aktion durchgeführt werden.<br />
hab das so gelöst</p>
<p>Klasse::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) {<br />
...<br />
}</p>
<p>die methode wird aber nie augerufen.<br />
hab schon was von listener usw. gelesen, aber check das nicht ganz.<br />
könnte mir jemand weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103825</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Tue, 25 Jul 2006 13:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Tue, 25 Jul 2006 16:32:34 GMT]]></title><description><![CDATA[<p>OnCancel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1103978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1103978</guid><dc:creator><![CDATA[...]]></dc:creator><pubDate>Tue, 25 Jul 2006 16:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 06:33:53 GMT]]></title><description><![CDATA[<p>so hab ichs zwar nicht gemeint <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="🙂"
    /><br />
wollte eigentlich das ganze für eine beliebige taste machen, aber ich überschreib einfach die oncancel funktion,dann passts auch.<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104289</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Wed, 26 Jul 2006 06:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 07:27:54 GMT]]></title><description><![CDATA[<p>..es geht trozdem nicht, weil ich mit &quot;schliesen&quot; und mit &quot;ESC&quot; in die selbe funktion springe.<br />
kann mir jemand sagen wie ich speziel nur die esc-taste abfrage?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104305</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Wed, 26 Jul 2006 07:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 07:54:34 GMT]]></title><description><![CDATA[<p>Du kannst auch die Nachricht WM_CHAR abfangen und dort dann testen, welche Taste genau gedrückt wurde</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104320</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Wed, 26 Jul 2006 07:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 08:50:01 GMT]]></title><description><![CDATA[<p>das könnte funktionieren.<br />
weisst du auch welches zeichen die esc-taste belegt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104359</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Wed, 26 Jul 2006 08:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 09:44:47 GMT]]></title><description><![CDATA[<p>Schau dir mal die &quot;Virtual-Key Codes&quot; in der MSDN oder sonst wo an. Für Escape ist es VK_ESCAPE. Es braucht übrigens kein Zeichen, sondern Zahlen. Der Funktion CWnd::OnChar werden auch nur Zahlen übermittelt. Jede Taste, bzw. auch jeder Buchstabe usw. sind schliesslich alles Zahlen. Aber das weisst du denke ich schon ^^</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104412</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Wed, 26 Jul 2006 09:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Wed, 26 Jul 2006 10:45:43 GMT]]></title><description><![CDATA[<p>danke vorerst. hab das ganze eben schon mit 27 (entsbricht 1B hex) probiert.<br />
folgender algo:</p>
<p>void Klasse::OnCancel()<br />
{<br />
char x=WM_CHAR;<br />
if(WM_KEYDOWN)<br />
if(WM_CHAR==27)<br />
{<br />
...<br />
springe aber nie in die if(WM_CHAR==27) bedingung?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1104438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1104438</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Wed, 26 Jul 2006 10:45:43 GMT</pubDate></item><item><title><![CDATA[Reply to ESC-taste im dialogfeld abfragen on Thu, 27 Jul 2006 08:26:46 GMT]]></title><description><![CDATA[<p>für alle dies noch vor sich haben:<br />
funktioniert super</p>
<p>BOOL DialogName::PreTranslateMessage(MSG* pMsg)<br />
{<br />
// TODO: Add your specialized code here and/or call the base class<br />
if(pMsg-&gt;message==WM_KEYDOWN)<br />
{<br />
if(pMsg-&gt;wParam==VK_RETURN || pMsg-&gt;wParam==VK_ESCAPE)<br />
pMsg-&gt;wParam=NULL ;<br />
}</p>
<p>return CDialog::PreTranslateMessage(pMsg);<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105103</guid><dc:creator><![CDATA[woldo]]></dc:creator><pubDate>Thu, 27 Jul 2006 08:26:46 GMT</pubDate></item></channel></rss>