571{
575 HPEN pen = 0;
580
583 info->bmiHeader.biSize =
sizeof(
info->bmiHeader);
584 info->bmiHeader.biWidth = 16;
585 info->bmiHeader.biHeight = 16;
586 info->bmiHeader.biPlanes = 1;
587 info->bmiHeader.biBitCount = 32;
589
591 {
595
597 {
607 ok( elp->elpBrushStyle == lb.
lbStyle,
"wrong brush style %x\n", elp->elpBrushStyle );
608 ok( elp->elpColor ==
RGB(12,34,56),
"wrong color %x\n", elp->elpColor );
609 ok( elp->elpHatch ==
HS_CROSS,
"wrong hatch %lx\n", elp->elpHatch );
610 ok( elp->elpNumEntries == 0,
"wrong entries %x\n", elp->elpNumEntries );
611 break;
612
619 "wrong pen style %x\n", ((
LOGPEN *)elp)->lopnStyle );
620 ok( ((
LOGPEN *)elp)->lopnColor == 0,
621 "wrong color %x\n", ((
LOGPEN *)elp)->lopnColor );
622 break;
623
632 ok( elp->elpBrushStyle ==
BS_PATTERN,
"wrong brush style %x\n", elp->elpBrushStyle );
633 ok( elp->elpColor == 0,
"wrong color %x\n", elp->elpColor );
634 ok( elp->elpHatch == (
ULONG_PTR)
bmp,
"wrong hatch %lx/%p\n", elp->elpHatch,
bmp );
635 ok( elp->elpNumEntries == 0,
"wrong entries %x\n", elp->elpNumEntries );
636 break;
637
647 ok( elp->elpBrushStyle ==
BS_DIBPATTERNPT,
"wrong brush style %x\n", elp->elpBrushStyle );
648 ok( elp->elpColor == 0,
"wrong color %x\n", elp->elpColor );
650 "wrong hatch %lx/%lx\n", elp->elpHatch, lb.
lbHatch );
651 ok( elp->elpNumEntries == 0,
"wrong entries %x\n", elp->elpNumEntries );
652 break;
653
654 default:
656 ok( !pen,
"ExtCreatePen succeeded\n" );
658 break;
659 }
660
662 else continue;
663
664
668 {
672 ok( elp->elpPenStyle ==
PS_DOT,
"wrong pen style %x\n", elp->elpPenStyle );
673 ok( elp->elpBrushStyle ==
BS_SOLID,
"wrong brush style %x\n", elp->elpBrushStyle );
674 ok( elp->elpColor ==
RGB(12,34,56),
"wrong color %x\n", elp->elpColor );
675 ok( elp->elpHatch ==
HS_CROSS,
"wrong hatch %lx\n", elp->elpHatch );
677 }
678 else
679 {
680 ok( !pen,
"ExtCreatePen succeeded\n" );
682 }
683 }
684
688}
#define ERROR_INVALID_PARAMETER
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
#define offsetof(TYPE, MEMBER)
DWORD WINAPI GetLastError(void)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HPEN WINAPI ExtCreatePen(_In_ DWORD iPenStyle, _In_ DWORD cWidth, _In_ const LOGBRUSH *plbrush, _In_ DWORD cStyle, _In_reads_opt_(cStyle) const DWORD *pstyle)