[Development] winvnc: Add -ShowTrayIcon param which controls if winvnc system
	      tray icon is showed. Thanks to Antoine Martin.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4052 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx
index cd37eef..4d89a0e 100644
--- a/win/winvnc/VNCServerWin32.cxx
+++ b/win/winvnc/VNCServerWin32.cxx
@@ -48,6 +48,8 @@
   "Only accept connections from via the local loop-back network interface", false);
 static BoolParameter queryOnlyIfLoggedOn("QueryOnlyIfLoggedOn",
   "Only prompt for a local user to accept incoming connections if there is a user logged on", false);
+static BoolParameter showTrayIcon("ShowTrayIcon",
+  "Show the configuration applet in the system tray icon", true);
 
 
 VNCServerWin32::VNCServerWin32()
@@ -149,7 +151,8 @@
   }
 
   // - Create the tray icon (if possible)
-  trayIcon = new STrayIconThread(*this, IDI_ICON, IDI_CONNECTED,
+  if (showTrayIcon)
+	  trayIcon = new STrayIconThread(*this, IDI_ICON, IDI_CONNECTED,
                                  IDI_ICON_DISABLE, IDI_CONNECTED_DISABLE,
                                  IDR_TRAY);