The last argument to UXTheme.DrawThemeBackground is a clip rectangle.
Will that work instead of Win32ExcludeClipRect/Win32ExtSelectClipRgn?
Other than that, looks fine.
Jonathan
George Giolfan wrote:
> Use the following program to reproduce the bug (notice
> the border under the text). I think this is cause by
> the fact that GDI+ clipping does not affect GDI
> clipping.
>
> using System.Windows.Forms;
> using System.Windows.Forms.VisualStyles;
> class TestForm : Form
> {
> static void Main ()
> {
> Application.EnableVisualStyles ();
> Application.Run (new TestForm ());
> }
> protected override void OnPaint (PaintEventArgs e)
> {
> GroupBoxRenderer.DrawGroupBox (e.Graphics,
> ClientRectangle, "Text", Font, GroupBoxState.Normal);
> }
> }
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-winforms-list maillist - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list