Fixed Issue 313.
1.1 --- a/GUI/MainForm.cs Sun Jan 15 15:35:03 2012 +0000
1.2 +++ b/GUI/MainForm.cs Sun Jan 15 22:06:59 2012 +0000
1.3 @@ -16,7 +16,7 @@
1.4
1.5 The Initial Developer of the Original Code is
1.6 Michael Möller <m.moeller@gmx.ch>.
1.7 - Portions created by the Initial Developer are Copyright (C) 2009-2011
1.8 + Portions created by the Initial Developer are Copyright (C) 2009-2012
1.9 the Initial Developer. All Rights Reserved.
1.10
1.11 Contributor(s): Paul Werelds
1.12 @@ -657,10 +657,10 @@
1.13 const int SC_CLOSE = 0xF060;
1.14
1.15 if (minimizeToTray.Value &&
1.16 - m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_MINIMIZE) {
1.17 + m.Msg == WM_SYSCOMMAND && m.WParam.ToInt64() == SC_MINIMIZE) {
1.18 SysTrayHideShow();
1.19 - } else if(minimizeOnClose.Value &&
1.20 - m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_CLOSE) {
1.21 + } else if (minimizeOnClose.Value &&
1.22 + m.Msg == WM_SYSCOMMAND && m.WParam.ToInt64() == SC_CLOSE) {
1.23 /*
1.24 * Apparently the user wants to minimize rather than close
1.25 * Now we still need to check if we're going to the tray or not