How to use WindowFromPoint and ChildWindowFromPoint?
-
Hello all, Could you please help me with this situation? In the middle of my program, I create a FULL SCREEN TRANSPARENT HIDDEN WINDOW which is TOPMOST. When I click on my left mouse button, I want to retrieve the handle to the window under cursor(next z-order) underneath this transparent hidden window. I am doing it like this when handling WM_MOUSEMOVE message, it is causing too much flickering. // A full screen transparent window shows up // Temporarily ShowWindow(hwnd, SW_HIDE) the full screen transparent window // GetCursorPos() and do a WindowFromPoint() to get the window under cursor // ShowWindow(hwnd, SW_SHOW) full screen transparent window Could you show me how to use WindowFromPoint(), ChildWindowFromPoint(), and ChildWindowFromPointEx() to achieve this without hiding and showing the full-screen transparent window? Or is there any other way to do this? Thank you very much in advance. :rose: