<?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 Horizontal Scrolling</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTCheckListBox Horizontal Scrolling]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 16:24:34 +0000</pubDate>
  <lastBuildDate>Tue, 20 May 2008 03:13:22 +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=10678</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 Horizontal Scrolling : Hi;  you dont have to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35448&amp;title=cxtchecklistbox-horizontal-scrolling#35448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 20 May 2008 at 3:13am<br /><br />Hi;<DIV>&nbsp;</DIV><DIV>you dont have to create your own class from scratch. Only derive it to handle WM_HSCROLL. This requires about 15 minutes to be realized...</DIV>]]>
   </description>
   <pubDate>Tue, 20 May 2008 03:13:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35448&amp;title=cxtchecklistbox-horizontal-scrolling#35448</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox Horizontal Scrolling : What you are suggesting is to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35447&amp;title=cxtchecklistbox-horizontal-scrolling#35447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 20 May 2008 at 3:11am<br /><br /><P>What you are suggesting is to create a class of my own for the control that I am using. That is the correct approach, but is not feasible for my project currently due to lack of time and resources.</P><P>I was wondering if there is any workaround through which I could properly handle the horizontal scrollbar while keeping the CXTPCheckListBox as a control within the dialog, and not creating a class for it.</P><P>Thanks a lot for the suggestion, but a little insight on this workaround, if possible, would be greatly appreciated.</P>]]>
   </description>
   <pubDate>Tue, 20 May 2008 03:11:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35447&amp;title=cxtchecklistbox-horizontal-scrolling#35447</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox Horizontal Scrolling : Hi; You have to derive from CXTPCheckListBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35446&amp;title=cxtchecklistbox-horizontal-scrolling#35446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 20 May 2008 at 3:03am<br /><br />Hi;<DIV>You have to derive from CXTPCheckListBox class and handle WM_HSCROLL there. </DIV><DIV>Then declare a dialog member variable of type of the derived class and in DoDataExchange do a DDX_Control().</DIV><DIV>&nbsp;</DIV><DIV>HTH</DIV>]]>
   </description>
   <pubDate>Tue, 20 May 2008 03:03:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35446&amp;title=cxtchecklistbox-horizontal-scrolling#35446</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox Horizontal Scrolling : Thanks for the suggestion but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35445&amp;title=cxtchecklistbox-horizontal-scrolling#35445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 20 May 2008 at 1:22am<br /><br />Thanks for the suggestion but I tried that as well. Problem is that I have a dialog on which the CCheckListBox is a control.<DIV></DIV>So, since I do not have a wrapper class over the control, I cannot handle WM_HSCROLL message. If I do, it will get handled for the dialog class and not the control. <DIV>Is there any way in which I can handle the message while keeping the CheckListBox as a control within a dialog?</DIV>]]>
   </description>
   <pubDate>Tue, 20 May 2008 01:22:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35445&amp;title=cxtchecklistbox-horizontal-scrolling#35445</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox Horizontal Scrolling : Hi; what about adding a OnHScroll...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35414&amp;title=cxtchecklistbox-horizontal-scrolling#35414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 19 May 2008 at 11:03am<br /><br />Hi;<DIV>what about adding a OnHScroll handler and after calling the base class implementation do a simple window refresh?</DIV>]]>
   </description>
   <pubDate>Mon, 19 May 2008 11:03:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35414&amp;title=cxtchecklistbox-horizontal-scrolling#35414</guid>
  </item> 
  <item>
   <title><![CDATA[CXTCheckListBox Horizontal Scrolling : Hi, I have used CXTCheckListBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35405&amp;title=cxtchecklistbox-horizontal-scrolling#35405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3855">devam</a><br /><strong>Subject:</strong> 10678<br /><strong>Posted:</strong> 19 May 2008 at 6:52am<br /><br />Hi,<DIV>I have used CXTCheckListBox in my project and need horizontal scrollbars in the same.</DIV><DIV>While creating the list box I have specified the WS_HSCROLL property, but that is not enough for CXTCheckListBoxes. By surfing and a little research I came up with the following code which successfully adds a Horizontal scrollbar to my CXTCheckListBox :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; CString cstr;<BR>&nbsp;&nbsp;&nbsp; CSize&nbsp;&nbsp; sz;<BR>&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp; iMaxLength = 0;<BR>&nbsp;&nbsp;&nbsp; CDC*&nbsp;&nbsp;&nbsp; pDC = m_UnroutedTrailsList.GetDC();<BR>&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; m_UnroutedTrailsList.GetCount(); i++)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_UnroutedTrailsList.GetText(i, cstr);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sz = pDC-&gt;GetTextExtent(cstr);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (sz.cx &gt; iMaxLength)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iMaxLength = sz.cx;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp; m_UnroutedTrailsList.ReleaseDC(pDC);</DIV><DIV>&nbsp;&nbsp;&nbsp; // Set the horizontal extent so every character of all strings<BR>&nbsp;&nbsp;&nbsp; // can be scrolled to.<BR>&nbsp;&nbsp;&nbsp; m_UnroutedTrailsList.SetHorizontalExtent(iMaxLength);<BR></DIV><DIV>But the problem is that when I scroll the list box horizontally, the strings are not displayed properly. I think there is some refresh problem. The strings are incorrectly drawn (overlap) as I scroll the listbox. The strings get correctly displayed when I click on any item within the CheckListBox.</DIV><DIV>&nbsp;</DIV><DIV>Can anyone please help me to fix this display problem so that the horizontal scrollbar can behave normally with a CXTCheckListBox?</DIV><DIV>&nbsp;</DIV><DIV>An early response is eagerly awaited... <img src="https://forum.codejock.com/smileys/smiley18.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 19 May 2008 06:52:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10678&amp;PID=35405&amp;title=cxtchecklistbox-horizontal-scrolling#35405</guid>
  </item> 
 </channel>
</rss>