   [WinForms] double click on the window's caption bar
  Hi,I have a winform with a directX control. I overload the OnSizeChanged method of my control so that when its size changes, I recreate my DirectX viewport to the new size.But when I double click on the window's caption bar to maximize it, it doesn't to call the OnSizeChanged method. My app crash because it didn't reset the d3d device.So, is there a method which is called when I double click on the caption bar, so that I can overload it to reset my d3d device ?Thx for any help.   
  You could override the form's WndProc and handle the WM_NCLBUTTONDBLCK message:   /// <param name="m"></param>   protected override void WndProc( ref Message m )   {  if( m.Msg == WM_NCLBUTTONDBLCK )  { base.WndProc( ref m ); ResetDevice();  }  else base.WndProc( ref m );   }