3597eb67dcafab0965a39362ab5a44bf9acf9ac9
3 Test_NtGdiCreateCompatibleDC(PTESTINFO pti
)
8 /* Test if aa NULL DC is accepted */
9 hDC
= NtGdiCreateCompatibleDC(NULL
);
12 /* We select a nwe palette. Note: SelectObject doesn't work with palettes! */
13 hObj
= SelectPalette(hDC
, GetStockObject(DEFAULT_PALETTE
), 0);
14 /* The old palette should be GetStockObject(DEFAULT_PALETTE) */
15 TEST(hObj
== GetStockObject(DEFAULT_PALETTE
));
17 /* The default bitmap should be GetStockObject(21) */
18 hObj
= SelectObject(hDC
, GetStockObject(21));
19 TEST(hObj
== GetStockObject(21));
21 /* The default pen should be GetStockObject(BLACK_PEN) */
22 hObj
= SelectObject(hDC
, GetStockObject(WHITE_PEN
));
23 TEST(hObj
== GetStockObject(BLACK_PEN
));
25 TEST(NtGdiDeleteObjectApp(hDC
) != 0);
27 return APISTATUS_NORMAL
;