{"id":153,"date":"2014-08-25T07:00:00","date_gmt":"2014-08-25T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2014\/08\/25\/how-do-i-read-the-double-click-to-open-an-item-single-click-to-select-setting-in-folder-options\/"},"modified":"2014-08-25T07:00:00","modified_gmt":"2014-08-25T07:00:00","slug":"how-do-i-read-the-double-click-to-open-an-item-single-click-to-select-setting-in-folder-options","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20140825-00\/?p=153","title":{"rendered":"How do I read the &#034;Double-click to open an item (single-click to select)&#034; setting in Folder Options?"},"content":{"rendered":"<p>\nToday&#8217;s Little Program reports whether the\n<i>Double-click to open an item (single-click to select)<\/i>\noption is selected in the <i>Folder Options<\/i> dialog.\nA customer wanted to know how to do this,\npresumably so that their program\nwould respect the setting and adjust its user interface\nto match.\n<\/p>\n<pre>\n#include &lt;windows.h&gt;\n#include &lt;shlobj.h&gt;\n#include &lt;stdio.h&gt;\nBOOL IsDoubleClickToOpenEnabled()\n{\n SHELLFLAGSTATE sfs;\n SHGetSettings(&amp;sfs, SSF_DOUBLECLICKINWEBVIEW);\n return sfs.fDoubleClickInWebView;\n}\nint __cdecl main(int, char**)\n{\n printf(\"Double-click is %s\\n\",\n        IsDoubleClickToOpenEnabled() ? \"enabled\" : \"disabled\");\n return 0;\n}\n<\/pre>\n<p>\nThe flag and member name is kind of weird.\nThe ability to single-click to open an item was\nintroduced as part of the Windows Desktop Update\nwhich came with Internet Explorer&nbsp;4.\nThis update made Explorer more Web-like,\nwith single-click to activate and underlines appearing\non hover.\n(This was back in the day when making everything more\nWeb-like was the new hotness.)\n<\/p>\n<p>\nThe internal name of this Explorer feature was <i>WebView<\/i>,\nand that name is reflected in the flag and structure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s Little Program reports whether the Double-click to open an item (single-click to select) option is selected in the Folder Options dialog. A customer wanted to know how to do this, presumably so that their program would respect the setting and adjust its user interface to match. #include &lt;windows.h&gt; #include &lt;shlobj.h&gt; #include &lt;stdio.h&gt; BOOL IsDoubleClickToOpenEnabled() [&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-153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Today&#8217;s Little Program reports whether the Double-click to open an item (single-click to select) option is selected in the Folder Options dialog. A customer wanted to know how to do this, presumably so that their program would respect the setting and adjust its user interface to match. #include &lt;windows.h&gt; #include &lt;shlobj.h&gt; #include &lt;stdio.h&gt; BOOL IsDoubleClickToOpenEnabled() [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/153","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=153"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/153\/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=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}