Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Incorrect ToolTip icon for Gallery Items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Incorrect ToolTip icon for Gallery Items

 Post Reply Post Reply
Author
Message
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post Topic: Incorrect ToolTip icon for Gallery Items
    Posted: 16 October 2007 at 11:26am
Hi,

I found that the icon shown in the tooltip for gallery items is wrong. It is actually shifted by 1.

While I was trying to figure out what's wrong, I got the CXTPControlGallery::GetTooltip function.

This part seems to prepare the tooltip for a particular gallery item


    RECT rcItem;
    int nIndex = HitTestItem(*pPoint, &rcItem);
    if (nIndex != -1)
    {
        *nHit = GetItem(nIndex)->GetID() + 1;
        *lpRectTip = rcItem;

        return GetItem(nIndex)->GetToolTip();
    }

The problem I have encountered seems to be related to "+1" in this line:
      *nHit = GetItem(nIndex)->GetID() + 1;

If I remove it, the tooltip is shown corretly. However I'm not sure if I didn't break some else.

Can you please confirm, that my fix is correct?

Regards,
Pavol

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2007 at 1:27am
Thanks,
we will change it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.