43 case WM_DISPLAYCHANGE:
108 NONCLIENTMETRICS NonClientMetrics;
115 NonClientMetrics.cbSize =
sizeof(NONCLIENTMETRICS);
131 NonClientMetrics.iCaptionHeight += 1;
137 NonClientMetrics.iCaptionHeight -= 1;
149 ok(
ret,
"SystemParametersInfo failed\n");
150 ok(ulMouseSpeed >= 1 && ulMouseSpeed <=20,
"Wrong mouse speed (%d)\n", (
int)ulMouseSpeed);
154 ok(
ret,
"SystemParametersInfo failed\n");
156 ok(
ret,
"SystemParametersInfo failed\n");
157 ok(
temp == 1,
"SPI_GETMOUSESPEED did not get value set by SPI_SETMOUSESPEED (%d instead of 1)\n", (
int)
temp);
161 ok(
ret,
"SystemParametersInfo failed\n");
163 ok(
ret,
"SystemParametersInfo failed\n");
164 ok(
temp == 20,
"SPI_GETMOUSESPEED did not get value set by SPI_SETMOUSESPEED (%d instead of 20)\n", (
int)
temp);
168 ok(!
ret,
"expected SystemParametersInfo to fail\n");
170 ok(
ret,
"SystemParametersInfo failed\n");
171 ok(
temp == 20,
"SPI_GETMOUSESPEED got unexpected value (%d instead of 20)\n", (
int)
temp);
175 ok(!
ret,
"expected SystemParametersInfo to fail\n");
177 ok(
ret,
"SystemParametersInfo failed\n");
178 ok(
temp == 20,
"SPI_GETMOUSESPEED got unexpected value (%d instead of 20)\n", (
int)
temp);
181 ok(
ret,
"SystemParametersInfo failed\n");
189 BOOL bGradientCaptions, bModeFound;
194 ok(
ret,
"SystemParametersInfo failed\n");
195 if (bGradientCaptions ==
FALSE)
197 skip(
"GRADIENTCAPTIONS value has changed from its original state\n");
217 skip(
"4bpp/8bpp graphics mode is not supported\n");
223 ok(
ret,
"EnumDisplaySettingsW failed\n");
233 ok(dwResult ==
WAIT_OBJECT_0,
"Waiting for the WM_DISPLAYCHANGE message timed out\n");
240 ok(
ret,
"SystemParametersInfo failed\n");
241 ok(bGradientCaptions ==
FALSE,
"SPI_GETGRADIENTCAPTIONS got unexpected value (%d instead of 0)\n", bGradientCaptions);
244 bGradientCaptions =
TRUE;
249 ok(
ret,
"SystemParametersInfo failed\n");
250 ok(bGradientCaptions ==
FALSE,
"SPI_GETGRADIENTCAPTIONS got unexpected value (%d instead of 0)\n", bGradientCaptions);
258 ok(dwResult ==
WAIT_OBJECT_0,
"Waiting for the WM_DISPLAYCHANGE message timed out\n");
265 ok(
ret,
"SystemParametersInfo failed\n");
266 ok(bGradientCaptions ==
TRUE,
"SPI_GETGRADIENTCAPTIONS got unexpected value (%d instead of 1)\n", bGradientCaptions);
static void FlushMessages()
static HANDLE g_hSemDisplayChange
static void Test_MouseSpeed()
static int get_iwnd(HWND hWnd)
static MSG_ENTRY NcMetricsChange1_chain[]
LRESULT CALLBACK SysParamsTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static void Test_GradientCaptions(void)
static MSG_ENTRY CaptionHeight_chain[]
static void Test_NonClientMetrics()
static MSG_ENTRY NcMetricsChange_chain[]
static BOOL g_bReadyForDisplayChange
static BOOL IsDWmMsg(UINT msg)
#define RECORD_MESSAGE(...)
#define COMPARE_CACHE(msg_chain)
static BOOL IseKeyMsg(UINT msg)
#define WS_OVERLAPPEDWINDOW
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateSemaphoreW(IN LPSECURITY_ATTRIBUTES lpSemaphoreAttributes OPTIONAL, IN LONG lInitialCount, IN LONG lMaximumCount, IN LPCWSTR lpName OPTIONAL)
BOOL WINAPI DECLSPEC_HOTPATCH ReleaseSemaphore(IN HANDLE hSemaphore, IN LONG lReleaseCount, IN LPLONG lpPreviousCount)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR lpszDeviceName, LPDEVMODEW lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam)
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define WM_WINDOWPOSCHANGING
#define DISP_CHANGE_SUCCESSFUL
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
#define SPIF_UPDATEINIFILE
#define ENUM_CURRENT_SETTINGS
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define SystemParametersInfo
#define WM_WINDOWPOSCHANGED
BOOL WINAPI DestroyWindow(_In_ HWND)