ReactOS 0.4.16-dev-106-g10b08aa
NtGdiCreateCompatibleDC.c File Reference
#include "../win32nt.h"
Include dependency graph for NtGdiCreateCompatibleDC.c:

Go to the source code of this file.

Functions

 START_TEST (NtGdiCreateCompatibleDC)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtGdiCreateCompatibleDC  )

Definition at line 10 of file NtGdiCreateCompatibleDC.c.

11{
12 HDC hDC;
13 HGDIOBJ hObj;
14
15 /* Test if aa NULL DC is accepted */
17 ok(hDC != NULL, "hDC was NULL.\n");
18
19 /* We select a nwe palette. Note: SelectObject doesn't work with palettes! */
21 /* The old palette should be GetStockObject(DEFAULT_PALETTE) */
23
24 /* The default bitmap should be GetStockObject(21) */
25 hObj = SelectObject(hDC, GetStockObject(21));
26 ok_ptr(hObj, GetStockObject(21));
27
28 /* The default pen should be GetStockObject(BLACK_PEN) */
31
32 ok(NtGdiDeleteObjectApp(hDC) != 0, "NtGdiDeleteObjectApp(hDC) was zero.\n");
33}
static HDC hDC
Definition: 3dtext.c:33
#define ok(value,...)
Definition: atltest.h:57
#define ok_ptr(expression, result)
Definition: atltest.h:108
#define NULL
Definition: types.h:112
static HDC
Definition: imagelist.c:88
__kernel_entry W32KAPI HDC APIENTRY NtGdiCreateCompatibleDC(_In_opt_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDeleteObjectApp(_In_ HANDLE hobj)
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define DEFAULT_PALETTE
Definition: wingdi.h:913
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
#define WHITE_PEN
Definition: wingdi.h:905
#define BLACK_PEN
Definition: wingdi.h:903