<?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[STM_SETIMAGE will net]]></title><description><![CDATA[<p>Ich arbeite gerade an einem dialogbasierendem Programm, das eine MFA 8085 simulieren soll. Es soll eine Reihe von 8 LED's angezeigt werden, dazu verwende ich 2 Typen von Bitmaps &quot;LED AN&quot; und &quot;LED AUS&quot;, eigentlich logisch. Nun verwende ich um die 8 Bmp's anzuzeigen PictureControls und um zwischen &quot;LED AN&quot; und &quot;LED AUS&quot; zu toggle sende ich<br />
&quot;SendMessage(Item, STM_SETIMAGE, IMAGE_BITMAP, LoadBitmap(...));&quot;<br />
Wenn ich nun mit dem Simulator ein Assembler Programm ablaufen lasse, dass oft und häufig die LED Bmp's toggle'n lässt hängt sich das Programm nach einiger Laufzeit bald auf (WinXP). Ich hab keine Ahnung woran's liegt. Vielleicht kennt ja jemand eine Lösung oder eine Alternative.<br />
THX</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/75154/stm_setimage-will-net</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 05:38:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75154.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 May 2004 18:38:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to STM_SETIMAGE will net on Thu, 27 May 2004 18:38:57 GMT]]></title><description><![CDATA[<p>Ich arbeite gerade an einem dialogbasierendem Programm, das eine MFA 8085 simulieren soll. Es soll eine Reihe von 8 LED's angezeigt werden, dazu verwende ich 2 Typen von Bitmaps &quot;LED AN&quot; und &quot;LED AUS&quot;, eigentlich logisch. Nun verwende ich um die 8 Bmp's anzuzeigen PictureControls und um zwischen &quot;LED AN&quot; und &quot;LED AUS&quot; zu toggle sende ich<br />
&quot;SendMessage(Item, STM_SETIMAGE, IMAGE_BITMAP, LoadBitmap(...));&quot;<br />
Wenn ich nun mit dem Simulator ein Assembler Programm ablaufen lasse, dass oft und häufig die LED Bmp's toggle'n lässt hängt sich das Programm nach einiger Laufzeit bald auf (WinXP). Ich hab keine Ahnung woran's liegt. Vielleicht kennt ja jemand eine Lösung oder eine Alternative.<br />
THX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/528571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528571</guid><dc:creator><![CDATA[gude]]></dc:creator><pubDate>Thu, 27 May 2004 18:38:57 GMT</pubDate></item><item><title><![CDATA[Reply to STM_SETIMAGE will net on Fri, 28 May 2004 07:55:59 GMT]]></title><description><![CDATA[<p>du lädst ständig die bitmap's on und off.<br />
lade sie doch nur einmal und übergibt dann das handle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/528762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/528762</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Fri, 28 May 2004 07:55:59 GMT</pubDate></item><item><title><![CDATA[Reply to STM_SETIMAGE will net on Thu, 03 Jun 2004 04:21:36 GMT]]></title><description><![CDATA[<p>wie meinst du das, nur einmal laden und dann handle übergeben?<br />
(kleines Code-Bsp wäre ganz nett)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/532084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532084</guid><dc:creator><![CDATA[gude]]></dc:creator><pubDate>Thu, 03 Jun 2004 04:21:36 GMT</pubDate></item><item><title><![CDATA[Reply to STM_SETIMAGE will net on Thu, 03 Jun 2004 07:26:12 GMT]]></title><description><![CDATA[<p>ich weis zwar nicht wie dein prog aussieht, aber ich versuchs</p>
<pre><code class="language-cpp">// die beiden handle static in der wndproc oder global oder sonst irgendwie
// zugänglich sein
HANDLE hOn;
HANDLE hOff;

// beim initialisieren deines progs bitmaps laden
// zb in WM_CREATE
hOn = LoadImage(...);  // led an laden
hOff = LoadImage(...);  // led aus laden

// deine &quot;switchfunktion&quot;
if(bOn)
    SendMessage(Item, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hOn);
else
    SendMessage(Item, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hOff);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/532121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532121</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 03 Jun 2004 07:26:12 GMT</pubDate></item><item><title><![CDATA[Reply to STM_SETIMAGE will net on Thu, 03 Jun 2004 15:10:25 GMT]]></title><description><![CDATA[<p><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="😉"
    /> , hihi jo des wór die lösung vom problem, danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/532356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/532356</guid><dc:creator><![CDATA[gude]]></dc:creator><pubDate>Thu, 03 Jun 2004 15:10:25 GMT</pubDate></item></channel></rss>