ReactOS
0.4.16-dev-122-g325d74c
NtUserRedrawWindow.c
Go to the documentation of this file.
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
}
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
hWnd
HWND hWnd
Definition:
settings.c:17
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
NtUserRedrawWindow
BOOL NTAPI NtUserRedrawWindow(HWND hWnd, CONST RECT *lprcUpdate, HRGN hrgnUpdate, UINT flags)
Definition:
painting.c:2002
void
Definition:
nsiface.idl:2307
ASSERT
#define ASSERT(a)
Definition:
mode.c:44
TEST
#define TEST(x)
Definition:
precomp.h:20
hinst
static HINSTANCE hinst
Definition:
edit.c:551
WS_VISIBLE
#define WS_VISIBLE
Definition:
pedump.c:620
BS_PUSHBUTTON
#define BS_PUSHBUTTON
Definition:
pedump.c:651
rect
& rect
Definition:
startmenu.cpp:1413
tagRECT
Definition:
windef.h:305
GetModuleHandle
#define GetModuleHandle
Definition:
winbase.h:3827
CreateWindowA
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition:
winuser.h:4318
RDW_VALIDATE
#define RDW_VALIDATE
Definition:
winuser.h:1221
DestroyWindow
BOOL WINAPI DestroyWindow(_In_ HWND)
modules
rostests
apitests
win32nt
ntuser
NtUserRedrawWindow.c
Generated on Sat Oct 12 2024 06:07:53 for ReactOS by
1.9.6