Ignore:
Timestamp:
Jun 26, 1999, 4:20:32 PM (26 years ago)
Author:
cbratschi
Message:

Updates for new DrawEdge and colors

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:43 cbratschi Exp $ */
     1/* $Id: progress.c,v 1.6 1999-06-26 14:20:31 cbratschi Exp $ */
    22/*
    33 * Progress control
     
    5656
    5757  /* get the required background brush */
    58   if (infoPtr->ColorBk == CLR_DEFAULT) hbrBk = GetSysColorBrush (COLOR_3DFACE);
    59   else hbrBk = CreateSolidBrush (infoPtr->ColorBk);
     58  if (infoPtr->ColorBk == CLR_DEFAULT) hbrBk = GetSysColorBrush(COLOR_3DFACE);
     59  else hbrBk = CreateSolidBrush(infoPtr->ColorBk);
    6060
    6161  /* get client rectangle */
    6262  GetClientRect (hwnd, &rect);
    63   rect.right--;
    64   rect.bottom--;
    6563
    6664  /* draw the background */
     
    6967    FillRect(hdc, &rect, hbrBk);
    7068    //Border
    71     hbrLight = GetSysColorBrush(COLOR_3DLIGHT);
    72     hbrShadow = GetSysColorBrush(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);
    7472    hbrOld = SelectObject(hdc,hbrShadow);
    7573    LineTo(hdc,rect.left,rect.top);
    76     LineTo(hdc,rect.right,rect.top);
     74    LineTo(hdc,rect.right-1,rect.top);
    7775    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);
    8078    SelectObject(hdc,hbrOld);
    8179  }
Note: See TracChangeset for help on using the changeset viewer.