如何隐藏桌面上的Internet Explorer图标?
如果用C++ builder 隐藏桌面上的Internet Explorer图标?
急!!!!
[解决办法]
一声叹息。还是看看真正的解决办法吧:
// #include <shlobj.h>#include <registry.hpp>void __stdcall CrnHideDesktopIcons(String strCLSID, BOOL bShow){ TRegistry *reg = new TRegistry; try { reg->RootKey = HKEY_CURRENT_USER; reg->OpenKey( TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\") TEXT("HideDesktopIcons\\ClassicStartMenu"), true); reg->WriteInteger(strCLSID, bShow); reg->OpenKey( TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\") TEXT("HideDesktopIcons\\NewStartPanel"), true); reg->WriteInteger(strCLSID, bShow); reg->CloseKey(); } __finally { delete reg; } // 强制刷新桌面 ::SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, 0, 0);}