mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
draw the border around the progress bar...code might not be entirely 'correct', can this border be disabled/hidden?
svn path=/trunk/; revision=8962
This commit is contained in:
parent
81a05c875c
commit
a20876b230
1 changed files with 10 additions and 9 deletions
|
@ -121,15 +121,16 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc)
|
||||||
else
|
else
|
||||||
hbrBar = CreateSolidBrush (infoPtr->ColorBar);
|
hbrBar = CreateSolidBrush (infoPtr->ColorBar);
|
||||||
|
|
||||||
if (infoPtr->ColorBk == CLR_DEFAULT)
|
/* Draw the border */
|
||||||
hbrBk = GetSysColorBrush(COLOR_3DFACE);
|
|
||||||
else
|
|
||||||
hbrBk = CreateSolidBrush(infoPtr->ColorBk);
|
|
||||||
|
|
||||||
/* get client rectangle */
|
|
||||||
GetClientRect (infoPtr->Self, &rect);
|
GetClientRect (infoPtr->Self, &rect);
|
||||||
FrameRect( hdc, &rect, hbrBk );
|
SelectObject( hdc, CreateSolidBrush( RGB(96, 96, 96) ) );
|
||||||
InflateRect(&rect, -1, -1);
|
PatBlt( hdc, rect.left, rect.top, rect.right - rect.left, 1, PATCOPY );
|
||||||
|
PatBlt( hdc, rect.left, rect.top, 1, rect.bottom - rect.top, PATCOPY );
|
||||||
|
|
||||||
|
SelectObject( hdc, CreateSolidBrush(RGB(255,255,255) ));
|
||||||
|
PatBlt( hdc, rect.left, rect.bottom-1, rect.right - rect.left, 1, PATCOPY );
|
||||||
|
PatBlt( hdc, rect.right-1, rect.top, 1, rect.bottom - rect.top, PATCOPY );
|
||||||
|
InflateRect(&rect, -2, -2);
|
||||||
|
|
||||||
/* get the window style */
|
/* get the window style */
|
||||||
dwStyle = GetWindowLongW (infoPtr->Self, GWL_STYLE);
|
dwStyle = GetWindowLongW (infoPtr->Self, GWL_STYLE);
|
||||||
|
@ -151,7 +152,7 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc)
|
||||||
rightMost = rect.right;
|
rightMost = rect.right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now draw the bar */
|
|
||||||
if (dwStyle & PBS_SMOOTH)
|
if (dwStyle & PBS_SMOOTH)
|
||||||
{
|
{
|
||||||
if (dwStyle & PBS_VERTICAL)
|
if (dwStyle & PBS_VERTICAL)
|
||||||
|
|
Loading…
Reference in a new issue