CXTTipWindow, dont get messages |
Post Reply |
Author | |
Gandaman
Newbie Joined: 30 May 2006 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 30 May 2006 at 3:18pm |
Good stuff. Thanks for the help Dave, Oleg!
|
|
DaveS
Groupie Joined: 18 February 2005 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Yes, Oleg solved it after I opened a support case. In a class derived from CXTTipWindow, catch ON_WM_LBUTTONDOWN and add code void CTestTipWindow::OnLButtonDown(UINT nFlags, CPoint point) { HideTipWindow(); mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); } This hides the tip window AND sends the owner the first click, such that a subsequent second click gets properly recognized as a double click.
|
|
Gandaman
Newbie Joined: 30 May 2006 Location: Canada Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Has there been a solution to this issue? We are having the same problem.
|
|
DaveS
Groupie Joined: 18 February 2005 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
No, I didn't hide the tooltip on WM_LBUTTONDOWN handler in parent class. If I do that, I still miss the first double click, but then since the tooltip is gone if I double click again the parent gets it. Catching WM_LBUTTONDBLCLK in my CXTTipWindow-derived class is what I tried before. I do not receive any double clicks in my derived class handler. Maybe something in CXTipWindow::ForwardMessage (which is called for the first click) defeats the mechanism that turns two WM_LBUTTONDOWNs into a WM_LBUTTONDLBCLK?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Do you hide tooltip after first click? Or you want to double click on tooltip and forward it to owner? Try to catch WM_LBUTTONDBLCLICK on overriden class and manually send it to owner. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
DaveS
Groupie Joined: 18 February 2005 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Sorry, that did not seem to make any difference regarding the tip-owning window getting WM_MOUSEMOVES. However, I just noticed there was a mistake in my previous post: normal mouse click messages are getting forwarded. However, mouse double click messages are not. To get double clicks, I tried overriding CXTTipWindow::Create and supplying CS_DBLCLKS to the class style, then adding a ON_WM_LBUTTONDBLCLK handler to my tip window class, but that didn't work for some reason. Any advice? Thanks
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, try to override CXTTipWindow, addd message map and add ON_WM_NCHITTEST() LRESULT CTipWindow::OnNcHitTest(CPoint) |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
DaveS
Groupie Joined: 18 February 2005 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Any news on this issue? |
|
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
|
Hi,
not yet. I'll send a bug report. Alex |
|
DaveS
Groupie Joined: 18 February 2005 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
I am having this problem also: while the tip is showing, it seems to eat mouse click messages as well. Did you manage to get around this? Thanks
|
|
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
|
Hi,
I'm trying to use the CXTTipWindow exactly like in the demo, but 'm not able to realize the exact behaviour of it. While the tooltip is displayed, I don't get any messages in my parent window, and therefore I can't react on WM_MOUSEMOVES etc. to modify the tooltip's text, position... Where's the secret behind it ? Thx in advance, Alex |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |