<?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 : Pane Opacity</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Pane Opacity]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:15:36 +0000</pubDate>
  <lastBuildDate>Mon, 21 Dec 2009 02:49:47 +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=15094</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[Pane Opacity : Hi,  Yes, better create custom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=55775&amp;title=pane-opacity#55775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 21 December 2009 at 2:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, better create custom class for your Floating frames and override its UpdateWindowOpacity() method.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Here some code for start</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>class CDockingPaneMiniWnd : public CXTPDockingPaneMiniWnd<BR>{<BR>public:<BR>&nbsp;CDockingPaneMiniWnd(CXTPDockingPaneLayout* pLayout);<BR>};</DIV><DIV>&nbsp;</DIV><DIV><BR>class CDockingPaneManager : public CXTPDockingPaneManager<BR>{<BR>public:<BR>&nbsp;CDockingPaneManager();<BR>&nbsp;virtual ~CDockingPaneManager();</DIV><DIV>protected:<BR>&nbsp;virtual CXTPDockingPaneBase* OnCreatePane(XTPDockingPaneType type, CXTPDockingPaneLayout* pLayout);</DIV><DIV>};<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CDockingPaneManager::CDockingPaneManager()<BR>{</DIV><DIV><BR>}</DIV><DIV>CDockingPaneManager::~CDockingPaneManager()<BR>{</DIV><DIV>}</DIV><DIV><BR>CXTPDockingPaneBase* CDockingPaneManager::OnCreatePane(XTPDockingPaneType type, CXTPDockingPaneLayout* pLayout)<BR>{<BR>&nbsp;if (type == xtpPaneTypeMiniWnd)<BR>&nbsp;&nbsp;return new CDockingPaneMiniWnd(pLayout);</DIV><DIV>&nbsp;return CXTPDockingPaneManager::OnCreatePane(type, pLayout);</DIV><DIV>}<BR></DIV>]]>
   </description>
   <pubDate>Mon, 21 Dec 2009 02:49:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=55775&amp;title=pane-opacity#55775</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : I&amp;#039;ve gotten back to this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=55752&amp;title=pane-opacity#55752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 18 December 2009 at 4:29pm<br /><br />I've gotten back to this topic and had some luck with some experiments.&nbsp; I went into CXTPDockingPaneMiniWnd::UpdateWindowOpacity and made these mods:<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>if (!m_bActive)<BR>{<BR>&nbsp;&nbsp;&nbsp; ModifyStyleEx(0, WS_EX_LAYERED);<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; // remove "real" call</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; // pfnSetLayeredWindowAttributes(m_hWnd, 0x00, (BYTE)nFloatingFramesOpacity, LWA_ALPHA);</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; //&nbsp;make the window transparent instead<BR>&nbsp;&nbsp;&nbsp; pfnSetLayeredWindowAttributes(m_hWnd, <FONT color=#cc0000>RGB(255,255,255)</FONT>, (BYTE)0, <FONT color=#cc0000>LWA_COLORKEY</FONT>);<BR></FONT>}<BR>else<BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; // remove "real" call</FONT></DIV><DIV><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; //pfnSetLayeredWindowAttributes(m_hWnd, 0x00, (BYTE)255, LWA_ALPHA);<BR>&nbsp;&nbsp;&nbsp; //&nbsp;make the window transparent instead<BR>&nbsp;&nbsp;&nbsp; pfnSetLayeredWindowAttributes(m_hWnd, <FONT color=#cc0000>RGB(255,255,255)</FONT>, (BYTE)0, <FONT color=#cc0000>LWA_COLORKEY</FONT>);</FONT><BR>}</DIV></BLOCKQUOTE><DIV>Since the dialog in my docking pane is a tree control that fills the entire dialog, and its background color is white, the whole thing goes transparent very nicely, and I can click through it at will.&nbsp; Now I'm playing with&nbsp;hiding the floating frame as well, while still providing some UI for moving/resizing/redocking/etc.</DIV><DIV>&nbsp;</DIV><DIV>So, Codejock dev team, do you see any problem with this approach?&nbsp; If not, how about exposing it, since&nbsp;subclassing is fragile (and I really haven't tried yet to make sure I can do it properly) and modifying the delivered source is not something I enjoy maintaining from release to release?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 Dec 2009 16:29:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=55752&amp;title=pane-opacity#55752</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : It works in a CDialog popped-up...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=53086&amp;title=pane-opacity#53086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4162">mfproudman</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 16 September 2009 at 8:53am<br /><br /><br>It works in a CDialog popped-up with DoModal() completely outside a docking pane.&nbsp; In other words, as was pointed out by Oleg, a top-level window can have WS_EX_LAYERED, but apparently not a DockingPane.<br><br>Or am I missing something here?&nbsp; What we really want is a Docking Pane that becomes WS_EX_LAYERED as or if it is dragged into an undocked state.&nbsp; In other words, when it is floating independently outside the app's mainframe, we want to be able to see through it to the windows it overlaps.&nbsp; We're looking for something like a Vista gadget type of appearance for some dashboard style application state displays.<br><br>Any ideas?<br><br>Mark<br><br>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 08:53:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=53086&amp;title=pane-opacity#53086</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : Are you saying that works in a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=53037&amp;title=pane-opacity#53037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 15 September 2009 at 2:35pm<br /><br />Are you saying that works in a CDialog all by itself, or with a CDialog inside a docking pane?&nbsp; I tried the latter and didn't have any success.]]>
   </description>
   <pubDate>Tue, 15 Sep 2009 14:35:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=53037&amp;title=pane-opacity#53037</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : This may be related: I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52864&amp;title=pane-opacity#52864</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4162">mfproudman</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 08 September 2009 at 2:00pm<br /><br /><br>This may be related:&nbsp; I've been trying to get a layered/transparent view working in a docking pane.<br><br>The following code works in a CDialog:<br><br> &nbsp; &nbsp; &nbsp; &nbsp;HWND hWnd = GetSafeHwnd();<br> &nbsp; &nbsp; &nbsp; &nbsp;long style = GetWindowLong(hWnd, GWL_EXSTYLE);<br> &nbsp; &nbsp; &nbsp; &nbsp;style |= WS_EX_LAYERED;<br> &nbsp; &nbsp; &nbsp; &nbsp;SetWindowLong(hWnd, GWL_EXSTYLE, style);<br> &nbsp; &nbsp; &nbsp;&nbsp; ::SetLayeredWindowAttributes(hWnd, 0, 128, LWA_ALPHA);<br> &nbsp; &nbsp; &nbsp; &nbsp;return 0;<br><br>It seems to have no effect in a CView attached to a CXTPDockingPane.&nbsp; I have also tried with the hWnd from the docking pane, and also no effect.<br><br>What we're trying to do is have a docking pane containing a VISTA-like status gadget, with a transparent background.<br><br>Any ideas?<br><br>Mark Proudman<br><br>]]>
   </description>
   <pubDate>Tue, 08 Sep 2009 14:00:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52864&amp;title=pane-opacity#52864</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : That&amp;#039;s too bad.   With...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52684&amp;title=pane-opacity#52684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 02 September 2009 at 10:31am<br /><br />That's too bad.&nbsp; <DIV>&nbsp;</DIV><DIV>With the floating panes, is there any way I could further manipulate things so that, say, the background would appear completely transparent?&nbsp; For example, say a pane contains a tree control.&nbsp; I'd like for the tree elements to be 50% opaque, but the background of the control to be invisible.</DIV>]]>
   </description>
   <pubDate>Wed, 02 Sep 2009 10:31:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52684&amp;title=pane-opacity#52684</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : Hi,  Windows doesn&amp;#039;t support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52674&amp;title=pane-opacity#52674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 02 September 2009 at 7:10am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Windows doesn't support Opacity for Child windows - only for TopLevel.&nbsp;:(</DIV>]]>
   </description>
   <pubDate>Wed, 02 Sep 2009 07:10:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52674&amp;title=pane-opacity#52674</guid>
  </item> 
  <item>
   <title><![CDATA[Pane Opacity : I&amp;#039;ve been playing with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52654&amp;title=pane-opacity#52654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 15094<br /><strong>Posted:</strong> 01 September 2009 at 1:34pm<br /><br />I've been playing with the opacity setting of floating panes using CXTPDockingPaneManager::SetFloatingFramesOpacity and see some potential uses.&nbsp; Is there an equivalent for unpinned panes, so that they would slide out in an opaque state?&nbsp; If not, might that be on the horizon?<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 01 Sep 2009 13:34:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15094&amp;PID=52654&amp;title=pane-opacity#52654</guid>
  </item> 
 </channel>
</rss>