gdi32_test:

a lot of testcases especially for GetObject

svn path=/trunk/; revision=26569
This commit is contained in:
Timo Kreuzer 2007-04-29 01:43:41 +00:00
parent ec3552fddf
commit a0d7f57718
13 changed files with 753 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#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;
}