Get Application Window Handle from mouse click, C++
-
Hi all, I'm using Visual Studio 2005 with MFC application. Is there a coding method to obtain Application Window's handle and rect with a mouse click? :confused: Let's say I have a transparent window with WS_EX_TOPMOST attribute and there are other window applications such as Microsoft Word, Mozilla Firefox and Window Explorer. I was told to obtain the rect and the handle of the window application with a mouse click while the transparent window on TOPMOST. Example: I click on Mozilla Firefox while all other windows are opened and on top of mozilla and yet the transparent window is on TOPMOST of all. How do I obtain the RECT as well as the handle?? By the way, I'm trying to BitBlt that Mozilla with a mouse click with all window including my own created MFC window on top of it. :-O
You smile at me and I smile at you, And so one smile makes two~
-
Hi all, I'm using Visual Studio 2005 with MFC application. Is there a coding method to obtain Application Window's handle and rect with a mouse click? :confused: Let's say I have a transparent window with WS_EX_TOPMOST attribute and there are other window applications such as Microsoft Word, Mozilla Firefox and Window Explorer. I was told to obtain the rect and the handle of the window application with a mouse click while the transparent window on TOPMOST. Example: I click on Mozilla Firefox while all other windows are opened and on top of mozilla and yet the transparent window is on TOPMOST of all. How do I obtain the RECT as well as the handle?? By the way, I'm trying to BitBlt that Mozilla with a mouse click with all window including my own created MFC window on top of it. :-O
You smile at me and I smile at you, And so one smile makes two~
-
Thanks for the reply. Even though I can get handles from there. How do I actual press with my mouse to get the coordinate (POINT) on any position of the Window Application to obtain corresponding handle of that Window Application since I got a transparent window at TOPMOST and other Window Applications before it? :confused:
To code or not to code, that is the question~