- MoveToEx(hdcDraw, bounds.left, bounds.top, NULL);
- LineTo(hdcDraw, bounds.left+width-1, bounds.top);
- LineTo(hdcDraw, bounds.left+width-1, bounds.top+height-1);
- LineTo(hdcDraw, bounds.left, bounds.top+height-1);
- LineTo(hdcDraw, bounds.left, bounds.top);
+ if( NULL != lprcWBounds )
+ {
+ RECT wBounds = { lprcWBounds->left, lprcWBounds->top, lprcWBounds->right, lprcWBounds->bottom };
+ pict->Render(hdcDraw, dstX, dstY, picSize.cx, picSize.cy,
+ 0L, picHeight, picWidth, -picHeight, &wBounds);
+ }
+ else
+ pict->Render(hdcDraw, dstX, dstY, picSize.cx, picSize.cy,
+ 0L, picHeight, picWidth, -picHeight, NULL);
+
+ pict->Release();
+ }
+
+ SelectObject(hdcDraw, GetStockObject(BLACK_BRUSH));
+
+ MoveToEx(hdcDraw, bounds.left, bounds.top, NULL);
+ LineTo(hdcDraw, bounds.left+width-1, bounds.top);
+ LineTo(hdcDraw, bounds.left+width-1, bounds.top+height-1);
+ LineTo(hdcDraw, bounds.left, bounds.top+height-1);
+ LineTo(hdcDraw, bounds.left, bounds.top);
+ }