From 5660c9a6d9ace44c57265def20f31fd17463a418 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 28 Jan 2009 09:09:30 +0000 Subject: [PATCH] draw a rect around the (not yet drawn) image svn path=/trunk/; revision=39166 --- reactos/dll/win32/shimgvw/shimgvw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/shimgvw/shimgvw.c b/reactos/dll/win32/shimgvw/shimgvw.c index fc2e3aed017..0f2a8db4030 100644 --- a/reactos/dll/win32/shimgvw/shimgvw.c +++ b/reactos/dll/win32/shimgvw/shimgvw.c @@ -152,6 +152,7 @@ ImageView_DrawImage(HWND hwnd) } DPRINT("x = %d\ny = %d\nWidth = %d\nHeight = %d\n\nrect.right = %d\nrect.bottom = %d\n\nuImgWidth = %d\nuImgHeight = %d\n", x, y, width, height, rect.right, rect.bottom, uImgWidth, uImgHeight); + Rectangle(hdc, x - 1, y - 1, x + width + 1, y + height + 1); GdipDrawImageRect(graphics, image, x, y, width, height); } GdipDeleteGraphics(graphics); @@ -380,7 +381,7 @@ ImageView_WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) } } } - break; + return TRUE; } case WM_SIZING: { @@ -432,8 +433,8 @@ ImageView_CreateWindow(HWND hwnd, LPWSTR szFileName) // Initialize GDI+ gdiplusStartupInput.GdiplusVersion = 1; gdiplusStartupInput.DebugEventCallback = NULL; - gdiplusStartupInput.SuppressBackgroundThread = 0; - gdiplusStartupInput.SuppressExternalCodecs = 0; + gdiplusStartupInput.SuppressBackgroundThread = FALSE; + gdiplusStartupInput.SuppressExternalCodecs = FALSE; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); pLoadImage(szFileName);