<?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 : CXTColorPopup now calling DestroyWindow</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTColorPopup now calling DestroyWindow]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:56:17 +0000</pubDate>
  <lastBuildDate>Thu, 06 Aug 2009 00:48:54 +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=13482</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[CXTColorPopup now calling DestroyWindow : Hello,  We added flag now to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=51633&amp;title=cxtcolorpopup-now-calling-destroywindow#51633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13482<br /><strong>Posted:</strong> 06 August 2009 at 12:48am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>We added flag now to prevent second call:</DIV><DIV>&nbsp;</DIV><DIV>void CXTColorPopup::EndSelection(int nCurSel)<BR>{<BR>&nbsp;m_bEndSelection = TRUE;</DIV><DIV>&nbsp;CXTPMouseMonitor::SetupHook(NULL);</DIV><DIV>&nbsp;OnEndSelection(nCurSel, m_callerParam);</DIV><DIV>&nbsp;DestroyWindow();<BR>}</DIV><DIV>void CXTColorPopup::OnKillFocus(CWnd* pNewWnd)<BR>{<BR>&nbsp;CWnd::OnKillFocus(pNewWnd);</DIV><DIV>&nbsp;if (!m_pColorDlg &amp;&amp; !m_bEndSelection)<BR>&nbsp;{<BR>&nbsp;&nbsp;EndSelection(-1);<BR>&nbsp;}<BR>}</DIV>]]>
   </description>
   <pubDate>Thu, 06 Aug 2009 00:48:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=51633&amp;title=cxtcolorpopup-now-calling-destroywindow#51633</guid>
  </item> 
  <item>
   <title><![CDATA[CXTColorPopup now calling DestroyWindow : This is still a problem in v1310....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=51523&amp;title=cxtcolorpopup-now-calling-destroywindow#51523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 13482<br /><strong>Posted:</strong> 03 August 2009 at 3:54am<br /><br />This is still a problem in v1310. <DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Mon, 03 Aug 2009 03:54:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=51523&amp;title=cxtcolorpopup-now-calling-destroywindow#51523</guid>
  </item> 
  <item>
   <title><![CDATA[CXTColorPopup now calling DestroyWindow :   You changed this code from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=45802&amp;title=cxtcolorpopup-now-calling-destroywindow#45802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 13482<br /><strong>Posted:</strong> 24 February 2009 at 3:45am<br /><br /><FONT color=#0000ff><FONT color=#0000ff><DIV><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff><FONT size=2><DIV><FONT color=#000000>You changed this code from v1211:</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" color=#000000>void</FONT></FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono" color=#000000> CXTColorPopup::EndSelection(int nCurSel)</FONT></DIV><DIV></FONT><FONT face="Courier New, Courier, mono" color=#000000 size=2>{</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" color=#000000 size=2>CXTPMouseMonitor::SetupHook(NULL);</FONT></DIV><FONT face="Courier New, Courier, mono" size=2><DIV><FONT color=#000000>OnEndSelection(nCurSel, m_callerParam);</FONT></FONT></DIV><FONT face="Courier New, Courier, mono" size=2><DIV><FONT color=#000000>PostMessage(WM_CLOSE);</FONT></FONT></DIV><FONT face="Courier New, Courier, mono" size=2><DIV><FONT color=#000000>}</FONT></FONT></DIV></FONT></FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2>to this code in v1300:</FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV></FONT></FONT><FONT color=#000000><FONT face="Courier New, Courier, mono" size=2>void</FONT><FONT face="Courier New, Courier, mono" size=2> CXTColorPopup::EndSelection(int nCurSel)</FONT></FONT></DIV><DIV><FONT face="Courier New, Courier, mono" color=#000000 size=2>{<BR></FONT><FONT face="Courier New, Courier, mono" color=#000000 size=2>CXTPMouseMonitor::SetupHook(NULL);<BR></FONT><FONT face="Courier New, Courier, mono" color=#000000 size=2>OnEndSelection(nCurSel, m_callerParam);<BR></FONT><FONT face="Courier New, Courier, mono" color=#000000 size=2>DestroyWindow();<BR></FONT><FONT size=2><FONT face="Courier New, Courier, mono" color=#000000>}</FONT></DIV><DIV><FONT color=#000000></FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>But the direct call to DestroyWindow makes my Color Popup crash!</FONT></DIV><DIV>&nbsp;</DIV><DIV>A quick debug shows that the EndSelection is called from both <FONT size=2>CXTColorPopup::OnKillFocus and</FONT></DIV><DIV>from <FONT size=2>CXTColorSelectorCtrl::OnLButtonUp, making the second call fail.</FONT></DIV><DIV><FONT color=#000000></FONT></DIV><DIV><FONT color=#000000></FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>-cpede</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 24 Feb 2009 03:45:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13482&amp;PID=45802&amp;title=cxtcolorpopup-now-calling-destroywindow#45802</guid>
  </item> 
 </channel>
</rss>