<?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 : WS_EX_CONTROLPARENT on the task panel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : WS_EX_CONTROLPARENT on the task panel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 16:12:51 +0000</pubDate>
  <lastBuildDate>Mon, 26 Jan 2009 02:10:25 +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=13246</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[WS_EX_CONTROLPARENT on the task panel : Hi,  It depends on layout. Our...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13246&amp;PID=44883&amp;title=ws-ex-controlparent-on-the-task-panel#44883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13246<br /><strong>Posted:</strong> 26 January 2009 at 2:10am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>It depends on layout. Our Toolbox sample set WS_EX_<SPAN ="highlight">CONTROLPARENT</SPAN> for MainFrame and Splitter for correct tab order.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 02:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13246&amp;PID=44883&amp;title=ws-ex-controlparent-on-the-task-panel#44883</guid>
  </item> 
  <item>
   <title><![CDATA[WS_EX_CONTROLPARENT on the task panel : Should WS_EX_CONTROLPARENT be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13246&amp;PID=44857&amp;title=ws-ex-controlparent-on-the-task-panel#44857</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 13246<br /><strong>Posted:</strong> 23 January 2009 at 7:43pm<br /><br />Should WS_EX_<SPAN =highlight>CONTROLPARENT</SPAN> be added to the task panel window?<DIV>&nbsp;</DIV><DIV>I had&nbsp;lockups where adding that style fixed the lockup. But I now get a lockup if I remove the last group in the task panel. The problem seems to be the style is on the panel at the time CJ calls GetNextDlgTabItem when OnSetFocus is called on the task panel.</DIV><DIV>&nbsp;</DIV><DIV>OnSetFocus is called when the task panel group item destructor runs and it calls ShowWindow(h, SW_HIDE). I assume since I had to make the dialog a child of the panel the OS is setting focus to the panel when the window is hidden (well that and the stack trace.)</DIV><DIV>&nbsp;</DIV><DIV>Microsoft has sent me a rather lengthy explanation of the rules that have to be followed to avoid the lockup and one of them is to never set focus on "a control that has WS_EX_CONTROLPARENT" style on it. I asked if any window counts as a control and the answer is yes.</DIV><DIV>&nbsp;</DIV><DIV>I have currently subclassed the panel to intercept OnSetFocus and route the call directly to the CWnd class.</DIV>]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 19:43:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13246&amp;PID=44857&amp;title=ws-ex-controlparent-on-the-task-panel#44857</guid>
  </item> 
 </channel>
</rss>