{"id":32743,"date":"2006-01-06T09:58:35","date_gmt":"2006-01-06T09:58:35","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2006\/01\/06\/why-do-image-lists-and-tool-bars-use-horizontal-strips-if-vertical-is-so-much-better\/"},"modified":"2006-01-06T09:58:35","modified_gmt":"2006-01-06T09:58:35","slug":"why-do-image-lists-and-tool-bars-use-horizontal-strips-if-vertical-is-so-much-better","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20060106-35\/?p=32743","title":{"rendered":"Why do image lists and tool bars use horizontal strips if vertical is so much better?"},"content":{"rendered":"<p> Two people pointed out that <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2005\/08\/05\/448073.aspx#448492\"> the <code>ImageList_Add<\/code> function<\/a> and <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2005\/08\/05\/448073.aspx#448127\"> toolbars<\/a> use horizontal strips even though we learned that vertical strips are much more efficient. While it&#8217;s true that the images are passed to the <code>ImageList_Add<\/code> and <code>CreateToolbarEx<\/code> functions in horizontal strips, the image list and toolbar code copy them to a vertical strip. <\/p>\n<p> In other words, the horizontal strip is merely an interchange format. Internally, the image list and toolbar use the more efficient vertical arrangement. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two people pointed out that the ImageList_Add function and toolbars use horizontal strips even though we learned that vertical strips are much more efficient. While it&#8217;s true that the images are passed to the ImageList_Add and CreateToolbarEx functions in horizontal strips, the image list and toolbar code copy them to a vertical strip. In other [&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-32743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Two people pointed out that the ImageList_Add function and toolbars use horizontal strips even though we learned that vertical strips are much more efficient. While it&#8217;s true that the images are passed to the ImageList_Add and CreateToolbarEx functions in horizontal strips, the image list and toolbar code copy them to a vertical strip. In other [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/32743","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=32743"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/32743\/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=32743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=32743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=32743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}