http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #3 from Ivan Voyager vgr.subscription@gmail.com 2012-05-16 02:25:52 CDT --- I've added attachment with exe and source.
Does this work correctly with native GDI+, or Mono on real Windows?
Yes, it draws correctly in Mono on Windows (I've Vista Business SP2).
Possible method stack:
System.Windows.Forms.GroupBoxRenderer.DrawGroupBox -> Graphics.SetClip (GdipSetClipRectI) -> ControlPaint.DrawBorder3D -> Theme.CPDrawBorder3D -> Graphics.DrawLine (GdipDrawLineI)
[DllImport("gdiplus.dll")] internal static extern Status GdipSetClipRectI(IntPtr graphics, int x, int y, int width, int height, CombineMode combineMode);
[DllImport("gdiplus.dll")] internal static extern Status GdipDrawLineI(IntPtr graphics, IntPtr pen, int x1, int y1, int x2, int y2);