SPI_GETMINIMIZEDMETRICS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This implements the SPI_GETMINIMIZEDMETRICS case for SystemParameterInfo.
I'm not sure where this is supposed to be stored as it seems to be
persistent in Win2k, but I can see no obvious registry key for it.

ChangeLog:
- SPI_GETMINIMIZEDMETRICS implemented

Rob
Index: wine/windows/sysparams.c
===================================================================
RCS file: /home/wine/wine/windows/sysparams.c,v
retrieving revision 1.45
diff -u -r1.45 sysparams.c
--- wine/windows/sysparams.c	8 Jan 2003 21:09:25 -0000	1.45
+++ wine/windows/sysparams.c	11 Jan 2003 21:07:45 -0000
@@ -1213,7 +1213,21 @@
     }
     WINE_SPI_FIXME(SPI_SETNONCLIENTMETRICS);	/*     42  WINVER >= 0x400 */
 
-    WINE_SPI_FIXME(SPI_GETMINIMIZEDMETRICS);	/*     43  WINVER >= 0x400 */
+    case SPI_GETMINIMIZEDMETRICS: 		/*     43  WINVER >= 0x400 */
+    {
+        MINIMIZEDMETRICS * lpMm = pvParam;
+	if (lpMm->cbSize == sizeof(*lpMm))
+	{
+	    /* these taken from Win2k SP3 */
+	    lpMm->iWidth = 154;
+	    lpMm->iHorzGap = 0;
+	    lpMm->iVertGap = 0;
+	    lpMm->iArrange = 8;
+	}
+	else
+	    ret = FALSE;
+	break;
+    }
     WINE_SPI_FIXME(SPI_SETMINIMIZEDMETRICS);	/*     44  WINVER >= 0x400 */
 
     case SPI_GETICONMETRICS:			/*     45  WINVER >= 0x400 */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux