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

Modified Files:
	mswindow.c 
Log Message:
Documentation/todo list updates.
Fix to message window bug - if a message window was unmapped, but it received a message of greater than
half window height (i.e. an all board macro when all board isn't mapped, due to user instead using the all in one
review window), the call to UpdateWindow was not painting the unmapped window, thus the added string
count was not decremented, thus the program was trying to repeatedly trying and failing to redraw/flush the
unmapped window.  Thus it seems best to just go through the normal flush function for these unmapped windows,
rather than break out of the function early in hopes the redraw scrolling function gets called.

Index: mswindow.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/mswindow.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mswindow.c	29 Nov 2006 13:06:41 -0000	1.39
+++ mswindow.c	12 Jan 2007 18:06:55 -0000	1.40
@@ -4554,8 +4554,8 @@
         win->AddedStrings = 0;
         return;
     }
-    //Do full redraw if faster
-    if (win->AddedStrings > (win->TextHeight / 2))
+    //Do full redraw if faster, only works for mapped windows
+    if (win->AddedStrings > (win->TextHeight / 2) && W_IsMapped(window))
     {
         InvalidateRect (win->hwnd, NULL, FALSE);
         UpdateWindow (win->hwnd);       //Generates paint msg, which calls RedrawScrolling
@@ -5440,7 +5440,7 @@
 	int x, y, width, height;
 	int result, scrollpos;
 
-    FNHEADER_VOID;
+	FNHEADER_VOID;
 
 	loc.length = sizeof (WINDOWPLACEMENT); /* Have to set this */