<?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 : Draw transparent toolbar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Draw transparent toolbar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:44:07 +0000</pubDate>
  <lastBuildDate>Wed, 24 Aug 2005 00:00:40 +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=2565</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[Draw transparent toolbar? : Hi, Standard controls and CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=8309&amp;title=draw-transparent-toolbar#8309</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 24 August 2005 at 12:00am<br /><br /><P>Hi,</P><P>Standard controls and CommandBars too supports <strong>WM_PRINT message.</strong></P><P><strong>instead </strong>bRes = (BOOL) pParent-&gt;SendMessage (WM_ERASEBKGND, (WPARAM)pDC-&gt;m_hDC);</P><P>try</P><P>pParent-&gt;Print(pDC, <strong>PRF_CLIENT);</strong></P>]]>
   </description>
   <pubDate>Wed, 24 Aug 2005 00:00:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=8309&amp;title=draw-transparent-toolbar#8309</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : Sorry for bring this thread back. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=8308&amp;title=draw-transparent-toolbar#8308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 23 August 2005 at 11:44pm<br /><br /><P>Sorry for bring this thread back.</P><P>I still think XTP command bar shall redraw the background in OnErase handler. For example, I have another control placed on the bar, if XTP's bar redraw the background in OnErase handle, then I only need to use the following code to make my control transparent:</P><P>CPoint pt (0, 0);<BR>&nbsp;&nbsp;pWnd-&gt;MapWindowPoints (pParent, &amp;pt, 1);<BR>&nbsp;&nbsp;pt = pDC-&gt;OffsetWindowOrg (pt.x, pt.y);</P><P>&nbsp;&nbsp;bRes = (BOOL) pParent-&gt;SendMessage (WM_ERASEBKGND, (WPARAM)pDC-&gt;m_hDC);</P><P>&nbsp;&nbsp;pDC-&gt;SetWindowOrg(pt.x, pt.y);</P><P>The big advantage of this way is the control actually not even know it's parent is the XTP bar, thus makes the control more independent.</P><P>Best</P><P>Jeff</P>]]>
   </description>
   <pubDate>Tue, 23 Aug 2005 23:44:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=8308&amp;title=draw-transparent-toolbar#8308</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : Thanks ole. I feel myself silly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7660&amp;title=draw-transparent-toolbar#7660</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 13 July 2005 at 7:40am<br /><br />Thanks ole. I feel myself silly after seeing your sample. ;-)]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 07:40:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7660&amp;title=draw-transparent-toolbar#7660</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : ok, here is your sample  2005...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7659&amp;title=draw-transparent-toolbar#7659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 13 July 2005 at 7:36am<br /><br /><P>ok, here is your sample </P><P><A href="http://forum.codejock.com/uploads/oleg/2005-07-13_073536_BitmapBackground.zip" target="_blank">2005-07-13_073536_BitmapBackground.zip</A></P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 07:36:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7659&amp;title=draw-transparent-toolbar#7659</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : In my previous project, I use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7652&amp;title=draw-transparent-toolbar#7652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 13 July 2005 at 5:55am<br /><br /><P>In my previous project, I use this trick to let parent window draw child window.</P><P>&nbsp;&nbsp;CPoint pt (0, 0);<BR>&nbsp;&nbsp;pWnd-&gt;MapWindowPoints (pParent, &amp;pt, 1);<BR>&nbsp;&nbsp;pt = pDC-&gt;OffsetWindowOrg (pt.x, pt.y);</P><P>&nbsp;&nbsp;bRes = (BOOL) pParent-&gt;SendMessage (WM_ERASEBKGND, (WPARAM)pDC-&gt;m_hDC);</P><P>&nbsp;&nbsp;pDC-&gt;SetWindowOrg(pt.x, pt.y);</P><P>But it does not work with XTP, because XTP draws the DockBar in OnPaint, not OnEraseBkgnd, any suggestion?</P><P>Thanks<BR></P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 05:55:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7652&amp;title=draw-transparent-toolbar#7652</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : In FillCommandBarEntry you must...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7649&amp;title=draw-transparent-toolbar#7649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 13 July 2005 at 5:17am<br /><br /><P>In FillCommandBarEntry you must draw part of this picture to make it look like transparent.</P><P>Windows doesn't allow to make child window transparent.</P>]]>
   </description>
   <pubDate>Wed, 13 Jul 2005 05:17:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7649&amp;title=draw-transparent-toolbar#7649</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : This code seems use the same function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7643&amp;title=draw-transparent-toolbar#7643</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 12 July 2005 at 8:48pm<br /><br /><P>This code seems use the same function to draw both of them. It works well with solid background, but what if the background is a picture? What I want is the thing like MFC toolbar on the rebar, with whom I can draw a picture on the rebar and make toolbar transparent, then the toolbar button will show on the picture.</P><P>Thanks</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /></P><P>See code of void CXTPNativeXPTheme::FillCommandBarEntry(CDC* pDC, CXTPCommandBar* pBar)</P><P>it can help...</P></td></tr></table> ]]>
   </description>
   <pubDate>Tue, 12 Jul 2005 20:48:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7643&amp;title=draw-transparent-toolbar#7643</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : See code of void CXTPNativeXPT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7637&amp;title=draw-transparent-toolbar#7637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 12 July 2005 at 7:09am<br /><br /><P>See code of void CXTPNativeXPTheme::FillCommandBarEntry(CDC* pDC, CXTPCommandBar* pBar)</P><P>it can help...</P>]]>
   </description>
   <pubDate>Tue, 12 Jul 2005 07:09:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7637&amp;title=draw-transparent-toolbar#7637</guid>
  </item> 
  <item>
   <title><![CDATA[Draw transparent toolbar? : Hi, Does anyone know how to make...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7634&amp;title=draw-transparent-toolbar#7634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 2565<br /><strong>Posted:</strong> 12 July 2005 at 3:42am<br /><br /><P>Hi,</P><P>Does anyone know how to make toolbar transparent? I mean the toolbar's uses the background filled via FillDockBar.</P><P>Best</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 12 Jul 2005 03:42:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2565&amp;PID=7634&amp;title=draw-transparent-toolbar#7634</guid>
  </item> 
 </channel>
</rss>