IQueryInfo: GetInfoTip() - How get the default Window tip text?
-
Hi all... in my application i want get the original GetInfoTip() text, after it i want edit and show the new modified Text. Now i use IQueryInfo for "hook" the GetInfoTip() function and work very well, but i must rewrite all file information tip text myself.. I have added:
NoRemove *
{
NoRemove ShellEx
{
{00021500-0000-0000-C000-000000000046} = s '{MYKEY}'
}
}It's for all file and i have some trouble for reset the InfoTip text... any mode for get original default? I have tryed this code:
IShellFolder* shFolder = NULL;
IQueryInfo* pInfo;LPITEMIDLIST pidl = NULL;
SHGetDesktopFolder(&shFolder);
SHILCreateFromPath(file, &pidl, 0);if (SUCCEEDED(shFolder->GetUIObjectOf(NULL, 1, (LPCITEMIDLIST*)&pidl, IID_IQueryInfo, NULL, (void**)&pInfo)))
{
pInfo->GetInfoTip(0, &pwszTip);
pInfo->Release();if (pwszTip) { MessageBox(NULL, pwszTip, NULL, MB\_OK); }
}
But it still show the tip text of My Computer icon :( Thanks in advance.
-
Hi all... in my application i want get the original GetInfoTip() text, after it i want edit and show the new modified Text. Now i use IQueryInfo for "hook" the GetInfoTip() function and work very well, but i must rewrite all file information tip text myself.. I have added:
NoRemove *
{
NoRemove ShellEx
{
{00021500-0000-0000-C000-000000000046} = s '{MYKEY}'
}
}It's for all file and i have some trouble for reset the InfoTip text... any mode for get original default? I have tryed this code:
IShellFolder* shFolder = NULL;
IQueryInfo* pInfo;LPITEMIDLIST pidl = NULL;
SHGetDesktopFolder(&shFolder);
SHILCreateFromPath(file, &pidl, 0);if (SUCCEEDED(shFolder->GetUIObjectOf(NULL, 1, (LPCITEMIDLIST*)&pidl, IID_IQueryInfo, NULL, (void**)&pInfo)))
{
pInfo->GetInfoTip(0, &pwszTip);
pInfo->Release();if (pwszTip) { MessageBox(NULL, pwszTip, NULL, MB\_OK); }
}
But it still show the tip text of My Computer icon :( Thanks in advance.
-
Did You check this code for any other type of files (.cpp, .h or anything else) ? May be Shell does not analyze registry entry *.