<?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 : CXTPControlComboBox  tidy-up problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPControlComboBox  tidy-up problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 21:24:05 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jan 2008 03:18:18 +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=9250</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[CXTPControlComboBox  tidy-up problem : Thank you Oleg for your quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29995&amp;title=cxtpcontrolcombobox-tidyup-problem#29995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3637">Pierre</a><br /><strong>Subject:</strong> 9250<br /><strong>Posted:</strong> 09 January 2008 at 3:18am<br /><br /><P>Thank you Oleg for your quick response.</P><DIV>As I am converting many&nbsp;different types of toolbar to become command bars I was looking for the cleanest solution for tidying up specialised combo boxes.&nbsp; For this reason I was hoping to avoid having to set up an additional&nbsp;CArray or CPtrList.&nbsp; Also, as mentioned in my original post, overriding CXTPControlComboBox and its OnRemove doesn't work because, by that time, the window of the list box no longer exists (thus preventing iteration down it to delete the associated objects).</DIV><DIV>&nbsp;</DIV><DIV>If I understand you correctly it seems the only option left is to go down the route of OnDestroy which I assume would require a specialised <FONT size=2>CXTPControlComboBoxList where this would be handled.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>What I was hoping for was&nbsp;to handle an event on the CXTPControlComboBox&nbsp;object telling me that the&nbsp;list box&nbsp;window was about to be destroyed.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 09 Jan 2008 03:18:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29995&amp;title=cxtpcontrolcombobox-tidyup-problem#29995</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox  tidy-up problem : A lot of ways.  for example clean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29975&amp;title=cxtpcontrolcombobox-tidyup-problem#29975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9250<br /><strong>Posted:</strong> 08 January 2008 at 3:17pm<br /><br /><P>A lot of ways. </P><DIV>for example clean all in OnDestroy. Also you can add some CArray variable, add items to this array and too the combo&nbsp;and delete in CArray in destruct.</DIV><DIV>&nbsp;</DIV><DIV>You can also override CXTPControlComboBox and its OnRemove....</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 15:17:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29975&amp;title=cxtpcontrolcombobox-tidyup-problem#29975</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox  tidy-up problem : I have a specialised type of CXTControlComboBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29960&amp;title=cxtpcontrolcombobox-tidyup-problem#29960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3637">Pierre</a><br /><strong>Subject:</strong> 9250<br /><strong>Posted:</strong> 08 January 2008 at 6:35am<br /><br />I have a specialised type of CXTControlComboBox object residing on a CXTPToolBar object.&nbsp; The combo box&nbsp;initialises itself by dynamically allocating&nbsp;objects and associating them with the list box&nbsp;via SetItemData.<DIV>&nbsp;</DIV><DIV>The problem I have is that I cannot find a way to deallocate the associated objects on shutting down the application.&nbsp; I have tried placing the tidy-up code both in an override of OnRemoved and the destructor of my specialised combo but these fail because I cannot iterate through the list items due to the fact that the list box window no longer exists,&nbsp;causing GetCount to fail.</DIV><DIV>&nbsp;</DIV><DIV>Is there another event I can use to do my combo box tidy-up?</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 06:35:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9250&amp;PID=29960&amp;title=cxtpcontrolcombobox-tidyup-problem#29960</guid>
  </item> 
 </channel>
</rss>