<?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 : C&#111;ntrols flicker in resizing dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : C&#111;ntrols flicker in resizing dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 19:33:30 +0000</pubDate>
  <lastBuildDate>Mon, 19 Dec 2005 00:49:41 +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=3419</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[C&#111;ntrols flicker in resizing dialog : Actually you can use CXTCheckListBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10250&amp;title=controls-flicker-in-resizing-dialog#10250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3419<br /><strong>Posted:</strong> 19 December 2005 at 12:49am<br /><br /><P>Actually you can use CXTCheckListBox with OwnerDrawFixed and remove this assert </P><P>&nbsp;</P><P>In the last version it looks like:</P><P>&nbsp;// Must be LBS_OWNERDRAWVARIABLE or LBS_OWNERDRAWFIXED and LBS_HASSTRINGS<BR>&nbsp;ASSERT(GetStyle() &amp; (LBS_OWNERDRAWFIXED | LBS_OWNERDRAWVARIABLE));<BR>&nbsp;ASSERT(GetStyle() &amp; (LBS_HASSTRINGS));</P><P>So it was bug in previous versions.</P>]]>
   </description>
   <pubDate>Mon, 19 Dec 2005 00:49:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10250&amp;title=controls-flicker-in-resizing-dialog#10250</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntrols flicker in resizing dialog : Oleg,  1) Thanks for the info...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10245&amp;title=controls-flicker-in-resizing-dialog#10245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3419<br /><strong>Posted:</strong> 18 December 2005 at 12:02pm<br /><br />Oleg,<br><br>1) Thanks for the info about the CXTTreeCtrl. All my trees are derived from one class, so that was a one line fix for me. Sweet!<br><br>2) Based on your comment above ("Some classes can't useCXTNoFlickerWnd") I didn't go down that road any further, but I stillwanted to resolve my flickering issue.&nbsp; My requirements for thechecklistbox are the "simple" case (i.e. just a checkmark beside sometext - no fancy drawing or images) Here is what I found:<br><br>i) The image on the right is the standard MFC CCheckListBox control. The drawing is correct, but it flickers when resized.<br><br>ii) The image on the left is the CXTCheckListBox. I tried using this inplace of my CCheckListBox. It ASSERTed that it needed "variable" ownerdrawing, so I turned this on. Unfortunately the items are not beingdrawn correctly (the font is correct, the check boxes are the rightsize, but there is no space between the items).<br><br>iii) The image in the center, is from my derived class. All I did wastear out the ASSERT&nbsp; (on line 228 of xtchecklistbox.cpp<br><span style="font-family: courier new,courier,mono;">void CXTCheckListBox::DrawItem(LPDRAWITEMSTRUCT lpDIS)<br>{<br>// Must be LBS_OWNERDRAWVARIABLE | LBS_HASSTRINGS&nbsp;&nbsp;&nbsp;ASSERT((GetStyle() &amp; (LBS_OWNERDRAWVARIABLE | LBS_HASSTRINGS)) ==</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">(LBS_OWNERDRAWVARIABLE | LBS_HASSTRINGS));</span><br><br>and set the control to "Fixed" Owner drawing. This mostly fixed theissue (i.e. there is no flickering), but the drawing is not quite thesame as the standard control drawing:<br><br>a) The text is slightly too high, compared to the checkbox<br>b) The focus is not drawn around the checkmark, like the standard control.<br><br>These drawing issues are not a BIG deal for me, but I thought you should know about them.<br><br><span style="font-weight: bold;">My primary question here is: "is thisthe right way/control to go about solving the flicker for myCCheckListBoxes ?", and if so, can you remove the ASSERT that it mustbe Owner-draw variable, as owner-draw fixed seems to otherwise work.<br></span><br>Thanks <br><br>Warren<span style="font-weight: bold;"><br><br><img src="uploads/Warren/2005-12-18_120152_CCheckBoxDrawing.PNG" border="0"><br></span><br><br><br><br>]]>
   </description>
   <pubDate>Sun, 18 Dec 2005 12:02:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10245&amp;title=controls-flicker-in-resizing-dialog#10245</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntrols flicker in resizing dialog : Hi, Some classes can&amp;#039;t use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10243&amp;title=controls-flicker-in-resizing-dialog#10243</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3419<br /><strong>Posted:</strong> 18 December 2005 at 8:09am<br /><br /><P>Hi,</P><P>Some classes can't use CXTNoFlickerWnd&nbsp; (see its sources to understand how it works). </P><P>for tree cotnrols you can use CXTTreeCtrl classes.</P>]]>
   </description>
   <pubDate>Sun, 18 Dec 2005 08:09:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10243&amp;title=controls-flicker-in-resizing-dialog#10243</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntrols flicker in resizing dialog : I&amp;#039;ve got a resizing dialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10239&amp;title=controls-flicker-in-resizing-dialog#10239</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3419<br /><strong>Posted:</strong> 16 December 2005 at 11:43am<br /><br />I've got a resizing dialog (i.e. a dialog derived fromCXTResizeDialog), and a number of my controls flicker when I resizethem. I found CXTResizeGroupBox and that fixes the problem for groupboxes.<br><br>The flicker still occurs for Tree controls and Check-list-boxes (whichI use a LOT of in my application - so the flicker is quite noticable).<br><br>I tried using the CXTNoFlickerWnd, but when I tried it:<br><br>i.e. <br>writing this:<br>CXTNoFlickerWnd &lt; CCheckListBox &gt; m_list;<br>instead of:<br>CCheckListBox m_list;<br><br>The CCheckListBox did <span style="font-weight: bold;">NOT</span> drawproperly (the background of the area below where there were checkboxeswas grey, instead of white, and the area just a few pixels around thecheckboxes didn't draw properly)<br><br>Is CXTNoFlickerWnd the proper class, and I'm just doing something slightly wrong, or should I be using something else ????]]>
   </description>
   <pubDate>Fri, 16 Dec 2005 11:43:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3419&amp;PID=10239&amp;title=controls-flicker-in-resizing-dialog#10239</guid>
  </item> 
 </channel>
</rss>