Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21756/src

Modified Files:
	mswindow.c smessage.c 
Log Message:
Restored ability for middle and right mouse clicks to raise the current window to the
top, helps with overlapped windows
Removed the netrek.w32caption option that was undocumented and has since been
replaced by the mainTitleBar option

Index: mswindow.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/mswindow.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- mswindow.c	19 Mar 2007 19:59:43 -0000	1.51
+++ mswindow.c	22 Mar 2007 06:40:18 -0000	1.52
@@ -1486,8 +1486,6 @@
 
     ShowWindow (win->hwnd, SW_SHOWNORMAL);
     BringWindowToTop (win->hwnd);
-    if (window == baseWin && !booleanDefault ("netrek.w32caption", 1))
-        PostMessage (win->hwnd, WM_SYSKEYDOWN, VK_RETURN, 0);
 }
 
 //Hides the window.
@@ -2054,7 +2052,7 @@
 
 
     case WM_MBUTTONDOWN:
-        //BringWindowToTop (hwnd);
+        BringWindowToTop (hwnd);
         GET_STRUCT_PTR;
 
         STORE_EVENT_MOUSE;
@@ -2085,7 +2083,7 @@
         return (0);
 
     case WM_RBUTTONDOWN:
-        //BringWindowToTop (hwnd);
+        BringWindowToTop (hwnd);
         GET_STRUCT_PTR;
 
         STORE_EVENT_MOUSE;

Index: smessage.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/smessage.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- smessage.c	1 Mar 2007 07:35:45 -0000	1.5
+++ smessage.c	22 Mar 2007 06:40:21 -0000	1.6
@@ -53,7 +53,10 @@
 
 #ifdef XTRA_MESSAGE_UI
     if (HUDoffset)
+    {
+        //W_WriteText (w, 5 + W_Textwidth * length, HUDoffset, textColor, " ", 1, W_RegularFont);
         W_WriteText (w, 5, HUDoffset, textColor, tmp, length, W_RegularFont);
+    }
 #endif
     W_WriteText (messagew, 5, 5, textColor, tmp, length, W_RegularFont);
 }