mirror of
https://github.com/reactos/reactos.git
synced 2025-07-15 18:34:05 +00:00
draw disk usage bar from "used" to "free" (left to right)
svn path=/trunk/; revision=36801
This commit is contained in:
parent
9353696890
commit
fc86d60e95
1 changed files with 3 additions and 3 deletions
|
@ -350,11 +350,11 @@ PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT drawItem)
|
||||||
horzsize = rect.right - rect.left;
|
horzsize = rect.right - rect.left;
|
||||||
Result.QuadPart = (Result.QuadPart * horzsize) / 100;
|
Result.QuadPart = (Result.QuadPart * horzsize) / 100;
|
||||||
|
|
||||||
rect.right = rect.left + Result.QuadPart;
|
rect.right = drawItem->rcItem.right - Result.QuadPart;
|
||||||
FillRect(drawItem->hDC, &rect, hMagBrush);
|
FillRect(drawItem->hDC, &rect, hBlueBrush);
|
||||||
rect.left = rect.right;
|
rect.left = rect.right;
|
||||||
rect.right = drawItem->rcItem.right;
|
rect.right = drawItem->rcItem.right;
|
||||||
FillRect(drawItem->hDC, &rect, hBlueBrush);
|
FillRect(drawItem->hDC, &rect, hMagBrush);
|
||||||
DeleteObject(hBlueBrush);
|
DeleteObject(hBlueBrush);
|
||||||
DeleteObject(hMagBrush);
|
DeleteObject(hMagBrush);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue