Implement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if it work

svn path=/trunk/; revision=22988
This commit is contained in:
Magnus Olsen 2006-07-10 01:48:46 +00:00
parent b38fbf4730
commit 7ad01239f2
3 changed files with 16 additions and 2 deletions

View file

@ -32,7 +32,8 @@ typedef struct _WINSTATION_OBJECT
UINT CaretBlinkRate;
HANDLE ShellWindow;
HANDLE ShellListView;
BOOL FlatMenu;
/* ScreenSaver */
BOOL ScreenSaverRunning;
UINT ScreenSaverTimeOut;

View file

@ -998,6 +998,8 @@ IntSystemParametersInfo(
case SPI_GETSCREENSAVERRUNNING:
case SPI_GETSCREENSAVETIMEOUT:
case SPI_SETSCREENSAVETIMEOUT:
case SPI_GETFLATMENU:
case SPI_SETFLATMENU:
{
PSYSTEM_CURSORINFO CurInfo;
@ -1013,6 +1015,12 @@ IntSystemParametersInfo(
switch(uiAction)
{
case SPI_GETFLATMENU:
if (pvParam != NULL) *((UINT*)pvParam) = WinStaObject->FlatMenu;
return TRUE;
case SPI_SETFLATMENU:
WinStaObject->FlatMenu = uiParam;
break;
case SPI_GETSCREENSAVETIMEOUT:
if (pvParam != NULL) *((UINT*)pvParam) = WinStaObject->ScreenSaverTimeOut;
return TRUE;
@ -1035,7 +1043,7 @@ IntSystemParametersInfo(
CurInfo = IntGetSysCursorInfo(WinStaObject);
if (pvParam != NULL) *((UINT*)pvParam) = CurInfo->WheelScroChars;
// FIXME add this value to scroll list as scroll value ??
break;
return TRUE;
case SPI_SETDOUBLECLKWIDTH:
CurInfo = IntGetSysCursorInfo(WinStaObject);
/* FIXME limit the maximum value? */
@ -1400,6 +1408,8 @@ UserSystemParametersInfo(
case SPI_SETSCREENSAVERRUNNING:
case SPI_GETSCREENSAVETIMEOUT:
case SPI_SETSCREENSAVETIMEOUT:
case SPI_GETFLATMENU:
case SPI_SETFLATMENU:
{
BOOL Ret;

View file

@ -490,6 +490,7 @@ NtUserCreateWindowStation(
*/
WindowStationObject->ScreenSaverRunning = FALSE;
WindowStationObject->ScreenSaverTimeOut = 30;
WindowStationObject->FlatMenu = FALSE;
if(!(CurInfo = ExAllocatePool(PagedPool, sizeof(SYSTEM_CURSORINFO))))
{
@ -510,6 +511,8 @@ NtUserCreateWindowStation(
CurInfo->WheelScroLines = 3;
CurInfo->WheelScroChars = 3;
/* FIXME: Obtain the following information from the registry */
CurInfo->SwapButtons = FALSE;
CurInfo->DblClickSpeed = 500;