|
-
August 20th, 2007, 02:05 AM
#1
How do Windows know the clip region?
Well, for each window, they can easily get the clipping region of their own, and then they can redraw the region.
However, i'm wondering how Windows know the clipping region of each one (process)? There must be some centralized mechanism in the system that do the calculation. However, it seems it's behinded the documentation?
Is there any guru here that know how Windows do the clipping region calcuation (in the background)?
Thanks.
-
August 20th, 2007, 05:57 AM
#2
Re: How do Windows know the clip region?
Not sure I undertsnad your query, but you could use any of the following :
GetDCEx
SetMetaRgn
OffsetClipRgn
ExcludeClipRect
ExtSelectClipRgn
IntersectClipRect
SelectClipRgn
GetClipBox
GetRandomRgn
-
August 20th, 2007, 08:12 PM
#3
Re: How do Windows know the clip region?
Thanks, but the above API are the "result" after each Window already get it's clipping region.
My question should be something like undocumented, and maybe we need some gurus who happen to have chances (like working in the gov?) to trace the Windows system source code or read some undocumented payper to know how the Windows internal system works.
Maybe "Painter's algorithm" can help explain some?
PS:
Tracing Windows mobile/CE code, and you will get "?SelectClipRgn@CDC@@QAAHPAVCRgn@@@Z @ 2269 NONAME". Microsoft still didn't release this kernel part code yet.
-
August 27th, 2007, 10:04 PM
#4
Re: How do Windows know the clip region?
It's said that in Windows CE 6.0, there is no hidden code of Windows kernel?
If this is true, then the way Windows handle clipping region can be clarify. Any guru happens to know how?
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
|