<?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&#070;ormView and ScrollBars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : C&#070;ormView and ScrollBars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 03:00:14 +0000</pubDate>
  <lastBuildDate>Thu, 31 Oct 2013 21:58:47 +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=699</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&#070;ormView and ScrollBars : nice trick ;) this also could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=71765&amp;title=cformview-and-scrollbars#71765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6515">tomay3000</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 31 October 2013 at 9:58pm<br /><br />nice trick ;)<div><br></div><div>this also could work:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>DWORD dwStyle = ::GetWindowLong(m_hWnd, GWL_STYLE);</div><div>::SetWindowLong(m_hWnd, GWL_STYLE, WS_HSCROLL | WS_VSCROLL);</div><div>::SetWindowLong(m_hWnd, GWL_STYLE, dwStyle);</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 31 Oct 2013 21:58:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=71765&amp;title=cformview-and-scrollbars#71765</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : Thank you for this solution. It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=23900&amp;title=cformview-and-scrollbars#23900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3099">countersa08</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 23 June 2007 at 11:12pm<br /><br />Thank you for this solution.&nbsp; It fixed my problem too!<br>]]>
   </description>
   <pubDate>Sat, 23 Jun 2007 23:12:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=23900&amp;title=cformview-and-scrollbars#23900</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars :  I&amp;#039;ve struggled with this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=22573&amp;title=cformview-and-scrollbars#22573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2426">robin_l</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 05 May 2007 at 9:44am<br /><br /><FONT size=2><DIV>I've struggled with this for a long time and have come up with a solution that others might find useful. It seems that if you set the WS_VSCROLL and WS_HSCROLL styles then this ensures the themed scrollbars are used. However, you need to then ensure that these flags are&nbsp;restored to&nbsp;the original values (or&nbsp;resizing doesn't work properly).&nbsp;&nbsp;In your <FONT size=2>OnInitialUpdate code add the following before you do anything else:</FONT></DIV><DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT face="Courier New, Courier, mono">BOOL bisV = (GetStyle() &amp; WS_VSCROLL)!= 0;</FONT></DIV><DIV><FONT face="Courier New, Courier, mono">BOOL bisH = (GetStyle() &amp; WS_HSCROLL)!= 0;<BR></FONT></FONT><FONT color=#008000 size=2><FONT face="Courier New, Courier, mono">// add scroll bars to ensure that themed ones are used later<BR></FONT></FONT><FONT color=#008000 size=2><FONT face="Courier New, Courier, mono">// overcomes windows bug (XP)<BR></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">ModifyStyle( 0, WS_HSCROLL | WS_VSCROLL );<BR></FONT></FONT><FONT color=#008000 size=2><FONT face="Courier New, Courier, mono"><BR>// remove / put them back correctly<BR></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">ModifyStyle( WS_HSCROLL | WS_VSCROLL, (bisH ? WS_HSCROLL : 0) | (bisV ? WS_VSCROLL : 0) );</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT face="Courier New, Courier, mono">ModifyStyle(0, WS_CLIPCHILDREN|WS_CLIPSIBLINGS);</FONT></DIV></BLOCKQUOTE></FONT>]]>
   </description>
   <pubDate>Sat, 05 May 2007 09:44:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=22573&amp;title=cformview-and-scrollbars#22573</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : Larry Change the line to  Se...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4075&amp;title=cformview-and-scrollbars#4075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=504">AliRafiee</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 19 November 2004 at 10:05am<br /><br /><P>Larry</P><P>Change the line to </P><P>SetScaleToFitSize(CSize(1,1));</P><P>to get rid of the asserts, but doesn't solve the problem, it looks like a microsoft bug!</P><P>&nbsp;</P><P>Oleg,</P><P>For me that doesn't solve the problem, it just simply hids the scrollbar.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 19 Nov 2004 10:05:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4075&amp;title=cformview-and-scrollbars#4075</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : Adding SetScaleToFitSize(CSize(0));...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4074&amp;title=cformview-and-scrollbars#4074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=544">LarryWaugh</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 19 November 2004 at 8:26am<br /><br /><P>Adding SetScaleToFitSize(CSize(0)); causes a Debug&nbsp;Assertion Failed in wingdi.cpp at line 454.</P><P>This is a CXTResizeFormView derived class in a CXTSplitterWnd.</P>]]>
   </description>
   <pubDate>Fri, 19 Nov 2004 08:26:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4074&amp;title=cformview-and-scrollbars#4074</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : it is OS xp bug. Remove scrollbars: void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4060&amp;title=cformview-and-scrollbars#4060</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 18 November 2004 at 11:32pm<br /><br /><P>it is OS xp bug. Remove scrollbars:</P><P>void CSimpleForm::OnInitialUpdate() <BR>{<BR>&nbsp;CFormView::OnInitialUpdate();<BR>&nbsp;<BR>&nbsp;SetScaleToFitSize(CSize(0));<BR>&nbsp;<BR>}</P>]]>
   </description>
   <pubDate>Thu, 18 Nov 2004 23:32:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4060&amp;title=cformview-and-scrollbars#4060</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : This is a very ANNOYING problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4054&amp;title=cformview-and-scrollbars#4054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=544">LarryWaugh</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 18 November 2004 at 3:52pm<br /><br />This is a very ANNOYING problem. Does CodeJock have any input on this situation??]]>
   </description>
   <pubDate>Thu, 18 Nov 2004 15:52:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=4054&amp;title=cformview-and-scrollbars#4054</guid>
  </item> 
  <item>
   <title><![CDATA[C&#070;ormView and ScrollBars : Hi, I have an MDI application,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=1839&amp;title=cformview-and-scrollbars#1839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=504">AliRafiee</a><br /><strong>Subject:</strong> 699<br /><strong>Posted:</strong> 06 May 2004 at 4:10pm<br /><br /><P>Hi,</P><P>I have an MDI application, trying to use Office2003 theme.&nbsp; The application's View is a CXTTabView, and in the OnInitialUpdate I add a couple of views (CFormView) to the CXTTabView.&nbsp; If I resize the view so that the scrollbars show up, they flicker between gray and blue scrollbars, once I stop it displays the gray ones until I click on each part of the scroll bars, and at that point it redraws them in blue.</P><P>What am I doing wrong here?</P><P><FONT size=2>Thanks</FONT></P><P><FONT size=2>Ali</P></FONT>]]>
   </description>
   <pubDate>Thu, 06 May 2004 16:10:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=699&amp;PID=1839&amp;title=cformview-and-scrollbars#1839</guid>
  </item> 
 </channel>
</rss>