<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPReportPaintManager::DrawBitmap</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : CXTPReportPaintManager::DrawBitmap]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 14:25:39 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 10:24:12 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13758</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : Thank you, Mark!!! I recognize...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47109&amp;title=cxtpreportpaintmanagerdrawbitmap#47109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 25 March 2009 at 10:24am<br /><br />Thank you, Mark!!! I recognize the problem!<br><br>Here is a solution for me:<br><table width="99%"><tr><td><pre class="BBcode">static int stDrawBitmaps( CDC* pDC, CXTPReportControl* pControl, CRect rcColumn, int iIcon1, int iIcon2 )<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(pControl);<br>&nbsp;&nbsp;&nbsp; if (!pControl)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 0;<br><br>&nbsp;&nbsp;&nbsp; POINT ptIcon;<br><br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIcon* pIcon1 = pControl-&gt;GetImageManager()-&gt;GetImage( iIcon1, 0 );<br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIcon* pIcon2 = pControl-&gt;GetImageManager()-&gt;GetImage( iIcon2, 0 );<br><br>&nbsp;&nbsp;&nbsp; if ( !pIcon1 ) return 0;<br><br>&nbsp;&nbsp;&nbsp; CSize szImage( pIcon1-&gt;GetWidth(), pIcon1-&gt;GetHeight() );<br>&nbsp;&nbsp;&nbsp; CSize szColumn( rcColumn.Size() );<br><br>&nbsp;&nbsp;&nbsp; if ( szImage.cx &lt; szColumn.cx &amp;&amp; szImage.cy &lt; szColumn.cy &amp;&amp; pDC )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptIcon.x = rcColumn.left + 1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptIcon.y = rcColumn.top + (szColumn.cy - szImage.cy) /2;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pDC-&gt;IsPrinting())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CBitmap bmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bmp.CreateCompatibleBitmap( pDC, szImage.cx, szImage.cy );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCompatibleDC dcMem( NULL, &amp;bmp );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dcMem.FillSolidRect( 0, 0, szImage.cx, szImage.cy, pDC-&gt;GetBkColor() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIcon1-&gt;Draw( &amp;dcMem, CPoint( 0, 0 ), pIcon1-&gt;GetIcon() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pIcon2 != NULL ) pIcon2-&gt;Draw( &amp;dcMem, CPoint( 0, 0 ), pIcon2-&gt;GetIcon() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;BitBlt( ptIcon.x, ptIcon.y, szImage.cx, szImage.cy, &amp;dcMem, 0, 0, SRCCOPY );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIcon1-&gt;Draw( pDC, ptIcon, pIcon1-&gt;GetIcon() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pIcon2 != NULL ) pIcon2-&gt;Draw( pDC, ptIcon, pIcon2-&gt;GetIcon() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 1 + szImage.cx;<br>}</pre></td></tr></table><br>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 10:24:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47109&amp;title=cxtpreportpaintmanagerdrawbitmap#47109</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : Try Google it, e.g. http://hel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47101&amp;title=cxtpreportpaintmanagerdrawbitmap#47101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 25 March 2009 at 8:31am<br /><br />Try Google it, e.g. <a href="http://help.wugnet.com/office2/Transparent-image-prints-slightly-shaded-ftopict846706.html" target="_blank">http://help.wugnet.com/office2/Transparent-image-prints-slightly-shaded-ftopict846706.html</A>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 08:31:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47101&amp;title=cxtpreportpaintmanagerdrawbitmap#47101</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : Is not only I use program. I should...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47085&amp;title=cxtpreportpaintmanagerdrawbitmap#47085</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 25 March 2009 at 3:26am<br /><br />Is not only I use program. I should know about the problems of my users, preferably in advance.]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 03:26:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47085&amp;title=cxtpreportpaintmanagerdrawbitmap#47085</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : What is the difference for printer...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47084&amp;title=cxtpreportpaintmanagerdrawbitmap#47084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 25 March 2009 at 3:18am<br /><br /><img src="uploads/20090325_031004_1.bmp" height="16" width="48" border="0"><br><div style="text-align: left;" id="result_" dir="ltr">What is the difference for printer between: I put one image to another? Or just bring a ready picture?</div>The result of the same...<br><img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"> <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"> <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br>To avoid problems with printing, I must mix the pictures before painting on printing DC?<br>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 03:18:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47084&amp;title=cxtpreportpaintmanagerdrawbitmap#47084</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : I am not a specialist in printing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47079&amp;title=cxtpreportpaintmanagerdrawbitmap#47079</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 25 March 2009 at 3:02am<br /><br />I am not a specialist in printing and do not face problems with printing.<br>I see strange code and I think the developers did not just write it for fun.<br><div style="text-align: left;" id="result_" dir="ltr">I use the printer Samsung SCX-4300, and when I removed this block it prints well without problems.<br>Where can I read more information on this issue?<br></div>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 03:02:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47079&amp;title=cxtpreportpaintmanagerdrawbitmap#47079</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : I like your questions. Why don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47061&amp;title=cxtpreportpaintmanagerdrawbitmap#47061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 24 March 2009 at 8:22pm<br /><br /><P>I like your questions. Why don't try yourself and share your experience. It is easy... </P><P>&nbsp;</P><P>Btw - does ALL printers able to make nice transparent output? I am not sure...</P>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 20:22:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=47061&amp;title=cxtpreportpaintmanagerdrawbitmap#47061</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportPaintManager::DrawBitmap : I use Xtreme ToolkitPro v13.0.0,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=46989&amp;title=cxtpreportpaintmanagerdrawbitmap#46989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 13758<br /><strong>Posted:</strong> 23 March 2009 at 4:18am<br /><br />I use Xtreme ToolkitPro v13.0.0, static.<br><br><table width="99%"><tr><td><pre class="BBcode">int CXTPReportPaintManager::DrawBitmap(CDC* pDC, CXTPReportControl* pControl, CRect rcColumn, int iIcon)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(pControl);<br>&nbsp;&nbsp;&nbsp; if (!pControl)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 0;<br><br>&nbsp;&nbsp;&nbsp; POINT ptIcon;<br><br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIcon* pIcon = pControl-&gt;GetImageManager()-&gt;GetImage(iIcon, 0);<br><br>&nbsp;&nbsp;&nbsp; if (!pIcon)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 0;<br><br>&nbsp;&nbsp;&nbsp; CSize szImage(pIcon-&gt;GetWidth(), pIcon-&gt;GetHeight());<br>&nbsp;&nbsp;&nbsp; CSize szColumn(rcColumn.Size());<br><br>&nbsp;&nbsp;&nbsp; if (szImage.cx &lt; szColumn.cx &amp;&amp; szImage.cy &lt; szColumn.cy &amp;&amp; pDC)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptIcon.x = rcColumn.left + 1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ptIcon.y = rcColumn.top + (szColumn.cy - szImage.cy) /2;<br><br>&nbsp;<b>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pDC-&gt;IsPrinting())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CBitmap bmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bmp.CreateCompatibleBitmap(pDC, szImage.cx, szImage.cy);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCompatibleDC dcMem(NULL, &amp;bmp);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dcMem.FillSolidRect(0, 0, szImage.cx, szImage.cy, pDC-&gt;GetBkColor());<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIcon-&gt;Draw(&amp;dcMem, CPoint(0, 0), pIcon-&gt;GetIcon());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;BitBlt(ptIcon.x, ptIcon.y, szImage.cx, szImage.cy, &amp;dcMem, 0, 0, SRCCOPY);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;</b>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pIcon-&gt;Draw(pDC, ptIcon, pIcon-&gt;GetIcon());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 1 + szImage.cx;<br>}</pre></td></tr></table><br><br>For what if printing is drawn to another way? Drawn is not transparent :(<br>What do I lose if you remove this block? Or how to fix transparent?]]>
   </description>
   <pubDate>Mon, 23 Mar 2009 04:18:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13758&amp;PID=46989&amp;title=cxtpreportpaintmanagerdrawbitmap#46989</guid>
  </item> 
 </channel>
</rss>