mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
20 lines
328 B
C
20 lines
328 B
C
#line 1 "CreatePen.c"
|
|
|
|
#include "..\gditest.h"
|
|
|
|
BOOL
|
|
Test_CreatePen(INT* passed, INT* failed)
|
|
{
|
|
HPEN hPen;
|
|
|
|
hPen = CreatePen(PS_COSMETIC, 1, RGB(1,2,3));
|
|
if (!hPen) return FALSE;
|
|
|
|
/* Test if we have a PEN */
|
|
TEST(GDI_HANDLE_GET_TYPE(hPen) == GDI_OBJECT_TYPE_PEN);
|
|
|
|
DeleteObject(hPen);
|
|
return TRUE;
|
|
}
|
|
|