Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs16:/tmp/cvs-serv18781/src

Modified Files:
	mswindow.c 
Log Message:
Make richtext windows moveable by faking a caption hit on main
window during left click action.  Apparently nothing can be captured
by clicking on window border, I think it's cause click actions go to the 
default windows proc.
If window is created with WS_THICKBORDER, then it allows
border action to resize it.  But then window border is too big, message
windows need as small border as possible.

Index: mswindow.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/mswindow.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- mswindow.c	10 Apr 2007 05:43:45 -0000	1.63
+++ mswindow.c	10 Apr 2007 08:14:16 -0000	1.64
@@ -6084,13 +6084,10 @@
 
     switch (msg)
     {
-/*    case WM_PAINT:
-        GET_STRUCT_PTR;
-        W_ChangeBorder ((W_Window) win, W_White);
-        break;*/
-
     case WM_LBUTTONDOWN:
         BringWindowToTop (hwnd);
+        // fake a caption hit to move window
+        SendMessage(hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0);
         break;
     }
     return CallWindowProc (lpfnDefRichEditWndProc, hwnd, msg, wParam, lParam);