<?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[ImageBox]]></title><description><![CDATA[<p>hi</p>
<p>ich würde gerne wissen wie man mit imageboxen arbeitet, die hilfe die ich habe hilft mir nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>hier mein ansatz (gekürzt).</p>
<pre><code class="language-cpp">static HWND img_Image1;
switch(message)
{
case WM_CREATE:
    img_Image1 = CreateWindow(&quot;image&quot;, &quot;Bild&quot;, WS_CHILD | WS_VISIBLE,
                                25,25,100,50, hwnd, (HMENU)1,
                                (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL);
case WM_COMMAND: //wenn ein Button (der erstellt wurde, ich habe Code nur gekürzt gedrückt wird dann ...
    img_Image1.set_Image(&quot;C:\\test.bmp&quot;);
case WM_DESTROY:
    PostQuitMessage(0);
    return 0;
}
</code></pre>
<p>das geht nicht weil set_Image gerne ein Objekt (nämlich image) haben will.<br />
wie mache ich so ein objekt und wie sage ich ihm dann welches bild es haben soll?</p>
<p>phillip</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/115487/imagebox</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 17:52:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/115487.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jul 2005 06:48:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ImageBox on Fri, 15 Jul 2005 06:48:48 GMT]]></title><description><![CDATA[<p>hi</p>
<p>ich würde gerne wissen wie man mit imageboxen arbeitet, die hilfe die ich habe hilft mir nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>hier mein ansatz (gekürzt).</p>
<pre><code class="language-cpp">static HWND img_Image1;
switch(message)
{
case WM_CREATE:
    img_Image1 = CreateWindow(&quot;image&quot;, &quot;Bild&quot;, WS_CHILD | WS_VISIBLE,
                                25,25,100,50, hwnd, (HMENU)1,
                                (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL);
case WM_COMMAND: //wenn ein Button (der erstellt wurde, ich habe Code nur gekürzt gedrückt wird dann ...
    img_Image1.set_Image(&quot;C:\\test.bmp&quot;);
case WM_DESTROY:
    PostQuitMessage(0);
    return 0;
}
</code></pre>
<p>das geht nicht weil set_Image gerne ein Objekt (nämlich image) haben will.<br />
wie mache ich so ein objekt und wie sage ich ihm dann welches bild es haben soll?</p>
<p>phillip</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831534</guid><dc:creator><![CDATA[Phillip]]></dc:creator><pubDate>Fri, 15 Jul 2005 06:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Fri, 15 Jul 2005 09:05:05 GMT]]></title><description><![CDATA[<p>Haben wir schon wieder April?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831640</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831640</guid><dc:creator><![CDATA[Gästchen]]></dc:creator><pubDate>Fri, 15 Jul 2005 09:05:05 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Fri, 15 Jul 2005 09:20:09 GMT]]></title><description><![CDATA[<p>Guck mal in der MSDN Lib nach LoadBitmap(...)</p>
<p>Dann musst de das ändern:</p>
<pre><code class="language-cpp">img_Image1.set_Image(LoadBitmap(...));
</code></pre>
<p>Denn ich vermute mal das set_Image ein HBITMAP haben will, oder?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831657</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 15 Jul 2005 09:20:09 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Fri, 15 Jul 2005 14:43:37 GMT]]></title><description><![CDATA[<p>Phillip schrieb:</p>
<blockquote>
<pre><code class="language-cpp">static HWND img_Image1;
</code></pre>
</blockquote>
<p>img_Image1 ist ein fensterhandle kein objekt somit kann es auch keine methode set_image besitzen.</p>
<p>Phillip schrieb:</p>
<blockquote>
<pre><code class="language-cpp">img_Image1 = CreateWindow(&quot;image&quot;, &quot;Bild&quot;, WS_CHILD | WS_VISIBLE,
                                25,25,100,50, hwnd, (HMENU)1,
                                (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL);
</code></pre>
</blockquote>
<p>was ist image für eine fensterklasse, selber erstellt???</p>
<p>welche hilfe hast du den? und versuche doch mal genau zu erklären was du machen möchtest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831824</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Fri, 15 Jul 2005 14:43:37 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Mon, 18 Jul 2005 05:03:38 GMT]]></title><description><![CDATA[<p>also, ich habe die hilfe von<br />
<a href="http://www.henkessoft.de/index.htm" rel="nofollow">http://www.henkessoft.de/index.htm</a><br />
(wie ich auf image gekommen bin weiß ich nicht mehr, glaube aber in der msdn gibt es ein paar einträge)</p>
<p>das mit dem static ist ebenfalls aus der hilfe ...<br />
und HWND img_image1 ist &quot;nur&quot; ein fensterhandle? kein object? ich mache doch createwindow ... naja ...</p>
<p>und was ich genau machen will:<br />
einfach auf knopfdruck (WM_COMMAND) ein bild in dem imagefeld anzeigen.</p>
<p>würde mich echt über ein bisschen quelltext mit schönen kommentare freuen! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>danke ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/833146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833146</guid><dc:creator><![CDATA[Phillip]]></dc:creator><pubDate>Mon, 18 Jul 2005 05:03:38 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Mon, 18 Jul 2005 05:49:50 GMT]]></title><description><![CDATA[<p>Die gesamte WinAPI besteht nur aus C-Funktionen.<br />
Da ist quasi nix objekt-orientiert. Dazu hat Microsoft den Wrapper &quot;MFC&quot; erfunden <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=";D"
      alt="😉"
    /></p>
<p>Es gibt kein &quot;Image&quot;-Objekt.<br />
Was es aber gibt ist eine Fensterklasse &quot;STATIC&quot;, der man das Window-Style SS_BITMAP geben kann und dann mittels SendMessage(fensterhandle,STM_SETIMAGE,...) eine Bitmap zuweisen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/833152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833152</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 18 Jul 2005 05:49:50 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Mon, 18 Jul 2005 05:53:07 GMT]]></title><description><![CDATA[<p>ich lese mir das tutor eh gerade nochmal durch, ich verstehe schon um einiges mehr was ich da mache.</p>
<p>aber kannst du mir bitte ein ganz kurzes beispiel prog mit kommentaren posten? wäre ganz lieb <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/833153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833153</guid><dc:creator><![CDATA[Phillip]]></dc:creator><pubDate>Mon, 18 Jul 2005 05:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Mon, 18 Jul 2005 09:02:05 GMT]]></title><description><![CDATA[<p>Hab ne C/C++ IDE vom Rechner verbannt, steige zur Zeit auf C# und .net mit Windows.Forms um.<br />
Evtl. noch interessant für dich wäre <a href="http://www.winprog.org/" rel="nofollow">http://www.winprog.org/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/833274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833274</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 18 Jul 2005 09:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to ImageBox on Mon, 18 Jul 2005 09:49:21 GMT]]></title><description><![CDATA[<p>ist gut, ich schaue mir das an. danke jedenfalls ...<br />
aber falls noch wer lust hat mir quelltext zu schicken -&gt; gerne <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>
]]></description><link>https://www.c-plusplus.net/forum/post/833343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833343</guid><dc:creator><![CDATA[Phillip]]></dc:creator><pubDate>Mon, 18 Jul 2005 09:49:21 GMT</pubDate></item></channel></rss>