using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
namespace DevComponents.DotNetBar.SuperGrid
{
///
/// CheckDisplay
///
static public class CheckDisplay
{
///
/// RenderCheckbox
///
///
///
///
///
static public void RenderCheckbox(
Graphics g, Rectangle bounds, CheckBoxState cstate, ButtonState bstate)
{
Size csize = CheckBoxRenderer.GetGlyphSize(g, cstate);
if (Application.RenderWithVisualStyles == true)
{
Point pt = bounds.Location;
pt.Y += (bounds.Height - csize.Height) / 2;
CheckBoxRenderer.DrawCheckBox(g, pt, cstate);
}
else
{
ControlPaint.DrawCheckBox(g, bounds, bstate);
}
}
}
}