draw disk usage bar from "used" to "free" (left to right)

svn path=/trunk/; revision=36801
This commit is contained in:
Matthias Kupfer 2008-10-17 21:54:03 +00:00
parent 9353696890
commit fc86d60e95

View file

@ -350,11 +350,11 @@ PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT drawItem)
horzsize = rect.right - rect.left;
Result.QuadPart = (Result.QuadPart * horzsize) / 100;
rect.right = rect.left + Result.QuadPart;
FillRect(drawItem->hDC, &rect, hMagBrush);
rect.right = drawItem->rcItem.right - Result.QuadPart;
FillRect(drawItem->hDC, &rect, hBlueBrush);
rect.left = rect.right;
rect.right = drawItem->rcItem.right;
FillRect(drawItem->hDC, &rect, hBlueBrush);
FillRect(drawItem->hDC, &rect, hMagBrush);
DeleteObject(hBlueBrush);
DeleteObject(hMagBrush);
}