mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 18:11:57 +00:00
gdi32_test:
a lot of testcases especially for GetObject svn path=/trunk/; revision=26569
This commit is contained in:
parent
ec3552fddf
commit
a0d7f57718
13 changed files with 753 additions and 0 deletions
23
rostests/win32/gdi32/tests/ExtCreatePen.c
Normal file
23
rostests/win32/gdi32/tests/ExtCreatePen.c
Normal 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;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue