Get window or wxobject at particular point (at cursor position) Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
tatarinrafa
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Mar 12, 2022 8:46 pm

Get window or wxobject at particular point (at cursor position)

Post by tatarinrafa »

Hello! Got stuck with no known way to find window at mouse position, is there any func in wxWidgets for that?
Looking for analogue of WindowFromPoint in .net

I need this to mannually apply mouse wheel event on window that is at cursor position so that scroll bar can scroll without having focus on it

Need to keep in mind that window can be covered partly by other window, so I need to get the top off overlaying windows

Thanks in advance! 8)
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Get window or wxobject at particular point (at cursor position)

Post by doublemax »

Use the source, Luke!
tatarinrafa
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Mar 12, 2022 8:46 pm

Re: Get window or wxobject at particular point (at cursor position)

Post by tatarinrafa »

doublemax wrote: Fri May 06, 2022 6:39 pm ::wxFindWindowAtPoint()
https://docs.wxwidgets.org/trunk/utils_ ... d61a6a2e1a
Thanks you!
Post Reply