<?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 : How to force redraw &#111;n PropertyGrid?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : How to force redraw &#111;n PropertyGrid?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 06:35:04 +0000</pubDate>
  <lastBuildDate>Tue, 08 Jun 2004 11:17:28 +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=815</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[How to force redraw &#111;n PropertyGrid? : For performance reasons, I want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=815&amp;PID=2160&amp;title=how-to-force-redraw-on-propertygrid#2160</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 815<br /><strong>Posted:</strong> 08 June 2004 at 11:17am<br /><br /><P>For performance reasons, I want to prevent the PropertyGrid from redrawing while I clear categories and items.&nbsp; The two methods I'm aware of in Visual Basic to do this are the 'LockWindowUpdate' function and the 'WM_SETREDRAW' message.</P><P>'WM_SETREDRAW' is the preferred method since 'LockWindowUpdate' only works on one control at a time.&nbsp; When I execute the following command:</P><P>SendMessage PropertyGrid.hWnd, WM_SETREDRAW, 0, 0</P><P>The control stops redrawing (as expected).&nbsp; When I execute the following command:</P><P>SendMessage PropertyGrid.hWnd, WM_SETREDRAW, 1, 0</P><P>The redraw is turned back on BUT only for future drawing.&nbsp; It does not draw that last changes before redraw was turned back on.&nbsp; Is there a way to force the PropertyGrid to redraw after I turn drawing back on?&nbsp; I've tried the following:</P><P>RedrawWindow PropertyGrid.hWnd, ByVal 0&amp;, ByVal 0&amp;, RDW_INVALIDATE</P><P>But it the PropertyGrid still didn't redraw.&nbsp; Any suggestions are greatly appreciated on how to control the Redraw of the PropertyGrid.&nbsp; Thanks in advance!</P>]]>
   </description>
   <pubDate>Tue, 08 Jun 2004 11:17:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=815&amp;PID=2160&amp;title=how-to-force-redraw-on-propertygrid#2160</guid>
  </item> 
 </channel>
</rss>