<?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[Alle Formulare&#x2F;Programm beenden]]></title><description><![CDATA[<p>Ich habe in meinem Programm mehrere Formulare und möchte nun eine art Programm beenden Button einbinden. Gibt es einen Befehl womit ich das ganze Programm schließen kann und ich nicht die einzelnen Formulare beenden muss???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162499/alle-formulare-programm-beenden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 21:37:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162499.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Oct 2006 10:10:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 10:10:31 GMT]]></title><description><![CDATA[<p>Ich habe in meinem Programm mehrere Formulare und möchte nun eine art Programm beenden Button einbinden. Gibt es einen Befehl womit ich das ganze Programm schließen kann und ich nicht die einzelnen Formulare beenden muss???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157521</guid><dc:creator><![CDATA[carisma83]]></dc:creator><pubDate>Thu, 19 Oct 2006 10:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 10:11:41 GMT]]></title><description><![CDATA[<p>Hehe... Wie wärs mit exit(0);</p>
<pre><code class="language-cpp">Application Terminate();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1157523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157523</guid><dc:creator><![CDATA[GCoder]]></dc:creator><pubDate>Thu, 19 Oct 2006 10:11:41 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 10:54:45 GMT]]></title><description><![CDATA[<p>Super, geht wirklich prima. Und wie ist der Befehl um alles in der Taskleiste verschwinden zu lassen? Wenn ich WindowsState=wsMinimized mache dann befindet sich das minimierte Fenster immernoch auf dem Desktop, das ist nicht ganz was ich will.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157552</guid><dc:creator><![CDATA[carisma83]]></dc:creator><pubDate>Thu, 19 Oct 2006 10:54:45 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 11:15:30 GMT]]></title><description><![CDATA[<p>DWORD dwExStyle=GetWindowLong(Application-&gt;Handle,GWL_EXSTYLE);<br />
dwExStyle |= WS_EX_TOOLWINDOW;<br />
SetWindowLong(Application-&gt;Handle,GWL_EXSTYLE,dwExStyle);</p>
<p>*dank an fatman <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157570</guid><dc:creator><![CDATA[heckticker]]></dc:creator><pubDate>Thu, 19 Oct 2006 11:15:30 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 11:46:40 GMT]]></title><description><![CDATA[<p>Da Passiert bei mir nichts, kommt auch keine Fehlermeldung. Könnte das vielleicht an meiner BorderStyle Einstellung der Form liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157596</guid><dc:creator><![CDATA[carisma83]]></dc:creator><pubDate>Thu, 19 Oct 2006 11:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 12:11:55 GMT]]></title><description><![CDATA[<p>Hier der komplette Artike (ich hoffe das ist keine Copyrightverletzung, stammt von den ehemaligen BCBDEV-Seiten, Howe's FAQs)</p>
<blockquote>
<p>Q: Hide the application's taskbar icon</p>
<p>Answer:<br />
First, let's get some terminology straight. The system tray is the little box in the corner of the task bar where programs can display small icons. Some examples include the SysAgent icon, and the Outlook icon when you get new mail. The taskbar is the toolbar that stretches across the screen. This is where program icons are located. To hide a program's taskbar icon, you call the ShowWindow function and pass the Application-&gt;Handle window handle.</p>
<p>ShowWindow(Application-&gt;Handle, SW_HIDE);</p>
<p>To make the taskbar icon re-appear, simply change SW_HIDE to SW_SHOW.</p>
<p>ShowWindow(Application-&gt;Handle, SW_SHOW);</p>
<p>Note: You can hide the main form by setting its Visible property to false.</p>
<p>Note: Hiding the form's taskbar icon with ShowWindow is not permanent. Certain actions will cause the taskbar icon to reappear. You can remove a program's taskbar icon and prevent it from ever appearing again by making the hidden application window a tool window. Tool windows never have a taskbar icon. Making the application window a tool window has the side effect of removing the program from the list of programs that appear when the user presses ALT-TAB. You can make the application window a tool window by calling the API GetWindowLong and SetWindowLong functions.</p>
<pre><code class="language-cpp">WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
    DWORD dwExStyle = GetWindowLong(Application-&gt;Handle, GWL_EXSTYLE);
    dwExStyle |= WS_EX_TOOLWINDOW;
    SetWindowLong(Application-&gt;Handle, GWL_EXSTYLE, dwExStyle);

    try
    {
         Application-&gt;Initialize();
         Application-&gt;CreateForm(__classid(TForm1), &amp;Form1);
         Application-&gt;Run();
    }
    catch (Exception &amp;exception)
    {
         Application-&gt;ShowException(&amp;exception);
    }
    return 0;
</code></pre>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1157610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157610</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 19 Oct 2006 12:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to Alle Formulare&#x2F;Programm beenden on Thu, 19 Oct 2006 15:45:23 GMT]]></title><description><![CDATA[<p>carisma83 schrieb:</p>
<blockquote>
<p>Und wie ist der Befehl um alles in der Taskleiste verschwinden zu lassen?</p>
</blockquote>
<p><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="🙂"
    /> Hallo,</p>
<p>falls ich das richtig verstanden habe, wolltest du wissen wie du die Anwedung minimieren kannst ???</p>
<p>Application-&gt;Minimize();</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157770</guid><dc:creator><![CDATA[lohfie]]></dc:creator><pubDate>Thu, 19 Oct 2006 15:45:23 GMT</pubDate></item></channel></rss>