<?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 : CXTCheckListBox is not checking the items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Visual C++ MFC : CXTCheckListBox is not checking the items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 01:29:09 +0000</pubDate>
  <lastBuildDate>Tue, 15 Apr 2008 01:16:29 +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=10220</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[CXTCheckListBox is not checking the items : ok :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33668&amp;title=cxtchecklistbox-is-not-checking-the-items#33668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 15 April 2008 at 1:16am<br /><br />ok :)]]>
   </description>
   <pubDate>Tue, 15 Apr 2008 01:16:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33668&amp;title=cxtchecklistbox-is-not-checking-the-items#33668</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox is not checking the items : Thanks for the help oleg. It worked! I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33667&amp;title=cxtchecklistbox-is-not-checking-the-items#33667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 15 April 2008 at 1:06am<br /><br /><P>Thanks for the help oleg. It worked!</P><P>I simply took the index which was returned after I called AddString(), and then used the same index to perform a SetCheck().</P><P>Lesson learnt: Never use a loop counter or any other variable as index while doing a SetCheck(). Always take the return value from the AddString API and then use the same return value to perform a SetCheck().</P><DIV><img src="https://forum.codejock.com/smileys/smiley17.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Tue, 15 Apr 2008 01:06:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33667&amp;title=cxtchecklistbox-is-not-checking-the-items#33667</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox is not checking the items : Hi,  It have to work... Try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33642&amp;title=cxtchecklistbox-is-not-checking-the-items#33642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 14 April 2008 at 10:39am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>It have to work... Try to modify our sample then and reproduce problem.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Apr 2008 10:39:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33642&amp;title=cxtchecklistbox-is-not-checking-the-items#33642</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox is not checking the items : I cannot oleg. The company has...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33640&amp;title=cxtchecklistbox-is-not-checking-the-items#33640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 14 April 2008 at 9:46am<br /><br />I cannot oleg. The company has its Information Security policies which prohibit me from uploading code at a public forum. <DIV>Anyways, I think its some issue with the index that I am using for setcheck()</DIV><DIV>Is there any issue with setcheck() like in case of CTreeCtrl where the style has to be set at the runtime only? Here do I need to call on a ModifyStyle () or some other API?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 14 Apr 2008 09:46:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33640&amp;title=cxtchecklistbox-is-not-checking-the-items#33640</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox is not checking the items : Hi, Show full code. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33637&amp;title=cxtchecklistbox-is-not-checking-the-items#33637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 14 April 2008 at 9:14am<br /><br />Hi,<DIV>Show full code.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Apr 2008 09:14:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33637&amp;title=cxtchecklistbox-is-not-checking-the-items#33637</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox is not checking the items : Hi,  I have created a listbox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33627&amp;title=cxtchecklistbox-is-not-checking-the-items#33627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10220<br /><strong>Posted:</strong> 14 April 2008 at 7:26am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have created a listbox in the resource statically and set its OwnerDraw property as fixed and have checked the Has Strings property.</DIV><DIV>In the header file I have&nbsp;changed the CListBox variable into a CXTCheckListBox variable.</DIV><DIV>In OnInitDialog&nbsp;I have initialized the checklistbox member variable by calling on the API &nbsp;&nbsp;&nbsp; m_RoutedTrailsList.Initialize();<BR></DIV><DIV>Now, when i have to dynamically add some items into the checklistbox and check or uncheck them based on certain conditions. I run a for () loop within which i check or uncheck the item by calling </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_UnroutedTrailsList.SetCheck(iCount, 1); or</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_UnroutedTrailsList.SetCheck(iCount, 0);</DIV><DIV>where my iCount denotes the index of the items and it begins from 0.</DIV><DIV>But I do not get the behaviour as expected, the code executes as expected and calls on m_UnroutedTrailsList.SetCheck(iCount, 1); for 4 times, each time incrementing iCount as expected.</DIV><DIV>But it checks only 3 items, the first item remains unchecked. </DIV><DIV>Can anyone give me a solution to this problem? Has anyone faced a similar problem before?</DIV><DIV>An immediate response is eagerly awaited.</DIV><DIV>Thanks,</DIV><DIV>Devam.<BR><BR></DIV>]]>
   </description>
   <pubDate>Mon, 14 Apr 2008 07:26:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10220&amp;PID=33627&amp;title=cxtchecklistbox-is-not-checking-the-items#33627</guid>
  </item> 
 </channel>
</rss>