aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/Splash/SplashForm.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-15 15:26:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-15 15:26:21 -0500
commitb2397d598c7723822422c0cdf02a74077164a543 (patch)
treeca141e803e2b3b1328aff2507f1a70dcd1357c5d /MediaBrowser.ServerApplication/Splash/SplashForm.cs
parent46f668fbd801adc506832166a8c792458890813b (diff)
convert tray icon
Diffstat (limited to 'MediaBrowser.ServerApplication/Splash/SplashForm.cs')
-rw-r--r--MediaBrowser.ServerApplication/Splash/SplashForm.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/MediaBrowser.ServerApplication/Splash/SplashForm.cs b/MediaBrowser.ServerApplication/Splash/SplashForm.cs
index 845ad74fb..1260c3405 100644
--- a/MediaBrowser.ServerApplication/Splash/SplashForm.cs
+++ b/MediaBrowser.ServerApplication/Splash/SplashForm.cs
@@ -1,6 +1,5 @@
using System;
using System.ComponentModel;
-using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -43,29 +42,4 @@ namespace MediaBrowser.ServerApplication.Splash
base.OnClosing(e);
}
}
-
- public static class ControlHelper
- {
- #region Redraw Suspend/Resume
- [DllImport("user32.dll", EntryPoint = "SendMessageA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
- private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
- private const int WM_SETREDRAW = 0xB;
-
- public static void SuspendDrawing(this Control target)
- {
- SendMessage(target.Handle, WM_SETREDRAW, 0, 0);
- }
-
- public static void ResumeDrawing(this Control target) { ResumeDrawing(target, true); }
- public static void ResumeDrawing(this Control target, bool redraw)
- {
- SendMessage(target.Handle, WM_SETREDRAW, 1, 0);
-
- if (redraw)
- {
- target.Refresh();
- }
- }
- #endregion
- }
}