CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    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.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    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

  3. #3
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    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.

  4. #4
    Join Date
    Sep 2003
    Location
    M...N
    Posts
    220

    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
  •  





Click Here to Expand Forum to Full Width

Featured