1 /*
2  * PROJECT:         ReactOS api tests
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         Test for NtUserRedrawWindow
5  * PROGRAMMERS:
6  */
7 
8 #include <win32nt.h>
9 
10 START_TEST(NtUserRedrawWindow)
11 {
12     HINSTANCE hinst = GetModuleHandle(NULL);
13     HWND hWnd;
14     RECT rect;
15 
16     hWnd = CreateWindowA("BUTTON",
17                          "Test",
18                          BS_PUSHBUTTON | WS_VISIBLE,
19                          0,
20                          0,
21                          50,
22                          30,
23                          NULL,
24                          NULL,
25                          hinst,
26                          0);
27     ASSERT(hWnd);
28 
29     rect.left = 0;
30     rect.top = 0;
31     rect.right = 10;
32     rect.bottom = 10;
33 
34     TEST(NtUserRedrawWindow(hWnd, &rect, NULL, RDW_VALIDATE) == TRUE);
35 
36     DestroyWindow(hWnd);
37 
38 }
39