<?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[Probleme mit dem tabulator]]></title><description><![CDATA[<p>Hey @all,</p>
<p>ich habe ein Dialogfenster mit dem Designer erstellt, das ich wie folgt aufrufe:</p>
<pre><code class="language-cpp">CreateDialog(hInst, (LPCTSTR)IDD_EDITOR, hDlg, (DLGPROC)DialogEditor);
</code></pre>
<p>Mein Problem ist nun, dass ich NICHT mit den Tabulator navigieren kann, wie es normalerweise üblich bzw. bekannt ist.</p>
<p>Kann mir diesbezüglich jemand helfen?</p>
<p>Vielen Dank im Voraus</p>
<p>Lg _freeze_</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/170385/probleme-mit-dem-tabulator</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 08:20:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170385.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jan 2007 10:41:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit dem tabulator on Mon, 15 Jan 2007 10:41:15 GMT]]></title><description><![CDATA[<p>Hey @all,</p>
<p>ich habe ein Dialogfenster mit dem Designer erstellt, das ich wie folgt aufrufe:</p>
<pre><code class="language-cpp">CreateDialog(hInst, (LPCTSTR)IDD_EDITOR, hDlg, (DLGPROC)DialogEditor);
</code></pre>
<p>Mein Problem ist nun, dass ich NICHT mit den Tabulator navigieren kann, wie es normalerweise üblich bzw. bekannt ist.</p>
<p>Kann mir diesbezüglich jemand helfen?</p>
<p>Vielen Dank im Voraus</p>
<p>Lg _freeze_</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1210130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1210130</guid><dc:creator><![CDATA[_freeze_]]></dc:creator><pubDate>Mon, 15 Jan 2007 10:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Mon, 15 Jan 2007 10:57:25 GMT]]></title><description><![CDATA[<p>Soweit ich weis hat das was mit deiner Nachrichtenschleife zu tun.<br />
Versuch mal das</p>
<pre><code>while (GetMessage (&amp;msg, NULL, 0, 0))
   {
      if (!IsWindow(hDlg) || !IsDialogMessage(hDlg, &amp;msg))
      {
         TranslateMessage (&amp;msg);
         DispatchMessage (&amp;msg);
      }
   }
</code></pre>
<p>hDlg ist in diesem Fall ne globale Variable die du dann beim Aufruf von CreateDialog dir holst.</p>
<pre><code>hDlg = CreateDialog(hInst, (LPCTSTR)IDD_EDITOR, hDlg, (DLGPROC)DialogEditor);
</code></pre>
<p>Hoffe das hilft dir weiter.</p>
<p>MfG schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1210145</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1210145</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 15 Jan 2007 10:57:25 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Mon, 15 Jan 2007 11:21:24 GMT]]></title><description><![CDATA[<p>Die Nachrichtenschleife habe ich eh so, es tut sich trotzdem leider nix <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>
<p>Gibts noch eine andere alternative?</p>
<p>Also die Enter bzw. ESC Taste funktionieren auch nicht, scheint so als wenn keine Funktionalität vorhanden wäre</p>
<p>Lg _freeze_</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1210157</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1210157</guid><dc:creator><![CDATA[_freeze_]]></dc:creator><pubDate>Mon, 15 Jan 2007 11:21:24 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Mon, 22 Jan 2007 06:01:30 GMT]]></title><description><![CDATA[<p>Sorry das ich den Thread nochmals hoch hebe... Hat wirklich keiner eine Idee? <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>
<p>Lg _freeze_</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1214168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1214168</guid><dc:creator><![CDATA[_freeze]]></dc:creator><pubDate>Mon, 22 Jan 2007 06:01:30 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Mon, 22 Jan 2007 07:47:42 GMT]]></title><description><![CDATA[<p><em>freeze</em> schrieb:</p>
<blockquote>
<p>Die Nachrichtenschleife habe ich eh so, es tut sich trotzdem leider nix <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>
<p>Gibts noch eine andere alternative?</p>
<p>Also die Enter bzw. ESC Taste funktionieren auch nicht, scheint so als wenn keine Funktionalität vorhanden wäre</p>
</blockquote>
<p>Bist Du ganz sicher, dass hDlg auch das Handle Deines Dialoges erhält und, dass auch wirklich diese Schleife durchlaufen wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1214202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1214202</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 22 Jan 2007 07:47:42 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Tue, 23 Jan 2007 07:32:35 GMT]]></title><description><![CDATA[<p>Also, in der Hauptfunktion steht folgendes:</p>
<pre><code class="language-cpp">int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow) {
.
.
.
    ShowWindow(hWndM, true);

    hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_CONFIG_EDITOR); 
    if (hAccelTable == NULL) {
        MessageBox(hWndM, &quot;Error by Accelerator&quot;, &quot;&quot;, MB_OK);
    }

    while(IsWindow(hWndM)) {
        while(PeekMessage(&amp;msg, NULL, 0, 0, PM_REMOVE)) {
            if(msg.message == WM_QUIT)
                break;
            if (!TranslateAccelerator(hWndM, hAccelTable, &amp;msg)) {
                TranslateMessage(&amp;msg);
                DispatchMessage(&amp;msg);
            }
            memset(&amp;msg, 0, sizeof(msg));
        }
        Sleep(1);
    }
.
.
.
}
</code></pre>
<p>Der Dialog wird wie folgt aufgerufen:</p>
<pre><code class="language-cpp">HWND hDlg = CreateDialog(hInst, (LPCTSTR)IDD_EDITOR, hWndM, (DLGPROC)DialogEditor);
</code></pre>
<p>Die Callback Funktion selbst sieht da in etwas so aus:</p>
<pre><code class="language-cpp">LRESULT CALLBACK DialogEditor(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) {
    switch (message) {
	case WM_INITDIALOG: {
            HFONT hFixFont = CreateFont(15, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, &quot;Courier New&quot;);
            SendMessage(GetDlgItem(hDlg, IDC_RICHEDIT21), WM_SETFONT, (WPARAM)hFixFont, MAKELONG(TRUE, 0));
            return TRUE;
	}
	case WM_COMMAND:
            if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) {
                //EndDialog(hDlg, LOWORD(wParam));
                dia_editor = NULL;
                DestroyWindow(hDlg);
                return TRUE;
            }
            break;
.
.
.
</code></pre>
<p>Sehe hier keinen Fehler</p>
<p>Lg _freeze_</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1214933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1214933</guid><dc:creator><![CDATA[_freeze_]]></dc:creator><pubDate>Tue, 23 Jan 2007 07:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit dem tabulator on Tue, 23 Jan 2007 08:19:35 GMT]]></title><description><![CDATA[<p><em>freeze</em> schrieb:</p>
<blockquote>
<p>Sehe hier keinen Fehler</p>
</blockquote>
<p>Ich schon! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /> Hast Du eigentlich die Nachricht von schirrmie gelesen?</p>
<p>Schau mal genau hin:</p>
<pre><code class="language-cpp">while (GetMessage (&amp;msg, NULL, 0, 0))
   {
      if (!IsWindow(hDlg) || !IsDialogMessage(hDlg, &amp;msg))
      {
         TranslateMessage (&amp;msg);
         DispatchMessage (&amp;msg);
      }
   }
</code></pre>
<p>Hier steht das Zauberwort <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <strong>IsDialogMessage</strong>, auch ich habe Dich gefragt ob Du hDlg auch wirklich benutzt hast!</p>
<p>BTW: Den memset auf msg kanst Du Dir getrost sparen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1214971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1214971</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 23 Jan 2007 08:19:35 GMT</pubDate></item></channel></rss>