<?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[PictureCtrl hinter ListCtrl setzen? Geht das??]]></title><description><![CDATA[<p>Hi Leutz!<br />
Mich quält grad folgendes Problem:<br />
In meiner Dialogbasierten Anwendung hab ich ein Picture Control auf dem ich ein Bitmap ausgebe. Darüber hab ich mehrere List Control. Ausehen soll es am Ende so, dass das Bild hinter den Listen sein soll, es soll also als Hintergrundbild dienen. Funktioniert aber nicht wirklich, es sieht so aus als wärs grad Zufall ob Liste oder Bild im Vordergrund steht. Nach einer Funktion wie SetBackground oder ähnliches hab ich bei CStatic nicht gefunden. Die Listen sind CListCtrlStyled von CodeGuru, da gibts was wie SetForegroundWindow, aber das führt nicht zum erhofften Ergebnis. Ähnliche Themen hier Forum hab ich per &quot;suchen&quot; Funktion auch nicht gefunden, zumindest keine die mir was helfen. Ich benutze .Net 2003, poste es aber trotzdem bei VC++ da es fast das gleiche ist und es hier am besten reinpasst, ist ja auch MFC.</p>
<p>hier ein paar Zeilen aus der *.cpp</p>
<pre><code class="language-cpp">void CMyDlg::SetDefault(void)
{
      //...nur ein Auschnitt, hier werden die Liesten erzeugt....
      for(int x = 0; lpszCols[x] != NULL; x++)
	{  
		lvColumn.pszText = lpszCols[x];
		lvColumn.cx +=35;

		m_cDest1_Loc0.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc1.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc2.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc3.InsertColumn(x,&amp;lvColumn);
		m_cDest2.InsertColumn(x,&amp;lvColumn);
		m_cDest3.InsertColumn(x,&amp;lvColumn);
	}
      //------------------------------------------------------------

      //Bild als Hintergrund
      m_cBitmap.LoadBitmap(IDB_PIC);
      m_cHandyPic.SetBitmap(m_cBitmap);
      m_cHandyPic.CenterWindow(0);

}
</code></pre>
<p>ich wär super dankbar wenn mir jemand schnell helfen könnte</p>
<p>Gruss<br />
Artur</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/49094/picturectrl-hinter-listctrl-setzen-geht-das</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:25:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/49094.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Sep 2003 06:54:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PictureCtrl hinter ListCtrl setzen? Geht das?? on Tue, 16 Sep 2003 06:54:10 GMT]]></title><description><![CDATA[<p>Hi Leutz!<br />
Mich quält grad folgendes Problem:<br />
In meiner Dialogbasierten Anwendung hab ich ein Picture Control auf dem ich ein Bitmap ausgebe. Darüber hab ich mehrere List Control. Ausehen soll es am Ende so, dass das Bild hinter den Listen sein soll, es soll also als Hintergrundbild dienen. Funktioniert aber nicht wirklich, es sieht so aus als wärs grad Zufall ob Liste oder Bild im Vordergrund steht. Nach einer Funktion wie SetBackground oder ähnliches hab ich bei CStatic nicht gefunden. Die Listen sind CListCtrlStyled von CodeGuru, da gibts was wie SetForegroundWindow, aber das führt nicht zum erhofften Ergebnis. Ähnliche Themen hier Forum hab ich per &quot;suchen&quot; Funktion auch nicht gefunden, zumindest keine die mir was helfen. Ich benutze .Net 2003, poste es aber trotzdem bei VC++ da es fast das gleiche ist und es hier am besten reinpasst, ist ja auch MFC.</p>
<p>hier ein paar Zeilen aus der *.cpp</p>
<pre><code class="language-cpp">void CMyDlg::SetDefault(void)
{
      //...nur ein Auschnitt, hier werden die Liesten erzeugt....
      for(int x = 0; lpszCols[x] != NULL; x++)
	{  
		lvColumn.pszText = lpszCols[x];
		lvColumn.cx +=35;

		m_cDest1_Loc0.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc1.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc2.InsertColumn(x,&amp;lvColumn);
		m_cDest1_Loc3.InsertColumn(x,&amp;lvColumn);
		m_cDest2.InsertColumn(x,&amp;lvColumn);
		m_cDest3.InsertColumn(x,&amp;lvColumn);
	}
      //------------------------------------------------------------

      //Bild als Hintergrund
      m_cBitmap.LoadBitmap(IDB_PIC);
      m_cHandyPic.SetBitmap(m_cBitmap);
      m_cHandyPic.CenterWindow(0);

}
</code></pre>
<p>ich wär super dankbar wenn mir jemand schnell helfen könnte</p>
<p>Gruss<br />
Artur</p>
]]></description><link>https://www.c-plusplus.net/forum/post/354350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/354350</guid><dc:creator><![CDATA[feisX]]></dc:creator><pubDate>Tue, 16 Sep 2003 06:54:10 GMT</pubDate></item><item><title><![CDATA[Reply to PictureCtrl hinter ListCtrl setzen? Geht das?? on Tue, 16 Sep 2003 19:33:48 GMT]]></title><description><![CDATA[<p>geht nicht so einfach, aber seit IE4 unterstützen List View Controls LVM_SETBKIMAGE zum setzen eines Hintergrundbildes....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/354920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/354920</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Tue, 16 Sep 2003 19:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to PictureCtrl hinter ListCtrl setzen? Geht das?? on Wed, 17 Sep 2003 06:48:11 GMT]]></title><description><![CDATA[<p>mm, versteh ich nicht ganz.... ich will kein bild in eine list sondern in ein picturectrl reintun, das picturectl soll hinter dem listctrl stehen. und was ist IE4? InternetExlplorer4 oder wie? Was hat das mit C++ zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/355036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/355036</guid><dc:creator><![CDATA[feisX]]></dc:creator><pubDate>Wed, 17 Sep 2003 06:48:11 GMT</pubDate></item><item><title><![CDATA[Reply to PictureCtrl hinter ListCtrl setzen? Geht das?? on Wed, 17 Sep 2003 19:36:12 GMT]]></title><description><![CDATA[<p>Du willst doch ein Hintergrundbild für die Liste?</p>
<p>IE4 == Internet Explorer 4, ganz richtig. Mit C++ hat das nixht zu tun, aber das Win32 List View Control unterstützt ein Hintergrundbild auf allen Systemen wo IE4 oder besser installiert ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/355696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/355696</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Wed, 17 Sep 2003 19:36:12 GMT</pubDate></item></channel></rss>