MAXIMIZED = 3;
private const int SW_SHOWNOACTIVATE = 4;
private const int SW_RESTORE = 9;
private const int SW_SHOWDEFAULT = 10;
/// <summary>
/// Private Fields
/// </summary>
private IntPtr m_hWnd;
private string m_Title;
private bool m_Visible = true;
private string m_Process;
private bool m_WasMax = false;
/// <summary>
/// Window Object''s Public Properties
/// </summary>
public IntPtr hWnd
{
get{return m_hWnd;}
}
public string Title
{
get{return m_Title;}
}
public string Process
{
get{return m_Process;}
}
/// <summary>
/// Sets this Window Object''s visibility
/// </summary>
public bool Visible
{
get{return m_Visible;}
set
{
//show the window
if(value == true)
{
if(m_WasMax)