Changeset 219 for trunk/src/comctl32/progress.c
- Timestamp:
- Jun 26, 1999, 4:20:32 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/progress.c
r110 r219 1 /* $Id: progress.c,v 1. 5 1999-06-16 20:25:43cbratschi Exp $ */1 /* $Id: progress.c,v 1.6 1999-06-26 14:20:31 cbratschi Exp $ */ 2 2 /* 3 3 * Progress control … … 56 56 57 57 /* get the required background brush */ 58 if (infoPtr->ColorBk == CLR_DEFAULT) hbrBk = GetSysColorBrush 59 else hbrBk = CreateSolidBrush 58 if (infoPtr->ColorBk == CLR_DEFAULT) hbrBk = GetSysColorBrush(COLOR_3DFACE); 59 else hbrBk = CreateSolidBrush(infoPtr->ColorBk); 60 60 61 61 /* get client rectangle */ 62 62 GetClientRect (hwnd, &rect); 63 rect.right--;64 rect.bottom--;65 63 66 64 /* draw the background */ … … 69 67 FillRect(hdc, &rect, hbrBk); 70 68 //Border 71 hbrLight = GetSysColor Brush(COLOR_3DLIGHT);72 hbrShadow = GetSysColor Brush(COLOR_3DSHADOW);73 MoveToEx(hdc,rect.left,rect.bottom ,NULL);69 hbrLight = GetSysColorPen(COLOR_BTNHILIGHT); 70 hbrShadow = GetSysColorPen(COLOR_BTNSHADOW); 71 MoveToEx(hdc,rect.left,rect.bottom-1,NULL); 74 72 hbrOld = SelectObject(hdc,hbrShadow); 75 73 LineTo(hdc,rect.left,rect.top); 76 LineTo(hdc,rect.right ,rect.top);74 LineTo(hdc,rect.right-1,rect.top); 77 75 SelectObject(hdc,hbrLight); 78 LineTo(hdc,rect.right ,rect.bottom);79 LineTo(hdc,rect.left,rect.bottom );76 LineTo(hdc,rect.right-1,rect.bottom-1); 77 LineTo(hdc,rect.left,rect.bottom-1); 80 78 SelectObject(hdc,hbrOld); 81 79 }
Note:
See TracChangeset
for help on using the changeset viewer.