<?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[Window immer im Vordergrund]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>wie kann ich meinen Dialog so einstellen, dass er bei aktivieren eines Menüpunktes immer im Vordergrund bleibt?<br />
Und wenn wir schonbeim Menü isnd. Wie kann ich es handeln, das ich das System-Menuü von meinem Dialog erweitere? geht das überhaupt? Und wenn ja wie? Ich mach das ganze ohne das Studio, sondern nur per Hand.<br />
Nur so als Info.<br />
Dann hätte ich nch ne Frage: Wie kann ich das Tray-Menü per Befehl aktualisieren lassen?</p>
<p>Gruß,</p>
<p>Stalin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/52430/window-immer-im-vordergrund</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 00:19:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52430.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Oct 2003 08:33:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Window immer im Vordergrund on Mon, 20 Oct 2003 08:33:16 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>wie kann ich meinen Dialog so einstellen, dass er bei aktivieren eines Menüpunktes immer im Vordergrund bleibt?<br />
Und wenn wir schonbeim Menü isnd. Wie kann ich es handeln, das ich das System-Menuü von meinem Dialog erweitere? geht das überhaupt? Und wenn ja wie? Ich mach das ganze ohne das Studio, sondern nur per Hand.<br />
Nur so als Info.<br />
Dann hätte ich nch ne Frage: Wie kann ich das Tray-Menü per Befehl aktualisieren lassen?</p>
<p>Gruß,</p>
<p>Stalin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/375581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375581</guid><dc:creator><![CDATA[Stalin]]></dc:creator><pubDate>Mon, 20 Oct 2003 08:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to Window immer im Vordergrund on Mon, 20 Oct 2003 11:00:55 GMT]]></title><description><![CDATA[<p>Immer im Vordergrund:</p>
<pre><code class="language-cpp">SetWindowPos(&amp;wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); //Aktivieren
SetWindowPos(&amp;wndNoTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE); //Deaktivieren
</code></pre>
<p>Systemmenü:</p>
<pre><code class="language-cpp">CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu-&gt;AppendMenu(MF_SEPARATOR);
pSysMenu-&gt;AppendMenu(MF_STRING, 4000, &quot;Test&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/375680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375680</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Mon, 20 Oct 2003 11:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to Window immer im Vordergrund on Mon, 20 Oct 2003 11:52:07 GMT]]></title><description><![CDATA[<p>Und wie fang ich es ab, wenn man auf das SystemMenü clickt?<br />
Wie kann ich den Eitrag so gestalten, dass er gechect ist wenn ich ihn anclicke bzw. nicht mehr gecheckt bei weiterem clicken?</p>
<p>Gruß,</p>
<p>Stalin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/375724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375724</guid><dc:creator><![CDATA[Stalin]]></dc:creator><pubDate>Mon, 20 Oct 2003 11:52:07 GMT</pubDate></item><item><title><![CDATA[Reply to Window immer im Vordergrund on Mon, 20 Oct 2003 12:14:51 GMT]]></title><description><![CDATA[<p>Also wenn du z.b einen Menuitem so hinzugefügt hast:</p>
<pre><code class="language-cpp">CMenu *sysMenu = GetSystemMenu(FALSE);
sysMenu-&gt;AppendMenu(MF_STRING,4000,&quot;Test&quot;);
</code></pre>
<p>kannst du in der OnSysCommand die nID abfragen und so rausbekommen ob dein Menuitem angeklick wurde:</p>
<pre><code class="language-cpp">if (nID == 4000) //Selbe Id wie bei AppendMenu
{
	CMenu *sysMenu = GetSystemMenu(FALSE);
	static BOOL check = FALSE; 
	if (check == FALSE)
		sysMenu-&gt;CheckMenuItem(4000,MF_CHECKED);
	else
		sysMenu-&gt;CheckMenuItem(4000,MF_UNCHECKED);
	check = !check;  
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/375737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375737</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Mon, 20 Oct 2003 12:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Window immer im Vordergrund on Mon, 20 Oct 2003 13:01:57 GMT]]></title><description><![CDATA[<p>Ok und wie trage ich das ganze in die MessageMap ein?<br />
Damit meine OnSysCommand aufgerufen wird? Oder geschieht dies automatisch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/375776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375776</guid><dc:creator><![CDATA[Stalin]]></dc:creator><pubDate>Mon, 20 Oct 2003 13:01:57 GMT</pubDate></item></channel></rss>