using Microsoft.VisualBasic;
using System;
using System.ComponentModel;
using System.Drawing;


namespace StrataFlix.UI
{
	namespace Windows
	{
		namespace Forms
		{
			
			
			[ToolboxItem(false)]public class MainHeaderControl : MicroFour.StrataFrame.UI.Windows.Forms.StrataUserControlBase
			{


				#region " Protected Methods "
				
				/// <summary>
				/// Nothing to do here
				/// </summary>
				/// <param name="e"></param>
				/// <remarks></remarks>
				protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs e)
				{
					//--
				}
				
				/// <summary>
				/// Redraw the control when sized
				/// </summary>
				/// <param name="e"></param>
				/// <remarks></remarks>
				protected override void OnResize(System.EventArgs e)
				{
					base.OnResize(e);
					
					Invalidate();
				}
				
				/// <summary>
				/// Renders the control
				/// </summary>
				/// <param name="e"></param>
				/// <remarks></remarks>
				protected override void OnStrataPaint(System.Windows.Forms.PaintEventArgs e)
				{
					//-- Render the image that will stretch the background
                    e.Graphics.DrawImage(StrataFlix.UI.Properties.Resources.StrataFlix_header_repeat, ClientRectangle, new Rectangle(0, 0, StrataFlix.UI.Properties.Resources.StrataFlix_header_repeat.Width - 1, StrataFlix.UI.Properties.Resources.StrataFlix_header_repeat.Height), GraphicsUnit.Pixel);
					
					//-- Render the top left header section
                    e.Graphics.DrawImage(StrataFlix.UI.Properties.Resources.StrataFlixheader_graphic, new Rectangle(0, 0, StrataFlix.UI.Properties.Resources.StrataFlixheader_graphic.Width, StrataFlix.UI.Properties.Resources.StrataFlixheader_graphic.Height));
				}
				
				#endregion
				
			}
			
		}
	}
}
