Changeset 2523 for trunk/src/comctl32/progress.c
- Timestamp:
- Jan 26, 2000, 7:04:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/progress.c
r1431 r2523 1 /* $Id: progress.c,v 1.1 1 1999-10-24 22:49:46 sandervlExp $ */1 /* $Id: progress.c,v 1.12 2000-01-26 18:04:29 cbratschi Exp $ */ 2 2 /* 3 3 * Progress control … … 21 21 22 22 #define LED_GAP 2 23 #define BORDER_WIDTH 323 #define BORDER_WIDTH 1 24 24 25 25 /* Work constants */ … … 64 64 65 65 /* draw the background */ 66 if (!inUpdate) 67 { 68 FillRect(hdc, &rect, hbrBk); 69 //Border 70 hbrLight = GetSysColorPen(COLOR_BTNHILIGHT); 71 hbrShadow = GetSysColorPen(COLOR_BTNSHADOW); 72 MoveToEx(hdc,rect.left,rect.bottom-1,NULL); 73 hbrOld = SelectObject(hdc,hbrShadow); 74 LineTo(hdc,rect.left,rect.top); 75 LineTo(hdc,rect.right-1,rect.top); 76 SelectObject(hdc,hbrLight); 77 LineTo(hdc,rect.right-1,rect.bottom-1); 78 LineTo(hdc,rect.left,rect.bottom-1); 79 SelectObject(hdc,hbrOld); 80 } 66 if (!inUpdate) FillRect(hdc, &rect, hbrBk); 81 67 82 68 rect.left += BORDER_WIDTH;
Note:
See TracChangeset
for help on using the changeset viewer.