{"id":14373,"date":"2010-04-08T07:00:00","date_gmt":"2010-04-08T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2010\/04\/08\/why-doesnt-ss_whiterect-actually-draw-a-white-rectangle\/"},"modified":"2010-04-08T07:00:00","modified_gmt":"2010-04-08T07:00:00","slug":"why-doesnt-ss_whiterect-actually-draw-a-white-rectangle","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20100408-00\/?p=14373","title":{"rendered":"Why doesn&#039;t SS_WHITERECT actually draw a white rectangle?"},"content":{"rendered":"<p>There are six styles available to the static controls which draw frames and rectangles in one of three fixed colors:<\/p>\n<table border=\"0\">\n<tr>\n<td><code>SS_BLACKRECT<\/code><\/td>\n<td><code>SS_BLACKFRAME<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>SS_GRAYRECT<\/code><\/td>\n<td><code>SS_GRAYFRAME<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>SS_WHITERECT<\/code><\/td>\n<td><code>SS_WHITEFRAME<\/code><\/td>\n<\/tr>\n<\/table>\n<p> But if you actually create a static control with one of these styles, you&#8217;ll find that the color isn&#8217;t actually black, gray, or white.\n So why are they called black, gray, and white?\n Because they used to be black, gray, and white.<\/p>\n<p> <a href=\"http:\/\/support.microsoft.com\/kb\/125684\"> Knowledge Base article 125684<\/a> gives the history behind these styles. Back in the 16-bit days, these styles really did give you black, gray, and white, or at least they did if you used the default color scheme. Windows&nbsp;95 shifted from using the window colors to the 3D colors, presumably to give the system a less harsh look. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are six styles available to the static controls which draw frames and rectangles in one of three fixed colors: SS_BLACKRECT SS_BLACKFRAME SS_GRAYRECT SS_GRAYFRAME SS_WHITERECT SS_WHITEFRAME But if you actually create a static control with one of these styles, you&#8217;ll find that the color isn&#8217;t actually black, gray, or white. So why are they called [&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":[2],"class_list":["post-14373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>There are six styles available to the static controls which draw frames and rectangles in one of three fixed colors: SS_BLACKRECT SS_BLACKFRAME SS_GRAYRECT SS_GRAYFRAME SS_WHITERECT SS_WHITEFRAME But if you actually create a static control with one of these styles, you&#8217;ll find that the color isn&#8217;t actually black, gray, or white. So why are they called [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/14373","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=14373"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/14373\/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=14373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=14373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=14373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}