{"id":40903,"date":"2004-01-26T07:00:00","date_gmt":"2004-01-26T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/01\/26\/the-hollow-brush\/"},"modified":"2004-01-26T07:00:00","modified_gmt":"2004-01-26T07:00:00","slug":"the-hollow-brush","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040126-00\/?p=40903","title":{"rendered":"The hollow brush"},"content":{"rendered":"<p>What is the hollow brush for?\n The hollow brush is a brush that doesn&#8217;t do anything. You can use it when you&#8217;re forced to use a brush but you don&#8217;t want to.\n As one example, you can use it as your class brush. Then when your program stops responding and Windows decide to do the &#8220;white flash&#8221; (see yesterday&#8217;s entry), it grabs the hollow brush and ends up not drawing anything. (At least, that&#8217;s how it worked on Windows 2000. Things may be different on XP.)<\/p>\n<p> Another place you can use the hollow brush is when handling the WM_CTLCOLOR* messages. Those messages require you to return a brush, which will be used to erase the background. If you don&#8217;t want to erase the background, a hollow brush does the trick. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the hollow brush for? The hollow brush is a brush that doesn&#8217;t do anything. You can use it when you&#8217;re forced to use a brush but you don&#8217;t want to. As one example, you can use it as your class brush. Then when your program stops responding and Windows decide to do the [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-40903","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>What is the hollow brush for? The hollow brush is a brush that doesn&#8217;t do anything. You can use it when you&#8217;re forced to use a brush but you don&#8217;t want to. As one example, you can use it as your class brush. Then when your program stops responding and Windows decide to do the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=40903"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40903\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=40903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=40903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=40903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}