20 ok(
hdc !=
NULL,
"Failed to create the DC!\n");
22 ok(hBmp !=
NULL,
"Failed to create the Bitmap!\n");
24 ok(hBmp !=
NULL,
"Failed to select the Bitmap!\n");
27 ok(hBrush !=
NULL,
"Failed to create a solid brush!\n");
29 ok(hBrush !=
NULL,
"Failed to select the brush!\n");
33 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
37 ok(
ret,
"Rectangle failed!");
50 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
53 ok(
ret,
"Rectangle failed!");
70 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
73 ok(
ret,
"Rectangle failed!");
92 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
96 ok(
ret,
"Rectangle failed!");
109 ok(
ret,
"BitBlt failed to blank the bitmap!\n");
112 ok(
ret,
"Rectangle failed!");
void Test_Rectangle(void)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI SetGraphicsMode(_In_ HDC, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)