Пример #1
0
 /// <summary>
 /// Remueve la barra de titulo de un formulario
 /// </summary>
 /// <param name="hwnd">Manejador de ventana </param>
 /// <param name="remove">True = remueve</param>
 public static void RemoveTittleBar(IntPtr hwnd, bool remove)
 {
     WindowDllImport.RemoveTittleBar(hwnd, remove);
 }
Пример #2
0
 /// <summary>
 ///
 /// función privada usada para mover el formulario actual
 /// Se usa en evento MouseMove del control
 /// </summary>
 /// <param name="frm"></param>
 public static void MoveForm(Form frm)
 {
     WindowDllImport.ReleaseCapture();
     WindowDllImport.SendMessage(frm.Handle, WindowDllImport.WM_SYSCOMMAND, WindowDllImport.MOUSE_MOVE, 0);
 }
Пример #3
0
 /// <summary>
 /// Redondea un objeto que hereda de Control
 /// _BoarderRaduis can be adjusted to your needs, try 15 to start.
 /// </summary>
 /// <param name="pControl"></param>
 public static void Round(Control pControl)
 {
     System.IntPtr ptr = WindowDllImport.CreateRoundRectRgn(0, 0, pControl.Width, pControl.Height, 50, 50);
     pControl.Region = System.Drawing.Region.FromHrgn(ptr);
     WindowDllImport.DeleteObject(ptr);
 }
Пример #4
0
 /// <summary>
 /// Produce un parpadeo o flash en el formulario hasta q recive foco por un cierto periodo de tiempo
 /// </summary>
 /// <param name="form"></param>
 /// <param name="count"></param>
 public static void FlashWindow_Flash(System.Windows.Forms.Form form, uint count)
 {
     WindowDllImport.Flash(form, count);
 }
Пример #5
0
 /// <summary>
 /// Produce un parpadeo o flash en el formulario hasta q recive foco
 /// </summary>
 /// <param name="form"></param>
 public static void FlashWindow_Flash(System.Windows.Forms.Form form)
 {
     WindowDllImport.Flash(form);
 }
Пример #6
0
 /// <summary>
 /// Detiene el parpadeo o flash en el formulario espesificado
 /// </summary>
 /// <param name="form"></param>
 public static void FlashWindow_Stop(System.Windows.Forms.Form form)
 {
     WindowDllImport.Stop(form);
 }