我需要 MFC 自动创建的 CShellManager 吗?
Do I need the MFC auto-created CShellManager?
我在 Visual Studio 2010 年完成了一个使用 MFC C++ 编写的应用程序。以下行是在我的主源文件中创建的。
// Create the shell manager, in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;
我从不使用 *pShellManager。这是 "boiler plate" 代码,在我的应用程序最终发布之前可以安全地注释掉吗? Shell 管理器是否用于我不知道的事情?
CShellManager
包装一些 Windows Shell 例程来实现 Windows 资源管理器树视图 用于显示文件系统对象(驱动器、目录、文件)等。它也用于 CMFCEditBrowseCtrl::EnableFolderBrowseButton()
。
不需要的请注释掉。
我在 Visual Studio 2010 年完成了一个使用 MFC C++ 编写的应用程序。以下行是在我的主源文件中创建的。
// Create the shell manager, in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;
我从不使用 *pShellManager。这是 "boiler plate" 代码,在我的应用程序最终发布之前可以安全地注释掉吗? Shell 管理器是否用于我不知道的事情?
CShellManager
包装一些 Windows Shell 例程来实现 Windows 资源管理器树视图 用于显示文件系统对象(驱动器、目录、文件)等。它也用于 CMFCEditBrowseCtrl::EnableFolderBrowseButton()
。
不需要的请注释掉。