Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
James Thomas is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Appearance of disabled Button/ButtonOption does not match when using images
Next Topic: Grabbing mouse events
Goto Forum:
  


Current Time: Sat Jun 07 11:31:36 CEST 2025

Total time taken to generate the page: 0.05375 seconds