using System.Windows.Forms;
namespace DevComponents.DotNetBar.SuperGrid
{
    ///
    /// FloatWindow
    ///
    public partial class FloatWindow : Form
    {
        /// 
        /// Constructor
        /// 
        public FloatWindow()
        {
            InitializeComponent();
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.Selectable, false);
        }
        const int WS_EX_NOACTIVATE = 0x08000000;
        /// 
        /// CreateParams
        /// 
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ExStyle |= WS_EX_NOACTIVATE;
                return (cp);
            }
        }
        /// 
        /// ShowWithoutActivation
        /// 
        protected override bool ShowWithoutActivation
        {
            get { return true; }
        }
    }
}