<small id='FtwnF'></small><noframes id='FtwnF'>

      <bdo id='FtwnF'></bdo><ul id='FtwnF'></ul>
  • <legend id='FtwnF'><style id='FtwnF'><dir id='FtwnF'><q id='FtwnF'></q></dir></style></legend>

      <i id='FtwnF'><tr id='FtwnF'><dt id='FtwnF'><q id='FtwnF'><span id='FtwnF'><b id='FtwnF'><form id='FtwnF'><ins id='FtwnF'></ins><ul id='FtwnF'></ul><sub id='FtwnF'></sub></form><legend id='FtwnF'></legend><bdo id='FtwnF'><pre id='FtwnF'><center id='FtwnF'></center></pre></bdo></b><th id='FtwnF'></th></span></q></dt></tr></i><div id='FtwnF'><tfoot id='FtwnF'></tfoot><dl id='FtwnF'><fieldset id='FtwnF'></fieldset></dl></div>
        <tfoot id='FtwnF'></tfoot>

        带有 desktop.ini &amp; 的自定义文件夹图标瞬间提神

        Custom folder icons with desktop.ini amp; instant refreshing(带有 desktop.ini amp; 的自定义文件夹图标瞬间提神)

            • <bdo id='8BfgE'></bdo><ul id='8BfgE'></ul>
            • <legend id='8BfgE'><style id='8BfgE'><dir id='8BfgE'><q id='8BfgE'></q></dir></style></legend>
              <i id='8BfgE'><tr id='8BfgE'><dt id='8BfgE'><q id='8BfgE'><span id='8BfgE'><b id='8BfgE'><form id='8BfgE'><ins id='8BfgE'></ins><ul id='8BfgE'></ul><sub id='8BfgE'></sub></form><legend id='8BfgE'></legend><bdo id='8BfgE'><pre id='8BfgE'><center id='8BfgE'></center></pre></bdo></b><th id='8BfgE'></th></span></q></dt></tr></i><div id='8BfgE'><tfoot id='8BfgE'></tfoot><dl id='8BfgE'><fieldset id='8BfgE'></fieldset></dl></div>
                <tbody id='8BfgE'></tbody>
            • <tfoot id='8BfgE'></tfoot>

                <small id='8BfgE'></small><noframes id='8BfgE'>

                  本文介绍了带有 desktop.ini &amp; 的自定义文件夹图标瞬间提神的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的任务是创建一个簿记程序,该程序会跟踪读取文件和文件夹的时间的一些统计信息.与 Google Drive 和 TortoiseSVN 类似,文件夹和文件图标应反映某些更改.例如,带有未在某台计算机上查看过的文件的 USB 带有x",而查看过的文件带有o".

                  I am tasked with creating a book-keeping program that tracks some statistics of when files and folders are read. Similar to Google Drive and TortoiseSVN, the folder and file icons should reflect certain changes. For instance, a USB with files that haven't been viewed on a certain computer have an 'x', whereas viewed files get a 'o'.

                  我可以使用 this Windows API 和图标(以及其他一些不错的选项)可以通过 desktop.ini 文件进行更改 [1,2,3,4].

                  I can track file usage with this Windows API, and icons (as well as some other nice options) can be changed by the desktop.ini files [1,2,3,4].

                  在手动处理 desktop.ini 文件的同时,我已经成功地更改了图标、描述和其他有趣的东西.问题是在 Windows 再次解析 desktop.ini 文件之前,新更改不会更新.这往往会在几秒钟到几分钟之间不一致地发生.F5 刷新不会强制重新解析,但会在发生重新解析时更新图像.

                  While manually messing around with desktop.ini files, I've successfully changed icons, descriptions, and other fun stuff. The problem is that the new changes don't update until Windows parses the desktop.ini file again. This tends to happen inconsistently between a few seconds to several minutes. F5 refreshes do not force a reparse, but will update the image if a reparse has occurred.

                  如何强制 Windows 手动和(更重要的是)在 C++ 程序中重新解析 desktop.ini 文件?

                  是否有替代的 C++ Windows API 可以立即更改文件夹图标?

                  推荐答案

                  如果您编辑 desktop.ini,它资源管理器将不会自动刷新.使用 SHGetSetFolderCustomSettings 写入:

                  If you edit desktop.ini, it Explorer won't refresh automatically. Use SHGetSetFolderCustomSettings to write to it:

                  SHFOLDERCUSTOMSETTINGS fcs = {0};
                  fcs.dwSize = sizeof(SHFOLDERCUSTOMSETTINGS);
                  fcs.dwMask = FCSM_ICONFILE;
                  fcs.pszIconFile = iconPath;
                  fcs.cchIconFile = 0;
                  fcs.iIconIndex = iconIndex;
                  SHGetSetFolderCustomSettings(&fcs, folderPath, FCS_FORCEWRITE);
                  

                  这篇关于带有 desktop.ini &amp; 的自定义文件夹图标瞬间提神的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Type(::x); valid?(是类型(::x);有效的?)
                  Difference between an inline function and static inline function(内联函数和静态内联函数的区别)
                  Compilation fails randomly: quot;cannot open program databasequot;(编译随机失败:“无法打开程序数据库)
                  Too many initializers error for a simple array in bcc32(bcc32 中的简单数组的初始值设定项过多错误)
                  No Member named stoi in namespace std(命名空间 std 中没有名为 stoi 的成员)
                  Error using a constexpr as a template parameter within the same class(在同一个类中使用 constexpr 作为模板参数时出错)

                  <small id='tWtSA'></small><noframes id='tWtSA'>

                    • <bdo id='tWtSA'></bdo><ul id='tWtSA'></ul>
                          <tbody id='tWtSA'></tbody>
                          <i id='tWtSA'><tr id='tWtSA'><dt id='tWtSA'><q id='tWtSA'><span id='tWtSA'><b id='tWtSA'><form id='tWtSA'><ins id='tWtSA'></ins><ul id='tWtSA'></ul><sub id='tWtSA'></sub></form><legend id='tWtSA'></legend><bdo id='tWtSA'><pre id='tWtSA'><center id='tWtSA'></center></pre></bdo></b><th id='tWtSA'></th></span></q></dt></tr></i><div id='tWtSA'><tfoot id='tWtSA'></tfoot><dl id='tWtSA'><fieldset id='tWtSA'></fieldset></dl></div>

                            <tfoot id='tWtSA'></tfoot>
                            <legend id='tWtSA'><style id='tWtSA'><dir id='tWtSA'><q id='tWtSA'></q></dir></style></legend>