<?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 : Resize display issue of scroll bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Resize display issue of scroll bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 11:26:19 +0000</pubDate>
  <lastBuildDate>Fri, 11 Apr 2008 17:26:10 +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=9570</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[Resize display issue of scroll bar : Update: My change produced lots...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=33535&amp;title=resize-display-issue-of-scroll-bar#33535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 9570<br /><strong>Posted:</strong> 11 April 2008 at 5:26pm<br /><br />Update: My change produced lots and lots of flashing. I could briefly see all the controls display starting about halfway down the panel so that I was seeing "double".<DIV>&nbsp;</DIV><DIV>I eventually tripped upon adding&nbsp;the SWP_NOCOPYBITS&nbsp;flag to the SetWindowPos call.</DIV><DIV>&nbsp;</DIV><DIV>That took care of all the flashing I saw (and was originally trying to avoid using the no redraw call).</DIV><DIV>&nbsp;</DIV><DIV>Things move much more smoothly (except on Vista but that's yet another post).</DIV>]]>
   </description>
   <pubDate>Fri, 11 Apr 2008 17:26:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=33535&amp;title=resize-display-issue-of-scroll-bar#33535</guid>
  </item> 
  <item>
   <title><![CDATA[Resize display issue of scroll bar : ok :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31170&amp;title=resize-display-issue-of-scroll-bar#31170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9570<br /><strong>Posted:</strong> 14 February 2008 at 1:06am<br /><br /><P>ok :)</P>]]>
   </description>
   <pubDate>Thu, 14 Feb 2008 01:06:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31170&amp;title=resize-display-issue-of-scroll-bar#31170</guid>
  </item> 
  <item>
   <title><![CDATA[Resize display issue of scroll bar : You are correct. When I called...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31150&amp;title=resize-display-issue-of-scroll-bar#31150</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 9570<br /><strong>Posted:</strong> 13 February 2008 at 12:12pm<br /><br />You are correct. When I called SetWindowPos, I was adding SWP_NOREDRAW to the flags argument.<DIV>&nbsp;</DIV><DIV>I was doing that to both a dialog I have at the top of my docking pane and the task panel I have under the dialog.</DIV><DIV>&nbsp;</DIV><DIV>I then called the Reposition(FALSE), Invalidate and UpdateWindow() on the task panel after the SetWindowPos calls. But the task panel doesn't seem to&nbsp;cause the&nbsp;scroll bars to redisplay.</DIV><DIV>&nbsp;</DIV><DIV>So I removed the SWP_NOREDRAW flag and the calls to repostion, invalidate and update the window since I could not figure out how to force the scroll bar to redisplay.</DIV><DIV>&nbsp;</DIV><DIV>The user can see a bit of flashing but when all is done the display is correct. <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 13 Feb 2008 12:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31150&amp;title=resize-display-issue-of-scroll-bar#31150</guid>
  </item> 
  <item>
   <title><![CDATA[Resize display issue of scroll bar : Hi, Think its something in your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31137&amp;title=resize-display-issue-of-scroll-bar#31137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9570<br /><strong>Posted:</strong> 13 February 2008 at 1:16am<br /><br /><DIV>Hi,</DIV><DIV>Think its something in your code. I never saw same :(</DIV>]]>
   </description>
   <pubDate>Wed, 13 Feb 2008 01:16:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31137&amp;title=resize-display-issue-of-scroll-bar#31137</guid>
  </item> 
  <item>
   <title><![CDATA[Resize display issue of scroll bar : I have a task panel inside a docking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31119&amp;title=resize-display-issue-of-scroll-bar#31119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 9570<br /><strong>Posted:</strong> 12 February 2008 at 4:56pm<br /><br />I have a task panel inside a docking pane. It is hosted by the dialog inserted into the pane that is its parent window.<DIV>&nbsp;</DIV><DIV>When the user resizes the docking pane to make it narrower, if the panel has a scroll bar, the display is not correct after the resize. My resizing is not constant (no update until I release the mouse).</DIV><DIV>&nbsp;</DIV><DIV>In my dialog's (the parent) OnSize, I resize the taskpanel and then do the following:</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>m_TaskPanel</FONT><FONT color=#0000ff size=2>.</FONT><FONT size=2>Reposition</FONT><FONT color=#0000ff size=2>(</FONT><FONT size=2>FALSE</FONT><FONT color=#0000ff size=2>);</FONT></DIV><DIV><FONT size=2>m_TaskPanel</FONT><FONT color=#0000ff size=2>.</FONT><FONT size=2>Invalidate</FONT><FONT color=#0000ff size=2>();</FONT></DIV><DIV><FONT size=2>m_TaskPanel</FONT><FONT color=#0000ff size=2>.</FONT><FONT size=2>UpdateWindow();</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I have tried passing TRUE to Reposition. I have also tried calling the panel's Redraw method.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When the panel is stretched, I have no issue but when it is made narrower, if the panel has a scroll bar, the area for the scroll bar is not refreshed correctly.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0000ff><FONT color=#000000>How do I have the panel update the scroll bar too?</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#0000ff><FONT color=#000000></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0000ff><FONT color=#000000>I am adding an image. In the image on the left one can see the panel before resizing. The middle image is after the resize occurs. The blue "scroller" that one can click on to scroll is not realy there (note the missing "arrow" at the top of the scroll bar and part of the group header that appears where the arrow should be). That is, if I click on it and try to drag it nothing happens. I have to force the app to update the window (by swithing to another app and back) or resize again to be slightly larger for the display to correct itself. The image on the right is the display if I simply resize to be a pixel or two bigger (apparently any width increase fixes the issue).</FONT></FONT></FONT></DIV><DIV><FONT size=2><FONT color=#0000ff><FONT color=#000000></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#0000ff><img src="https://forum.codejock.com/uploads/20080212_165207_scroll1.bmp" border="0"></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 12 Feb 2008 16:56:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9570&amp;PID=31119&amp;title=resize-display-issue-of-scroll-bar#31119</guid>
  </item> 
 </channel>
</rss>