<?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[Resourcen - auf DBGrid]]></title><description><![CDATA[<p>Ich hole eine BMP mit:</p>
<pre><code class="language-cpp">//aus Resourcen-Datei
Graphics::TBitmap * Img1 = new Graphics::TBitmap;
Img1-&gt;LoadFromResourceName(int(HInstance), &quot;Test&quot;);
Img1-&gt;Transparent = true;

//zeichen sie in ein DBGrid:
DBGrid1-&gt;Canvas-&gt;Draw(30,3,Img1) ;
   delete Img1;
</code></pre>
<p>Jetzt möchte ich die Bitmap in einen bestimmten Tabellentitel einfügen.<br />
Kann mir jemand einen Tip geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/12324/resourcen-auf-dbgrid</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 15:07:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/12324.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jun 2003 11:18:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Resourcen - auf DBGrid on Mon, 16 Jun 2003 11:18:00 GMT]]></title><description><![CDATA[<p>Ich hole eine BMP mit:</p>
<pre><code class="language-cpp">//aus Resourcen-Datei
Graphics::TBitmap * Img1 = new Graphics::TBitmap;
Img1-&gt;LoadFromResourceName(int(HInstance), &quot;Test&quot;);
Img1-&gt;Transparent = true;

//zeichen sie in ein DBGrid:
DBGrid1-&gt;Canvas-&gt;Draw(30,3,Img1) ;
   delete Img1;
</code></pre>
<p>Jetzt möchte ich die Bitmap in einen bestimmten Tabellentitel einfügen.<br />
Kann mir jemand einen Tip geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/65631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/65631</guid><dc:creator><![CDATA[merkur]]></dc:creator><pubDate>Mon, 16 Jun 2003 11:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Resourcen - auf DBGrid on Thu, 19 Jun 2003 11:38:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>so aus dem Bauch raus würde ich es mal mit DBImage versuchen.<br />
Ein DBGrid dürfte da nicht weiterhelfen.<br />
Selbst wenn du etwas in die Celle zeichnest, kann so weit ich weis, das DBGrid weder den Type Image noch BlobFild verwenden.</p>
<p>Gruß<br />
Mikel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/65632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/65632</guid><dc:creator><![CDATA[Mikel]]></dc:creator><pubDate>Thu, 19 Jun 2003 11:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to Resourcen - auf DBGrid on Wed, 17 Aug 2005 11:17:29 GMT]]></title><description><![CDATA[<p>doch doch,</p>
<p>du kannste so etwas in einem dbgrid zeichnen, ich tue es ja auch, habe mir einfach aus dem delphi forum den code gesucht, und eben selbst nachgeschrieben für c++, danach hatte ich z.b. sortierpfeile oben drin:</p>
<pre><code class="language-cpp">void __fastcall TfrmVerwaltung::dbMitgliederDrawColumnCell(TObject *Sender,
      const TRect &amp;Rect, int DataCol, TColumn *Column,
      TGridDrawState State)
{
    TDBGrid* dbg=dynamic_cast&lt;TDBGrid *&gt;(Sender);
    try
    {
        dbMitglieder-&gt;DefaultDrawColumnCell(Rect,DataCol,Column,State);
        if(DataCol == SortColumn &amp;&amp; SameColumn == 1)
        {
            dbg-&gt;Canvas-&gt;Draw(Rect.right - bmpSortUp-&gt;Width - 2 , 5 , bmpSortUp);
        }
        else if(DataCol == SortColumn &amp;&amp; SameColumn == 0)
        {
            dbg-&gt;Canvas-&gt;Draw(Rect.right - bmpSortUp-&gt;Width - 2 , 5 , bmpSortDown);
        }
    }
    catch(...)
    {}
}
</code></pre>
<p>die objekte leite ich aber in FormShow ab, und lösche Sie erst beim beenden meiner Anwendung.</p>
<p>Gruß Gerd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/854101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/854101</guid><dc:creator><![CDATA[gerd01]]></dc:creator><pubDate>Wed, 17 Aug 2005 11:17:29 GMT</pubDate></item></channel></rss>