Enable/disable "flat menus" based on the setting from the active

theme.
This commit is contained in:
Frank Richter 2005-07-05 10:55:22 +00:00 committed by Alexandre Julliard
parent 058e38af72
commit 796f941bee
1 changed files with 4 additions and 0 deletions

View File

@ -709,6 +709,10 @@ void MSSTYLES_ParseThemeIni(PTHEME_FILE tf)
FIXME("Invalid color value for %s\n", debugstr_w(szPropertyName));
}
}
else if (iPropertyId == TMT_FLATMENUS) {
BOOL flatMenus = (*lpValue == 'T') || (*lpValue == 't');
SystemParametersInfoW (SPI_SETFLATMENU, 0, (PVOID)flatMenus, 0);
}
/* Catch all metrics, including colors */
MSSTYLES_AddMetric(tf, iPropertyPrimitive, iPropertyId, lpValue, dwValueLen);
}