<?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 : Undesired CXTEditListBox behavior</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Undesired CXTEditListBox behavior]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 15:08:01 +0000</pubDate>
  <lastBuildDate>Mon, 11 Jun 2007 09:04:05 +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=7303</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[Undesired CXTEditListBox behavior : Actually, that didn&amp;#039;t work!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23593&amp;title=undesired-cxteditlistbox-behavior#23593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 7303<br /><strong>Posted:</strong> 11 June 2007 at 9:04am<br /><br />Actually, that didn't work! When pressing &lt;DEL&gt; OnDeleteItem() is called directly, and since it too isn't virtual, my overrided function is not called.<DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>CXTEditListBox::PreTranslateMessage()</FONT></DIV><DIV><FONT size=2>... <FONT size=2>OnDeleteItem();</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Argh :(</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 11 Jun 2007 09:04:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23593&amp;title=undesired-cxteditlistbox-behavior#23593</guid>
  </item> 
  <item>
   <title><![CDATA[Undesired CXTEditListBox behavior : Hi, Sorry, but EditListItem()is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23590&amp;title=undesired-cxteditlistbox-behavior#23590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 7303<br /><strong>Posted:</strong> 11 June 2007 at 6:54am<br /><br /><P>Hi,</P><DIV>Sorry, but <strong>EditListItem()&nbsp;</strong>is<strong> not virtual</strong>. I had to implement these functions to get the desired behavior:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>OnEndLabelEdit()</FONT></DIV><DIV><FONT size=2>OnNewItem()</FONT></DIV><DIV><FONT size=2>OnDeleteItem()</FONT></DIV><DIV><FONT size=2>OnMoveItemUp()</FONT></DIV><DIV><FONT size=2>OnMoveItemDown()</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 11 Jun 2007 06:54:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23590&amp;title=undesired-cxteditlistbox-behavior#23590</guid>
  </item> 
  <item>
   <title><![CDATA[Undesired CXTEditListBox behavior : Problem that nowthese message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23452&amp;title=undesired-cxteditlistbox-behavior#23452</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7303<br /><strong>Posted:</strong> 06 June 2007 at 1:32am<br /><br /><DIV>Problem that now&nbsp;these message implemented as WM_COMMAND - and&nbsp;MFC automatically will return 1 if they was handled.</DIV><DIV>&nbsp;</DIV><DIV>EditListItem is virtual method, you can override it.</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Wed, 06 Jun 2007 01:32:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23452&amp;title=undesired-cxteditlistbox-behavior#23452</guid>
  </item> 
  <item>
   <title><![CDATA[Undesired CXTEditListBox behavior : Hi,  When adding/removing items...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23429&amp;title=undesired-cxteditlistbox-behavior#23429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 7303<br /><strong>Posted:</strong> 05 June 2007 at 4:05am<br /><br />Hi,<DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When adding/removing items from a&nbsp;CXTEditListBox you get notifications in the form of <FONT size=2>LBN_XT_PRENEWITEM/<FONT size=2>LBN_XT_NEWITEM</FONT> and <FONT size=2>LBN_XT_PREDELETEITEM/<FONT size=2>LBN_XT_DELETEITEM.</FONT></FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Let's say that&nbsp;you want to display a "Yes/No"-messagebox before deleting an item. Then what? <strong>There is no way to cancel the action.</strong></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Perhaps it would be a good idea to implement "pre"-messages for all actions (move up/down too) and check the return value. If TRUE, then cancel the action, otherwise perform it as usual.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>As for a temporary solution, I guess the best would be to override CXTEditListBox::<FONT size=2>OnDeleteItem() etc?</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks!</FONT></DIV><DIV><FONT size=2>/Chris</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 05 Jun 2007 04:05:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7303&amp;PID=23429&amp;title=undesired-cxteditlistbox-behavior#23429</guid>
  </item> 
 </channel>
</rss>