<?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[mein 2win spinnt]]></title><description><![CDATA[<p>also ich hab folgendes problem ich mach 2wins aber ich komm nie in die Procedure vom 2 win !!</p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT, WPARAM, LPARAM);
LRESULT CALLBACK BoxProcedure (HWND hwnd, UINT, WPARAM, LPARAM);

int WINAPI
WinMain (HINSTANCE hThisInstance,
         HINSTANCE hPrevInstance,
         LPSTR lpszArgument,
         int nFunsterStil)

{
    MSG messages={0};            
    WNDCLASSEX wincl={0};        

    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      
    wincl.style = CS_DBLCLKS;                 
    wincl.cbSize = sizeof (WNDCLASSEX);

    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 
    wincl.cbClsExtra = 0;                      
    wincl.cbWndExtra = 0;                      
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

     if (!RegisterClassEx (&amp;wincl))
        return 0;

    HWND hwnd = CreateWindowEx (
           0,                   
           szClassName,         
           &quot;Controlwindow&quot;,       
           WS_OVERLAPPEDWINDOW, 
           CW_USEDEFAULT,       
           CW_USEDEFAULT,       
           500,                 
           200,                 
           HWND_DESKTOP,        
           NULL,                
           hThisInstance,       
           NULL                 
           );

    WNDCLASSEX box={0};        
    box.hInstance = hThisInstance;
    box.lpszClassName = szBoxName;
    box.lpfnWndProc =BoxProcedure;         
    box.style = CS_DBLCLKS;                   
    box.cbSize = sizeof (WNDCLASSEX);

        box.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    box.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    box.hCursor = LoadCursor (NULL, IDC_ARROW);
    box.lpszMenuName = NULL;                
    box.cbClsExtra = 0;                      
    box.cbWndExtra = 0;                      

    box.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    if (!RegisterClassEx (&amp;box))
        return 0;

        HWND picbox = CreateWindowEx (
           0,                  
           szClassName,         
           &quot;Picturewindow&quot;,       
           WS_OVERLAPPEDWINDOW, 
           0,       
           0,       
           814,                 
           639,                 
           HWND_DESKTOP,       
           NULL,                
           hThisInstance,       
           NULL                            );

    ShowWindow (hwnd, nFunsterStil);
    ShowWindow (picbox, nFunsterStil);

    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
                TranslateMessage(&amp;messages);
                DispatchMessage(&amp;messages);
    }
    return messages.wParam;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/63770/mein-2win-spinnt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 03:30:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/63770.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Feb 2004 16:34:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mein 2win spinnt on Wed, 04 Feb 2004 16:34:35 GMT]]></title><description><![CDATA[<p>also ich hab folgendes problem ich mach 2wins aber ich komm nie in die Procedure vom 2 win !!</p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT, WPARAM, LPARAM);
LRESULT CALLBACK BoxProcedure (HWND hwnd, UINT, WPARAM, LPARAM);

int WINAPI
WinMain (HINSTANCE hThisInstance,
         HINSTANCE hPrevInstance,
         LPSTR lpszArgument,
         int nFunsterStil)

{
    MSG messages={0};            
    WNDCLASSEX wincl={0};        

    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      
    wincl.style = CS_DBLCLKS;                 
    wincl.cbSize = sizeof (WNDCLASSEX);

    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 
    wincl.cbClsExtra = 0;                      
    wincl.cbWndExtra = 0;                      
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

     if (!RegisterClassEx (&amp;wincl))
        return 0;

    HWND hwnd = CreateWindowEx (
           0,                   
           szClassName,         
           &quot;Controlwindow&quot;,       
           WS_OVERLAPPEDWINDOW, 
           CW_USEDEFAULT,       
           CW_USEDEFAULT,       
           500,                 
           200,                 
           HWND_DESKTOP,        
           NULL,                
           hThisInstance,       
           NULL                 
           );

    WNDCLASSEX box={0};        
    box.hInstance = hThisInstance;
    box.lpszClassName = szBoxName;
    box.lpfnWndProc =BoxProcedure;         
    box.style = CS_DBLCLKS;                   
    box.cbSize = sizeof (WNDCLASSEX);

        box.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    box.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    box.hCursor = LoadCursor (NULL, IDC_ARROW);
    box.lpszMenuName = NULL;                
    box.cbClsExtra = 0;                      
    box.cbWndExtra = 0;                      

    box.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    if (!RegisterClassEx (&amp;box))
        return 0;

        HWND picbox = CreateWindowEx (
           0,                  
           szClassName,         
           &quot;Picturewindow&quot;,       
           WS_OVERLAPPEDWINDOW, 
           0,       
           0,       
           814,                 
           639,                 
           HWND_DESKTOP,       
           NULL,                
           hThisInstance,       
           NULL                            );

    ShowWindow (hwnd, nFunsterStil);
    ShowWindow (picbox, nFunsterStil);

    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
                TranslateMessage(&amp;messages);
                DispatchMessage(&amp;messages);
    }
    return messages.wParam;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/451753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451753</guid><dc:creator><![CDATA[Mr.Lover]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:34:35 GMT</pubDate></item><item><title><![CDATA[Reply to mein 2win spinnt on Wed, 04 Feb 2004 16:37:53 GMT]]></title><description><![CDATA[<p>Wenn du Hilfe willst solltest du schon etwas ausführlicher werden - aber mir scheint, du willst uns eh nur veralbern <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/451761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451761</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:37:53 GMT</pubDate></item><item><title><![CDATA[Reply to mein 2win spinnt on Wed, 04 Feb 2004 16:53:13 GMT]]></title><description><![CDATA[<p>wieso ich will euch nich veralbern nur das mein programm nie in die BoxProcedure (HWND hwnd, UINT, WPARAM, LPARAM);<br />
kommt *heul* <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/451779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451779</guid><dc:creator><![CDATA[Mr.Lover]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to mein 2win spinnt on Wed, 04 Feb 2004 16:58:29 GMT]]></title><description><![CDATA[<p>Sorry, das schien mir vorhin so <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="🙄"
    /><br />
Erstellst du denn auch noch irgendwo ein Fenster dieser 2. Fensterklasse?! (du verwendest bei beiden Fenstern szClassName als Fensterklasse)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451786</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to mein 2win spinnt on Wed, 04 Feb 2004 17:00:03 GMT]]></title><description><![CDATA[<p>juhu verdammter kopierungsfehler</p>
<p>großeß thx <a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/451797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451797</guid><dc:creator><![CDATA[Mr.Lover]]></dc:creator><pubDate>Wed, 04 Feb 2004 17:00:03 GMT</pubDate></item></channel></rss>