mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue