<?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[dialog was vergessen?]]></title><description><![CDATA[<p>hi hab ich irgendwas vergessen,tamplate wird nämlich nicht angezeigt!</p>
<pre><code>BOOL CALLBACK startDlg(HWND,UINT,WPARAM,LPARAM);
HWND hw;

int WINAPI WinMain (HINSTANCE hInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpCmdLine,
                    int nShowCmd)
{

    return 0;

}
BOOL CALLBACK startDlg (HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam)
{

    switch (msg)
    {
        case WM_COMMAND:
              switch (LOWORD(wParam))
               {
                 case WM_INITDIALOG:
                 hw = hwndDlg;
                 DialogBox(NULL,
                 MAKEINTRESOURCE(IDD_STARTDLG),
                 hw,
                 startDlg);
                 return FALSE;
               }

             case IDC_CLOSEWIKI:
             EndDialog(hwndDlg,0);
             return FALSE;
             break;
    }
    return FALSE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/172836/dialog-was-vergessen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 11:13:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172836.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Feb 2007 19:35:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dialog was vergessen? on Thu, 08 Feb 2007 19:35:32 GMT]]></title><description><![CDATA[<p>hi hab ich irgendwas vergessen,tamplate wird nämlich nicht angezeigt!</p>
<pre><code>BOOL CALLBACK startDlg(HWND,UINT,WPARAM,LPARAM);
HWND hw;

int WINAPI WinMain (HINSTANCE hInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpCmdLine,
                    int nShowCmd)
{

    return 0;

}
BOOL CALLBACK startDlg (HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam)
{

    switch (msg)
    {
        case WM_COMMAND:
              switch (LOWORD(wParam))
               {
                 case WM_INITDIALOG:
                 hw = hwndDlg;
                 DialogBox(NULL,
                 MAKEINTRESOURCE(IDD_STARTDLG),
                 hw,
                 startDlg);
                 return FALSE;
               }

             case IDC_CLOSEWIKI:
             EndDialog(hwndDlg,0);
             return FALSE;
             break;
    }
    return FALSE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1225292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225292</guid><dc:creator><![CDATA[spartakus]]></dc:creator><pubDate>Thu, 08 Feb 2007 19:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to dialog was vergessen? on Thu, 08 Feb 2007 19:43:26 GMT]]></title><description><![CDATA[<p>DialogBox musst du in deiner WinMain aufrufen, sonst wird natürlich auch kein Dialog geöffnet...<br />
<a href="http://www.winapi.net/index.php?inhalt=tipp2" rel="nofollow">http://www.winapi.net/index.php?inhalt=tipp2</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225300</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 08 Feb 2007 19:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to dialog was vergessen? on Thu, 08 Feb 2007 19:47:00 GMT]]></title><description><![CDATA[<p>ups,danke...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225307</guid><dc:creator><![CDATA[spartakus]]></dc:creator><pubDate>Thu, 08 Feb 2007 19:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to dialog was vergessen? on Thu, 08 Feb 2007 22:19:49 GMT]]></title><description><![CDATA[<p>Und der rest ist auch net ganz richtig ^^</p>
<pre><code class="language-cpp">INT_PTR CALLBACK start_dialog_proc(HWND,UINT,WPARAM,LPARAM);

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE, LPSTR, int)
{ 
    return DialogBox(hInstance, MAKEINTRESOURCE(IDD_STARTDLG), NULL,                 start_dialog_proc);
}

INT_PTR CALLBACK start_dialog_proc(HWND hDlg, UINT message, WPARAM, LPARAM)
{
    switch (msg)
    {
        case WM_COMMAND:
        {
            switch(LOWORD(wParam))
            {
                case IDOK:
                    EndDialog(hDlg,0);
                    return (INT_PTR)TRUE;
                default:
                    break;
            }
        } break;
        case WM_INITDIALOG:
        {
            return (INT_PTR)TRUE;
        } break;
        case WM_CLOSE:
        {
            EndDialog(hDlg,0);
            return (INT_PTR)TRUE;
        }
    }
    return (INT_PTR)FALSE;
}
</code></pre>
<p>So sieht doch ganz nett aus ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225388</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 08 Feb 2007 22:19:49 GMT</pubDate></item><item><title><![CDATA[Reply to dialog was vergessen? on Fri, 09 Feb 2007 17:36:07 GMT]]></title><description><![CDATA[<p>warum gibst du immer TRUE zurück? schau mal in der msdn nach den empfehlungen bzgl. rückgabewerte der Nachrichten in der msdn durch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225818</guid><dc:creator><![CDATA[peterun]]></dc:creator><pubDate>Fri, 09 Feb 2007 17:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to dialog was vergessen? on Fri, 09 Feb 2007 17:41:02 GMT]]></title><description><![CDATA[<p>peterun schrieb:</p>
<blockquote>
<p>warum gibst du immer TRUE zurück? schau mal in der msdn nach den empfehlungen bzgl. rückgabewerte der Nachrichten in der msdn durch</p>
</blockquote>
<p>Also wenn Du Dich auf (D)Evil's Code beziehst (Sonst sehe ich keinen auf den das zutreffen könnte): Sein Code ist doch völlig korrekt! Außerdem gibt er doch nicht immer <em>TRUE</em> zurück <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225821</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 09 Feb 2007 17:41:02 GMT</pubDate></item></channel></rss>