1.1 --- a/GUI/MainForm.cs Sun Feb 03 18:01:50 2013 +0100
1.2 +++ b/GUI/MainForm.cs Sun Feb 03 19:06:01 2013 +0100
1.3 @@ -18,6 +18,7 @@
1.4 using System.IO;
1.5 using System.Reflection;
1.6 using System.Windows.Forms;
1.7 +using System.Windows;
1.8 using Aga.Controls.Tree;
1.9 using Aga.Controls.Tree.NodeControls;
1.10 using OpenHardwareMonitor.Hardware;
1.11 @@ -131,7 +132,19 @@
1.12 systemTray.HideShowCommand += hideShowClick;
1.13 systemTray.ExitCommand += exitClick;
1.14
1.15 - soundGraphDisplay = new SoundGraphDisplay(computer, settings, unitManager);
1.16 + soundGraphDisplay = new SoundGraphDisplay(computer, settings, unitManager);
1.17 + if (soundGraphDisplay.IsDllLoaded)
1.18 + {
1.19 + //Try init
1.20 + //NativeWindow window;
1.21 +
1.22 +
1.23 + //= Window.GetWindow(this);
1.24 + //var wih = new WindowInteropHelper(window);
1.25 + //IntPtr hWnd = wih.Handle;
1.26 + }
1.27 +
1.28 +
1.29
1.30 int p = (int)Environment.OSVersion.Platform;
1.31 if ((p == 4) || (p == 128)) { // Unix