Exemplo n.º 1
0
        public static bool DrawEdge(this Graphics graphics, Rectangle rc, EdgeStyle edge, BorderFlags flags, Rectangle?_exclude = null)
        {
            var rect = new RECT(rc);

            using (var hdc = graphics.GetDisposableHdc())
            {
                bool returnValue;

                if (_exclude != null)
                {
                    var exclude     = (Rectangle)_exclude;
                    var regionFlags = ExcludeClipRect(hdc, exclude.Left, exclude.Top, exclude.Right, exclude.Bottom);
                }

                returnValue = DrawEdge(hdc, ref rect, edge, flags);

                return(returnValue);
            }
        }
Exemplo n.º 2
0
 private static extern bool DrawEdge(IntPtr hdc, ref RECT rc, EdgeStyle edge, BorderFlags grfFlags);