Author: cwittich
Date: Wed Jan 28 03:09:30 2009
New Revision: 39166
URL:
http://svn.reactos.org/svn/reactos?rev=39166&view=rev
Log:
draw a rect around the (not yet drawn) image
Modified:
trunk/reactos/dll/win32/shimgvw/shimgvw.c
Modified: trunk/reactos/dll/win32/shimgvw/shimgvw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shimgvw/shimgvw.…
==============================================================================
--- trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] Wed Jan 28 03:09:30 2009
@@ -152,6 +152,7 @@
}
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 @@
}
}
}
- break;
+ return TRUE;
}
case WM_SIZING:
{
@@ -432,8 +433,8 @@
// 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);