{"id":27473,"date":"2007-03-28T10:00:00","date_gmt":"2007-03-28T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2007\/03\/28\/why-are-there-both-tbstyle_ex_vertical-and-ccs_vert\/"},"modified":"2007-03-28T10:00:00","modified_gmt":"2007-03-28T10:00:00","slug":"why-are-there-both-tbstyle_ex_vertical-and-ccs_vert","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20070328-00\/?p=27473","title":{"rendered":"Why are there both TBSTYLE_EX_VERTICAL and CCS_VERT?"},"content":{"rendered":"<p>There are two ways to make a vertical toolbar. You can use the common <code>CCS_VERT<\/code> style, or you can use the <code>TBSTYLE_EX_VERTICAL<\/code> extended style which is specific to the toolbar. Why are there two ways of doing the same thing?\n Because we messed up.\n Whoever created the <code>TBSTYLE_EX_VERTICAL<\/code> extended style didn&#8217;t realize that there was already a perfectly good way of specifying a vertical toolbar (namely, <code>CCS_VERT<\/code>).\n What&#8217;s worse, some vertical behavior is controlled by <code>CCS_VERT<\/code> and some by <code>TBSTYLE_EX_VERTICAL<\/code>. So if you want a vertical toolbar, you probably want to set both styles to cover all your bases on Windows&nbsp;XP.\n Unfortunately, the story doesn&#8217;t get any better. Once this mistake was discovered, work was done to try to get the two styles in sync, so that setting one automatically set the other. The idea was to ensure that everybody got consistent behavior instead of getting half-and-half if you, say, turned on <code>CCS_VERT<\/code> and forgot to turn on <code>TBSTYLE_EX_VERTICAL<\/code>. But this was itself a failure, because there were some programs that let the two styles fall out of sync on purpose because they <i>liked<\/i> the half-and-half behavior.\n It&#8217;s a mess. We&#8217;re sorry.<\/p>\n<p> <b>Pre-emptive snarky comment<\/b>: &#8220;This is why Windows sucks.&#8221; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two ways to make a vertical toolbar. You can use the common CCS_VERT style, or you can use the TBSTYLE_EX_VERTICAL extended style which is specific to the toolbar. Why are there two ways of doing the same thing? Because we messed up. Whoever created the TBSTYLE_EX_VERTICAL extended style didn&#8217;t realize that there was [&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":[26],"class_list":["post-27473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>There are two ways to make a vertical toolbar. You can use the common CCS_VERT style, or you can use the TBSTYLE_EX_VERTICAL extended style which is specific to the toolbar. Why are there two ways of doing the same thing? Because we messed up. Whoever created the TBSTYLE_EX_VERTICAL extended style didn&#8217;t realize that there was [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/27473","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=27473"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/27473\/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=27473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=27473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=27473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}