579{
583 HPEN pen = 0;
588
591 info->bmiHeader.biSize =
sizeof(
info->bmiHeader);
592 info->bmiHeader.biWidth = 16;
593 info->bmiHeader.biHeight = 16;
594 info->bmiHeader.biPlanes = 1;
595 info->bmiHeader.biBitCount = 32;
597
599 {
603
605 {
615 ok( elp->elpBrushStyle == lb.
lbStyle,
"wrong brush style %x\n", elp->elpBrushStyle );
616 ok( elp->elpColor ==
RGB(12,34,56),
"wrong color %lx\n", elp->elpColor );
617 ok( elp->elpHatch ==
HS_CROSS,
"wrong hatch %Ix\n", elp->elpHatch );
618 ok( elp->elpNumEntries == 0,
"wrong entries %lx\n", elp->elpNumEntries );
619 break;
620
627 "wrong pen style %x\n", ((
LOGPEN *)elp)->lopnStyle );
628 ok( ((
LOGPEN *)elp)->lopnColor == 0,
629 "wrong color %lx\n", ((
LOGPEN *)elp)->lopnColor );
630 break;
631
640 ok( elp->elpBrushStyle ==
BS_PATTERN,
"wrong brush style %x\n", elp->elpBrushStyle );
641 ok( elp->elpColor == 0,
"wrong color %lx\n", elp->elpColor );
642 ok( elp->elpHatch == (
ULONG_PTR)
bmp,
"wrong hatch %Ix/%p\n", elp->elpHatch,
bmp );
643 ok( elp->elpNumEntries == 0,
"wrong entries %lx\n", elp->elpNumEntries );
644 break;
645
655 ok( elp->elpBrushStyle ==
BS_DIBPATTERNPT,
"wrong brush style %x\n", elp->elpBrushStyle );
656 ok( elp->elpColor == 0,
"wrong color %lx\n", elp->elpColor );
657 ok( elp->elpHatch == lb.
lbHatch,
"wrong hatch %Ix/%Ix\n", elp->elpHatch, lb.
lbHatch );
658 ok( elp->elpNumEntries == 0,
"wrong entries %lx\n", elp->elpNumEntries );
659 break;
660
661 default:
663 ok( !pen,
"ExtCreatePen succeeded\n" );
665 break;
666 }
667
669 else continue;
670
671
675 {
679 ok( elp->elpPenStyle ==
PS_DOT,
"wrong pen style %lx\n", elp->elpPenStyle );
680 ok( elp->elpBrushStyle ==
BS_SOLID,
"wrong brush style %x\n", elp->elpBrushStyle );
681 ok( elp->elpColor ==
RGB(12,34,56),
"wrong color %lx\n", elp->elpColor );
682 ok( elp->elpHatch ==
HS_CROSS,
"wrong hatch %Ix\n", elp->elpHatch );
684 }
685 else
686 {
687 ok( !pen,
"ExtCreatePen succeeded\n" );
689 }
690 }
691
695}
#define ERROR_INVALID_PARAMETER
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
static ERESOURCE GlobalLock
#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)