diff os2/dw.c @ 523:b2065b0c39c1

Minor MDI fixes, tried to fix the y-axis problem for OS/2 boxes but it is a bit more complex than I originally thought.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 16 Mar 2004 10:47:23 +0000
parents caa7ed17c132
children d3ce0afa6cf5
line wrap: on
line diff
--- a/os2/dw.c	Tue Mar 16 08:23:04 2004 +0000
+++ b/os2/dw.c	Tue Mar 16 10:47:23 2004 +0000
@@ -3975,8 +3975,8 @@
 HWND API dw_mdi_new(unsigned long id)
 {
 	HWND hwndframe;
-
-	id = id; /* keep compiler happy */
+	ULONG back = CLR_DARKGRAY;
+
 	hwndframe = WinCreateWindow(HWND_OBJECT,
 								WC_FRAME,
 								NULL,
@@ -3985,9 +3985,11 @@
 								0,0,2000,1000,
 								NULLHANDLE,
 								HWND_TOP,
-								0L,
+								id,
 								NULL,
 								NULL);
+	/* Make the MDI Client area the same color as Windows and Unix */
+	WinSetPresParam(hwndframe, PP_BACKGROUNDCOLORINDEX, sizeof(ULONG), &back);
 	return hwndframe;
 }