<?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 : CMarkupListCtrl with checkboxes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CMarkupListCtrl with checkboxes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 12:02:54 +0000</pubDate>
  <lastBuildDate>Fri, 06 Nov 2009 14:09:26 +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=15560</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[CMarkupListCtrl with checkboxes :   I was able to figure this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15560&amp;PID=54623&amp;title=cmarkuplistctrl-with-checkboxes#54623</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 15560<br /><strong>Posted:</strong> 06 November 2009 at 2:09pm<br /><br />I was able to figure this out on my own.<br><br>The trick is that the Init() method within CXTCheckListBox needs to be called in order to initialize theme support.<br><br>The CMarkupListCtrl class overrides Init() and returns true, so first I tried calling Init() in the base class. This fails because eventually Init() gets called in CXTListBox (which is the base class for CXTCheckListBox), which in turn *enforces* application of the LBS_HASSTRINGS style flag. This style flag is not compatible with the way that CMarkupListCtrl is designed.<br><br>So, the solution I found is to defer the Init() call and then toggle the style back, like this:<br><br>bool CMarkupListCtrl::Init()<br>{<br>&nbsp;&nbsp;&nbsp; bool bres = __super::Init();<br><br>&nbsp;&nbsp;&nbsp; this-&gt;ModifyStyle(LBS_HASSTRINGS, 0, 0);<br><br>&nbsp;&nbsp;&nbsp; return bres;<br>}<br><br>So far, this seems to be working nicely. Still testing to see if I somehow broke something else.&nbsp; :-)<br><br>]]>
   </description>
   <pubDate>Fri, 06 Nov 2009 14:09:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15560&amp;PID=54623&amp;title=cmarkuplistctrl-with-checkboxes#54623</guid>
  </item> 
  <item>
   <title><![CDATA[CMarkupListCtrl with checkboxes : Hello,In the MarkupSample MFC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15560&amp;PID=54618&amp;title=cmarkuplistctrl-with-checkboxes#54618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 15560<br /><strong>Posted:</strong> 06 November 2009 at 11:40am<br /><br />Hello,<br><br>In the MarkupSample MFC sample project, there is a class called CMarkupListCtrl that is quite interesting indeed.<br><br>In an effort to add support for checkboxes, I changed the derivation of CMarkupListCtrl from CXTListBox to CXTCheckListBox. This seems to work just fine, but I can't help notice that the appearance of the checkboxes themselves are altered as a result. More specifically, the checkboxes lose their 3D appearance and become flattened (which, in turn, makes them appear larger).<br><br>Is there any way to implement checkboxes within CMarkupListCtrl without altering their standard appearance? ]]>
   </description>
   <pubDate>Fri, 06 Nov 2009 11:40:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15560&amp;PID=54618&amp;title=cmarkuplistctrl-with-checkboxes#54618</guid>
  </item> 
 </channel>
</rss>