[Mono-winforms-list] GroupBoxRenderer fix

Jonathan Pobst monkey at jpobst.com
Mon May 19 15:42:50 EDT 2008


Yep, you are right.  I was thinking pClipRect was telling it where not 
to draw instead of where to draw.

Your original patch is fine, please commit!

Jon


George Giolfan wrote:
>> The last argument to UXTheme.DrawThemeBackground is
>> a clip rectangle. 
>> Will that work instead of
>> Win32ExcludeClipRect/Win32ExtSelectClipRgn?
> 
> If you mean calling DrawThemeBackground one time, I
> don't think so. The pClipRect of the
> DrawThemeBackground is the rectangle in which we need
> to paint. The rectangle I am excluding using GDI calls
> is the rectangle in which we should not paint because
> the text will go there.
> One way it could work would be to call
> VisualStyleRenderer.DrawBackground 8 times (for each
> corner and side of the text area). While this would
> not require platform specific calls, it does not seem
> the proper way to do it.
> Please let me know how you prefer it. I think it is
> easier to use native clipping on each platform.
> 
> 
>       
> 
> 



More information about the Mono-winforms-list mailing list