<?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 : 32bit png display using CXTPSkinImage</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : 32bit png display using CXTPSkinImage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 22:38:58 +0000</pubDate>
  <lastBuildDate>Mon, 28 Apr 2008 00:43:49 +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=10354</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[32bit png display using CXTPSkinImage : As I worte better use some XTPImageManager....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34284&amp;title=32bit-png-display-using-cxtpskinimage#34284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10354<br /><strong>Posted:</strong> 28 April 2008 at 12:43am<br /><br />As I worte better use some XTPImageManager. You can create some instance for your buttons:<DIV>&nbsp;</DIV><DIV>m_pImageManager = new CXTPImageManager();</DIV><DIV>m_pImageManager-&gt;SetIcons(...);</DIV><DIV>&nbsp;</DIV><DIV>...</DIV><DIV>m_pImageManager()-&gt;GetImage(x)-&gt;Draw(...);</DIV>]]>
   </description>
   <pubDate>Mon, 28 Apr 2008 00:43:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34284&amp;title=32bit-png-display-using-cxtpskinimage#34284</guid>
  </item> 
  <item>
   <title><![CDATA[32bit png display using CXTPSkinImage : It works good Thanks a lot.  Could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34275&amp;title=32bit-png-display-using-cxtpskinimage#34275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4102">winrive</a><br /><strong>Subject:</strong> 10354<br /><strong>Posted:</strong> 27 April 2008 at 7:43pm<br /><br />It works good<DIV>Thanks a lot.</DIV><DIV>&nbsp;</DIV><DIV>Could you let me know another better apporach for dispalying alpha png for background?</DIV>]]>
   </description>
   <pubDate>Sun, 27 Apr 2008 19:43:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34275&amp;title=32bit-png-display-using-cxtpskinimage#34275</guid>
  </item> 
  <item>
   <title><![CDATA[32bit png display using CXTPSkinImage : Use ImageManager instead.  X...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34221&amp;title=32bit-png-display-using-cxtpskinimage#34221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10354<br /><strong>Posted:</strong> 25 April 2008 at 6:20am<br /><br /><P>Use ImageManager instead.</P><DIV>&nbsp;</DIV><DIV>XTPImageManager()-&gt;SetIcons(....);</DIV><DIV>XTPImageManager()-&gt;GetIcon(1)-&gt;Draw(...);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>or Premultiply bitmap for SkinImage:</DIV><DIV>&nbsp;</DIV><DIV>hBitmap = CXTPImageManagerIcon::PreMultiplyAlphaBitmap(hBmp, &amp;m_bAlpha);</DIV><DIV>DeleteObject(hBmp);<BR></DIV>]]>
   </description>
   <pubDate>Fri, 25 Apr 2008 06:20:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34221&amp;title=32bit-png-display-using-cxtpskinimage#34221</guid>
  </item> 
  <item>
   <title><![CDATA[32bit png display using CXTPSkinImage :  I want to display background...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34216&amp;title=32bit-png-display-using-cxtpskinimage#34216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4102">winrive</a><br /><strong>Subject:</strong> 10354<br /><strong>Posted:</strong> 25 April 2008 at 1:19am<br /><br /><DIV><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">I want to display background of control(or window) using CXTPSkinImage. <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">below is my code.<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">CXTPSkinImage</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA"><SPAN style="mso-tab-count: 1">&nbsp; </SPAN><SPAN style="COLOR: #050005">m_BKImage</SPAN>;<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">BOOL</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA"> <SPAN style="COLOR: #050005">bIsAlpha</SPAN> = <SPAN style="COLOR: #050005">TRUE</SPAN>;<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">HBITMAP</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA"> <SPAN style="COLOR: #050005">hBitmap</SPAN> = <SPAN style="COLOR: #050005">CXTPImageManagerIcon</SPAN>::<SPAN style="COLOR: #050005">LoadBitmapFromResource</SPAN>( <SPAN style="COLOR: #050005">MAKEINTRESOURCE</SPAN>(<SPAN style="COLOR: #050005">nResourceID</SPAN>), &amp;<SPAN style="COLOR: #050005">bIsAlpha</SPAN> );<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">m_BKImage</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">.<SPAN style="COLOR: #050005">SetBitmap</SPAN>( <SPAN style="COLOR: #050005">hBitmap</SPAN>, <SPAN style="COLOR: #050005">bIsAlpha</SPAN> );<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">CXTPClientRect</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA"> <SPAN style="COLOR: #050005">rcClient</SPAN>(<SPAN style="COLOR: blue">this</SPAN>);<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">dc</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">.<SPAN style="COLOR: #050005">FillSolidRect</SPAN>( &amp;<SPAN style="COLOR: #050005">rcClient</SPAN>, <SPAN style="COLOR: #050005">RGB</SPAN>(0,0,</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-fareast-: KO; mso-bidi-: AR-SA">0</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">) );<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">CSize</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA"> <SPAN style="COLOR: #050005">sizeImage</SPAN> = <SPAN style="COLOR: #050005">CSize</SPAN>( <SPAN style="COLOR: #050005">m_BKImage</SPAN>.<SPAN style="COLOR: #050005">GetWidth</SPAN>(), <SPAN style="COLOR: #050005">m_BKImage</SPAN>.<SPAN style="COLOR: #050005">GetHeight</SPAN>() );<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-paginati&#111;n: n&#111;ne; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><FONT size=2><SPAN lang=EN-US style="COLOR: #050005; FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">m_BKImage</SPAN><SPAN lang=EN-US style="FONT-FAMILY: &#46027;&#50880;&#52404;; mso-bidi-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-no-proof: yes; mso-bidi-: AR-SA">.<SPAN style="COLOR: #050005">DrawImage</SPAN>( &amp;<SPAN style="COLOR: #050005">dc</SPAN>, <SPAN style="COLOR: #050005">rcClient</SPAN>, <SPAN style="COLOR: #050005">CRect</SPAN>(0,0,<SPAN style="COLOR: #050005">sizeImage</SPAN>.<SPAN style="COLOR: #050005">cx</SPAN>,<SPAN style="COLOR: #050005">sizeImage</SPAN>.<SPAN style="COLOR: #050005">cy</SPAN>), <SPAN style="COLOR: #050005">CRect</SPAN>(0,0,0,0), <SPAN style="COLOR: #050005">ST_TRUESIZE</SPAN>, <SPAN style="COLOR: #050005">TRUE</SPAN> );<O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">but i got strange result<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">some parts of image are strange( see white area in b) )<O:P></O:P></SPAN></P></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080425_011337_Image2.bmp" border="0"></DIV><DIV>a) in photoshop</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20080425_011417_Image1.bmp" border="0"></DIV><DIV>b) result</DIV><DIV>&nbsp;</DIV><DIV><P style="MARGIN: 10pt 0cm" ="Ms&#111;normal"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: &#44404;&#47548;; mso-bidi-font-family: &#44404;&#47548;; mso-ansi-: EN; mso-fareast-: KO; mso-bidi-: AR-SA">What is wrong?</P><DIV>Here is png file</DIV><DIV></SPAN><a href="https://forum.codejock.com/uploads/20080425_011633_btn_play06_n.zip" target="_blank">uploads/20080425_011633_btn_play06_n.zip</A></DIV></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Apr 2008 01:19:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10354&amp;PID=34216&amp;title=32bit-png-display-using-cxtpskinimage#34216</guid>
  </item> 
 </channel>
</rss>