- Add support for SPI_GETCARETWIDTH/SPI_SETCARETWIDTH

svn path=/trunk/; revision=41114
This commit is contained in:
Dmitry Chapyshev 2009-05-25 12:46:44 +00:00
parent a2c6368b2a
commit 8ee5277636

View file

@ -192,6 +192,7 @@ IntSystemParametersInfo(
static BOOL KeyboardPref = FALSE;
static BOOL ShowSounds = FALSE;
static ACCESSTIMEOUT AccessTimeout = {sizeof(ACCESSTIMEOUT), 0, 0};
static DWORD CaretWidth = 1;
static SERIALKEYS SerialKeys = {sizeof(SERIALKEYS), 0, 0, 0, 0, 0, 0};
if (!bInitialized)
@ -857,6 +858,19 @@ IntSystemParametersInfo(
break;
}
case SPI_GETCARETWIDTH:
{
*((DWORD*)pvParam) = CaretWidth;
break;
}
case SPI_SETCARETWIDTH:
{
CaretWidth = *((DWORD*)pvParam);
bChanged = TRUE;
break;
}
default:
{
DPRINT1("FIXME: Unsupported SPI Action 0x%x (uiParam: 0x%x, pvParam: 0x%x, fWinIni: 0x%x)\n",