I have a CWnd* of a window(name it as A).
How can I get the CWnd* of the window(Name it as B) which is on top of Window A.
(To be clear I need to get the handle of Window B, which precedes Window A in Z-Order.)
Printable View
I have a CWnd* of a window(name it as A).
How can I get the CWnd* of the window(Name it as B) which is on top of Window A.
(To be clear I need to get the handle of Window B, which precedes Window A in Z-Order.)
Use SetWindowPos api (or MFC CWnd method, if available).
This is your fourth thread on the same topic. You'll get better responses by sticking to the same thread.
Use GetWindow. Then convert handle to CWnd* with CWnd::FromHandle.