|
-
October 24th, 2000, 03:31 AM
#1
How to detect my window overlapped by another window
Hi everybody ! I'll try to explain you my problem in the best way I can (I'm not english, of course !)
In a CFormView, I've inserted a CWnd object (called CArea in my project). In it, I draw everything I want.
I want to make screen captures of this area but I would like to be sure, before doing the screen captures that the area is entirely visible and not covered by :
- another window ;
- the borders of my frame window. When the frame window is not enough large, the border covers my area. I don't want to do the screen capture then !
What I want is simple : when nothing covers my area, I do the screen capture.
I hope you've understand my problem. Thanks a lot...
-
October 24th, 2000, 04:49 AM
#2
Re: How to detect my window overlapped by another window
Take a look at
CWindow::BringWindowToTop()
to bring the window on the top
You can also use function SetWindowPos that can be used for all size, position and Z-order changes (Z-order is order of windows, how they overlap)
-
October 24th, 2000, 05:08 AM
#3
Re: How to detect my window overlapped by another window
In addition to the previous post you can enumerate all windows via EnumWindows and EnumChildWindows and check their rectangles via GetWindowRect against your window rectangle.
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
|