{"id":109372,"date":"2024-02-07T07:00:00","date_gmt":"2024-02-07T15:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=109372"},"modified":"2024-02-07T09:11:19","modified_gmt":"2024-02-07T17:11:19","slug":"20240207-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20240207-00\/?p=109372","title":{"rendered":"Why doesn&#8217;t my program get fancy drag\/drop effects in high contrast mode with <CODE>CLSID_<WBR>Drag&shy;Drop&shy;Helper<\/CODE>?"},"content":{"rendered":"<p>When you <a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20210512-00\/?p=105208\"> use the Drag-Drop Helper Object to get Explorer&#8217;s fancy drag\/drop effects in your own program<\/a>, you may find that if the system is in High Contrast mode, then there is no visual feedback.<\/p>\n<p>First of all, good job on testing your program in High Contrast mode.<\/p>\n<p>Up until Windows 7, the Drag-Drop Helper Object does not show fancy drag\/drop effects in High Contrast mode because it didn&#8217;t render in a High Contrast-y way.<\/p>\n<p>Windows 8 updated the graphics to support High Contrast rendering. But for compatibility reasons, you have to opt in by listing Windows 8 among the supported operating systems in your manifest:<\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?&gt;\r\n&lt;assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\"&gt;\r\n  &lt;compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\"&gt;\r\n    &lt;application&gt;\r\n        <span style=\"border: solid 1px currentcolor;\">&lt;supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\"\/&gt;<\/span>\r\n    &lt;\/application&gt;\r\n  &lt;\/compatibility&gt;\r\n&lt;\/assembly&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You have to upgrade your manifest.<\/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-109372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>You have to upgrade your manifest.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109372","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=109372"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109372\/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=109372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=109372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=109372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}