<?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[Bild in Dialog anzeigen - statisch - nicht verändern]]></title><description><![CDATA[<p>Hallo zusammen,<br />
um meinen Dialog zu verschönern möchte ich einfach ein Logo meiner Uni einfügen, dass die ganze Zeit stehen bleiben soll.<br />
Ob jpg oder bmp ist völlig egal. Hauptsache es geht einfach und schnell.</p>
<p>Vielen Dank für die Hilfe.<br />
Isa</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147793/bild-in-dialog-anzeigen-statisch-nicht-verändern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 12:28:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147793.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 May 2006 07:29:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 07:29:08 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
um meinen Dialog zu verschönern möchte ich einfach ein Logo meiner Uni einfügen, dass die ganze Zeit stehen bleiben soll.<br />
Ob jpg oder bmp ist völlig egal. Hauptsache es geht einfach und schnell.</p>
<p>Vielen Dank für die Hilfe.<br />
Isa</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061368</guid><dc:creator><![CDATA[firstTry]]></dc:creator><pubDate>Sat, 20 May 2006 07:29:08 GMT</pubDate></item><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 09:20:29 GMT]]></title><description><![CDATA[<p>Dan füg doch einfach und schnell ein Bild in deine Dialogressource ein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061418</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Sat, 20 May 2006 09:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 09:31:42 GMT]]></title><description><![CDATA[<p>Höö?!! Wenn du nur bsw oben am Rand nen kleines Logo haben willst, dann würde ich mal sagen du setzt ein PictureCtrl auf den Dialog und gibst als Param einfach mal ganz cool dein Img an... Aja und wenn das net geht gib dem picturectrl ne variable und ruft über die dann SetImage oder wie die Funk noch gleich hieß auf... s. MSDN Library</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061424</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 20 May 2006 09:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 11:00:03 GMT]]></title><description><![CDATA[<p>generell: <a href="http://www.henkessoft.de/C++/MFC/mfc_einsteigerbuch_kapitel4.htm" rel="nofollow">http://www.henkessoft.de/C++/MFC/mfc_einsteigerbuch_kapitel4.htm</a><br />
Für Buttons: empfehle ich FooButton von <a href="http://www.codeproject.com" rel="nofollow">www.codeproject.com</a><br />
für jpg, ... GDI+</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061484</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sat, 20 May 2006 11:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 12:27:02 GMT]]></title><description><![CDATA[<p>Bis ja nen Toller Hengst -.- Es bringt dir nix auf eine Button Klasse zu verlinken, wenn er nur ein Image darstellen will... und warum nicht einfach ein picture ctrl nehmen? Warum von Hand machen? naja -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061558</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 20 May 2006 12:27:02 GMT</pubDate></item><item><title><![CDATA[Reply to Bild in Dialog anzeigen - statisch - nicht verändern on Sat, 20 May 2006 15:21:03 GMT]]></title><description><![CDATA[<p>Klar geht das einfach, wurde bereits erwähnt. Ich empfehle dennoch FooButton, weil meistens mehr dazu kommt (Text, Anklicken, JPG, ...).<br />
Die Klasse FooButton - in der Member-Funktion DrawBitmap(...) so abgeändert, dass diese nicht nur aus Ressourcen, sondern auch von extern BMP, JPG, TIF ... laden kann - ist ein variables Tool. Man kann FooButton auch statisch schalten, so dass die visuelle Button-Fkt. (Bild verschieben) nicht wirkt.</p>
<p>Hier ein Ausschnitt der von mir vorgeschlagenen Änderungen in FooButton::drawBitmap(...): (gdi+ einbinden wegen &quot;Bitmap&quot;)</p>
<pre><code class="language-cpp">//! Draws the button's bitmap
void FooButton::drawBitmap
  (CDC* pDC,
   LPDRAWITEMSTRUCT lpDrawItemStruct,
   int&amp; nBitmapRightEdge)
{
  ASSERT (pDC != NULL);
  ASSERT (lpDrawItemStruct != NULL);

  // Load bitmap - return if unable
  nBitmapRightEdge = 0;
  if (m_BitmapFile == &quot;&quot;)
     return;

  HBITMAP hBitmap;
  Bitmap b (m_BitmapFile.AllocSysString()); // GDI+ (von extern JPG, ...)
  b.GetHBITMAP(Color::White, &amp;hBitmap);

  // So kann man nur(!) BMP extern laden: 
  // HBITMAP hBitmap = (HBITMAP) ::LoadImage (NULL, m_BitmapFile, IMAGE_BITMAP, 0, 0,LR_CREATEDIBSECTION | LR_DEFAULTSIZE | LR_LOADFROMFILE );

  // So kann man BMP als Ressource laden:    
  // HBITMAP hBitmap = ::LoadBitmap (AfxGetResourceHandle(), MAKEINTRESOURCE (m_nBitmapId));
//...
</code></pre>
<p>Nur ein gut gemeinter Tipp. <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="😉"
    /></p>
<p>Einfach mal anschauen:<br />
<a href="http://www.codeproject.com/buttonctrl/FooButton.asp" rel="nofollow">http://www.codeproject.com/buttonctrl/FooButton.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061671</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sat, 20 May 2006 15:21:03 GMT</pubDate></item></channel></rss>