<?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[Static Fenster mit Bitmap (Bitmap löschen)]]></title><description><![CDATA[<p>Hallo,<br />
ich habe mir ein static control fenster erstellt, in dem ich mir bitmaps anzeigen lassen kann. das klappt bisher sehr gut. nur kann ich die bitmaps nicht wechseln. das heist, das bitmap das ich zuerst in die static control gesetzt habe, verschwindet entweder, aber das neue wird nicht angezeigt, oder aber ich kann nur das erste wieder sichtbar machen.</p>
<p>meine frage daher, wie kann ich ein bitmap löschen das ich in einer static control mittels sendmessage und STM_SETIMAGE,IMAGE_BITMAP,hBitmap gesetzt habe.<br />
um darauf wieder ein neues in der gleichen control anzuzeigen.</p>
<p>so erstell ich die control</p>
<pre><code>DWORD dwStyle = WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZECONTROL ;

HWND hWndStatic = CreateWindow(&quot;STATIC&quot;,
                                &quot;&quot;,
                                dwStyle, 
                                rc-&gt;left,
                                rc-&gt;top,
                                rc-&gt;Width(),
                                rc-&gt;Height(), 
                                hWndParent,
                                (HMENU)uiCtrlID,
                                hInstance,NULL);
</code></pre>
<p>das bitmap setze ich dann mit</p>
<pre><code>SendMessage(hWndStatic,STM_SETIMAGE,(WPARAM)IMAGE_BITMAP,(LPARAM)hBitmap);
</code></pre>
<p>jemand eine idee wie das geht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/230645/static-fenster-mit-bitmap-bitmap-löschen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 01:03:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/230645.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Dec 2008 11:30:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Static Fenster mit Bitmap (Bitmap löschen) on Tue, 30 Dec 2008 11:30:17 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe mir ein static control fenster erstellt, in dem ich mir bitmaps anzeigen lassen kann. das klappt bisher sehr gut. nur kann ich die bitmaps nicht wechseln. das heist, das bitmap das ich zuerst in die static control gesetzt habe, verschwindet entweder, aber das neue wird nicht angezeigt, oder aber ich kann nur das erste wieder sichtbar machen.</p>
<p>meine frage daher, wie kann ich ein bitmap löschen das ich in einer static control mittels sendmessage und STM_SETIMAGE,IMAGE_BITMAP,hBitmap gesetzt habe.<br />
um darauf wieder ein neues in der gleichen control anzuzeigen.</p>
<p>so erstell ich die control</p>
<pre><code>DWORD dwStyle = WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZECONTROL ;

HWND hWndStatic = CreateWindow(&quot;STATIC&quot;,
                                &quot;&quot;,
                                dwStyle, 
                                rc-&gt;left,
                                rc-&gt;top,
                                rc-&gt;Width(),
                                rc-&gt;Height(), 
                                hWndParent,
                                (HMENU)uiCtrlID,
                                hInstance,NULL);
</code></pre>
<p>das bitmap setze ich dann mit</p>
<pre><code>SendMessage(hWndStatic,STM_SETIMAGE,(WPARAM)IMAGE_BITMAP,(LPARAM)hBitmap);
</code></pre>
<p>jemand eine idee wie das geht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1637215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1637215</guid><dc:creator><![CDATA[*rT*f*Ct]]></dc:creator><pubDate>Tue, 30 Dec 2008 11:30:17 GMT</pubDate></item></channel></rss>