[ros-diffs] [gedmurphy] 33101: - force the startup code to honour the 'hide on minimize' settings - fix a bug when traversing error pages

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Tue Apr 22 19:15:03 CEST 2008


Author: gedmurphy
Date: Tue Apr 22 12:15:03 2008
New Revision: 33101

URL: http://svn.reactos.org/svn/reactos?rev=33101&view=rev
Log:
- force the startup code to honour the 'hide on minimize' settings
- fix a bug when traversing error pages

Modified:
    trunk/tools/Message Translator/GUI/MainForm.cs
    trunk/tools/Message Translator/GUI/Program.cs

Modified: trunk/tools/Message Translator/GUI/MainForm.cs
URL: http://svn.reactos.org/svn/reactos/trunk/tools/Message%20Translator/GUI/MainForm.cs?rev=33101&r1=33100&r2=33101&view=diff
==============================================================================
--- trunk/tools/Message Translator/GUI/MainForm.cs [iso-8859-1] (original)
+++ trunk/tools/Message Translator/GUI/MainForm.cs [iso-8859-1] Tue Apr 22 12:15:03 2008
@@ -217,9 +217,6 @@
                     }
                     else
                     {
-                        if (errMessages != null)
-                            errMessages.Clear();
-
                         Command cmd = msgTran.Messages[0];
 
                         if (cmd.MsgType == MessageType.WinError ||
@@ -227,6 +224,9 @@
                             cmd.MsgType == MessageType.NTSTATUS ||
                             cmd.MsgType == MessageType.Custom)
                         {
+                            if (errMessages != null)
+                                errMessages.Clear();
+
                             errorTypeValueLabel.Text = cmd.MsgType.ToString();
                             errorDecimalTxtBox.Text = cmd.Number.ToString();
                             errorHexTxtBox.Text = "0x" + cmd.Hex;

Modified: trunk/tools/Message Translator/GUI/Program.cs
URL: http://svn.reactos.org/svn/reactos/trunk/tools/Message%20Translator/GUI/Program.cs?rev=33101&r1=33100&r2=33101&view=diff
==============================================================================
--- trunk/tools/Message Translator/GUI/Program.cs [iso-8859-1] (original)
+++ trunk/tools/Message Translator/GUI/Program.cs [iso-8859-1] Tue Apr 22 12:15:03 2008
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Windows.Forms;
+using Microsoft.Win32;
 
 namespace MsgTranslator
 {
@@ -33,6 +34,13 @@
         {
             // create the notify icon and it's associated context menu
             InitializeContext();
+
+            string regPath = @"Software\ReactOS\MsgTrans";
+            string keyName = "HideOnMin";
+            RegistryKey rk = Registry.CurrentUser.CreateSubKey(regPath);
+            string hideOnMin = rk.GetValue(keyName).ToString();
+            if (Convert.ToBoolean(hideOnMin) == false)
+                ShowForm();
         }
 
         private void InitializeContext()



More information about the Ros-diffs mailing list