Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to find the top-most window the mouse is over (Linux)?
Re: How to find the top-most window the mouse is over (Linux)? [message #7819 is a reply to message #7818] |
Wed, 24 January 2007 13:42   |
James Thomas
Messages: 26 Registered: June 2006
|
Promising Member |
|
|
luzr wrote on Wed, 24 January 2007 07:34 |
Actually, it is possible to hook mouse messages:
static void Ctrl::InstallMouseHook(MouseHook hook);
See CtrlLib/ToolTip.cpp for usage example.
OTOH, I do not think this is a good idea for D&D.
|
Definition of MouseHook:
typedef bool (*MouseHook)(Ctrl *ctrl, bool inframe, int event, Point p, int zdelta, dword keyflags);
I can intercept the CursorImage message with a mouse hook, but there is no way that I can see of returning the Image I want.
But I agree that this would not be a sensible way of doing it anyway.
Cheers,
JT
[Updated on: Wed, 24 January 2007 13:42] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jun 07 11:31:36 CEST 2025
Total time taken to generate the page: 0.05375 seconds
|