Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. IQueryInfo: GetInfoTip() - How get the default Window tip text?

IQueryInfo: GetInfoTip() - How get the default Window tip text?

Scheduled Pinned Locked Moved COM
questionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Emulator
    wrote on last edited by
    #1

    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.

    E 1 Reply Last reply
    0
    • E Emulator

      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.

      E Offline
      E Offline
      Emulator
      wrote on last edited by
      #2

      anyone??? :(

      modified on Saturday, October 10, 2009 4:33 PM

      C 1 Reply Last reply
      0
      • E Emulator

        anyone??? :(

        modified on Saturday, October 10, 2009 4:33 PM

        C Offline
        C Offline
        cariolihome
        wrote on last edited by
        #3

        Did You check this code for any other type of files (.cpp, .h or anything else) ? May be Shell does not analyze registry entry *.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups