From fbf5e4605b41501e2fc80f8eda77f921cbab272c Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Tue, 4 Oct 2011 17:53:43 +0000 Subject: [PATCH] [user32_apitest] - Do not log WM_QUERYNEWPALETTE but make sure that we get this message only on 8bpp svn path=/trunk/; revision=53991 --- rostests/apitests/user32/SetActiveWindow.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rostests/apitests/user32/SetActiveWindow.c b/rostests/apitests/user32/SetActiveWindow.c index f5fb42e59fb..af8a1e4b6b6 100644 --- a/rostests/apitests/user32/SetActiveWindow.c +++ b/rostests/apitests/user32/SetActiveWindow.c @@ -32,6 +32,14 @@ LRESULT CALLBACK OwnerTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP switch(message) { + case WM_QUERYNEWPALETTE: + { + HDC hdc = GetDC(0); + int bits = GetDeviceCaps(hdc,BITSPIXEL); + ok( bits == 8 , "expected WM_QUERYNEWPALETTE only on 8bpp\n"); + ReleaseDC(0, hdc); + return FALSE; + } case WM_IME_SETCONTEXT: case WM_IME_NOTIFY : case WM_GETICON :