-
August 16th, 2011, 10:11 PM
#1
Getting the window on top of another window
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.)
-
August 18th, 2011, 01:14 PM
#2
Re: Getting the window on top of another window
Use SetWindowPos api (or MFC CWnd method, if available).
-
August 18th, 2011, 01:16 PM
#3
Re: Getting the window on top of another window
This is your fourth thread on the same topic. You'll get better responses by sticking to the same thread.
-
August 20th, 2011, 01:28 AM
#4
Re: Getting the window on top of another window
Originally Posted by zuhrs
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 GetWindow. Then convert handle to CWnd* with CWnd::FromHandle.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|