mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
24 lines
433 B
C
24 lines
433 B
C
#include "..\gditest.h"
|
|
|
|
BOOL
|
|
Test_ExtCreatePen(INT* passed, INT* failed)
|
|
{
|
|
HPEN hPen;
|
|
LOGBRUSH logbrush;
|
|
|
|
logbrush.lbStyle = BS_SOLID;
|
|
logbrush.lbColor = RGB(1,2,3);
|
|
logbrush.lbHatch = 0;
|
|
hPen = ExtCreatePen(PS_COSMETIC, 1,&logbrush, 0, 0);
|
|
if (!hPen) return FALSE;
|
|
|
|
/* Test if we have an EXTPEN */
|
|
TEST(GDI_HANDLE_GET_TYPE(hPen) == GDI_OBJECT_TYPE_EXTPEN);
|
|
|
|
|
|
DeleteObject(hPen);
|
|
return TRUE;
|
|
}
|
|
|
|
|