<?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[Konsolen-Fenster]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>wenn ich auf Minimieren klicke, soll die win32-console minimiert werden und<br />
soll unten rechts, wo z.B. das Icon-Netzwerk bzw. die Uhrzeit steht, angezeigt<br />
werden. Gibt es da eine Loesung?</p>
<p>Gruss Olli.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136312/konsolen-fenster</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 06:57:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136312.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Feb 2006 07:55:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konsolen-Fenster on Thu, 09 Feb 2006 07:55:20 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>wenn ich auf Minimieren klicke, soll die win32-console minimiert werden und<br />
soll unten rechts, wo z.B. das Icon-Netzwerk bzw. die Uhrzeit steht, angezeigt<br />
werden. Gibt es da eine Loesung?</p>
<p>Gruss Olli.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/989836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/989836</guid><dc:creator><![CDATA[daa531]]></dc:creator><pubDate>Thu, 09 Feb 2006 07:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to Konsolen-Fenster on Fri, 10 Feb 2006 10:03:48 GMT]]></title><description><![CDATA[<p>Mit einer DOS-Konsole dürfte das etwas schwierig werden (normale Konsolenprogramme haben keine Ahnung davon, daß sie in einem Fenster ablaufen und daß es dort unten eine Taskleiste gibt).<br />
Du könntest es aber mal mit der (WinAPI) Funktion Shell_NotifyIcon probieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990714</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Fri, 10 Feb 2006 10:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to Konsolen-Fenster on Fri, 10 Feb 2006 10:53:24 GMT]]></title><description><![CDATA[<p>Auf jeden Fall wirst du ohne die WinAPI nicht weit hüpfen, ich werd dich mal ins WinAPI-Forum verschieben <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="🙂"
    /></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990753</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Fri, 10 Feb 2006 10:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to Konsolen-Fenster on Fri, 10 Feb 2006 10:54:09 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=2822" rel="nofollow">SideWinder</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=13" rel="nofollow">DOS und Win32-Konsole</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/990755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990755</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 10 Feb 2006 10:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Konsolen-Fenster on Fri, 10 Feb 2006 16:24:30 GMT]]></title><description><![CDATA[<p>Es waere erstmal möglich, aber wenn man mit der Maus auf das Icon<br />
bzw. ueberhaupt auf die Taskleiste zeigt, verschwindet das Icon.<br />
Naja ein versuch war es wert...</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;conio.h&gt;

HINSTANCE hIns;
HICON hIcon;

/* Ermitteln der HINSTANCE */
HINSTANCE GetMyHinstance(VOID)
{
  MEMORY_BASIC_INFORMATION mbi;

  VirtualQuery((PVOID)GetMyHinstance, &amp;mbi, sizeof(mbi));
  return((HINSTANCE)mbi.AllocationBase);
}

/* Icon in die Task-Leiste ein/austragen. */
void IconTask(HWND hwnd, BOOL flag)
{
  NOTIFYICONDATA tsym;

  ZeroMemory(&amp;tsym, sizeof (NOTIFYICONDATA));

  /* Icon setzen. */
  if (flag)
  {
    tsym.cbSize = sizeof (NOTIFYICONDATA);
    tsym.hWnd   = hwnd;
    tsym.uID    = 0;
    tsym.uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE;
    tsym.uCallbackMessage = 0;
    tsym.hIcon  = hIcon;
    strcpy (tsym.szTip, &quot;Win32-Konsole&quot;);
    Shell_NotifyIcon (NIM_ADD, &amp;tsym);
  }
    /* Icon entfernen. */
  else
    {
      tsym.cbSize = sizeof (NOTIFYICONDATA);
      tsym.hWnd   = hwnd;
      tsym.uID    = 0;
      tsym.uFlags = 0;
      Shell_NotifyIcon (NIM_DELETE, &amp;tsym);
    }

  return;
}

int main(void)
{
  /* Eigene Instanz holen. */
  hIns = GetMyHinstance();
  /* Icon laden. */
  hIcon = (HICON)LoadImage (hIns, &quot;icon1.ico&quot;, IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
  /* Icon in Task-Leiste setzen. */
  IconTask((HWND)hIns, TRUE);

  while(1)
  {
    /* Warten auf Tastenschlag. */
    if (kbhit())
      break;
  } 

  /* Icon aus der Task-Leiste entfernen. */
  IconTask((HWND)hIns, FALSE);
  return(FALSE);
}
</code></pre>
<p>Gruss Olli.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991041</guid><dc:creator><![CDATA[daa531]]></dc:creator><pubDate>Fri, 10 Feb 2006 16:24:30 GMT</pubDate></item></channel></rss>