Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTipWindow bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTipWindow bug

 Post Reply Post Reply
Author
Message
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Topic: CXTTipWindow bug
    Posted: 24 February 2006 at 3:38am
Hi!

XTP 9.70

I realized, that when a CXTTipWindow based tooltip window is to close to the screen border, the tooltip isnt always displayed if m_rectTipArea is used.

m_rcScreenWindow gets modified in the case that the tooltip window is exceeding the screen area within InitializeSize() but m_rectTipArea remains the same.

therefore the code within OnMouseMove() doesnt work correctly because point is relative to the modified position of the tipwindow and is used with the unmodified m_rectTipArea. Thats why the tooltip window gets hidden ALTOUGH the mouse cursor is within the tiparea:

CXTTipWindow::OnMouseMove(UINT nFlags, CPoint point)
{
    if (!m_rectTipArea.IsRectNull() && !m_rectTipArea.PtInRect(point))
        HideTipWindow();
}

I need a possibility to solve this and would appreciate any commentd on how to fix this problem!

regards,
Hans

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.046 seconds.