Ignore:
Timestamp:
Nov 9, 1999, 6:07:23 PM (26 years ago)
Author:
cbratschi
Message:

MoveTo, system resource handling fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/uitools.cpp

    r1513 r1667  
    1 /* $Id: uitools.cpp,v 1.15 1999-10-30 09:19:44 sandervl Exp $ */
     1/* $Id: uitools.cpp,v 1.16 1999-11-09 17:07:23 cbratschi Exp $ */
    22/*
    33 * User Interface Functions
     
    191191        epy = rc->bottom;
    192192        spy = epy - SmallDiam;
    193         epx++;
    194         epy--;
    195193        break;
    196194
     
    202200        epy = rc->top-1;
    203201        spy = epy + SmallDiam;
    204         epx++;
    205         epy++;
    206202        break;
    207203
     
    221217        spy = rc->bottom-1;
    222218        epy = spy - SmallDiam;
    223         epx--;
    224         epy++;
    225219        break;
    226220    }
     
    358352 *
    359353 * 23-Nov-1997: Changed by Bertho Stultiens
    360  * 25-June-1999: Changed by Christoph Bratschi
    361  *
    362  * Attention: only draw in the rect's range!
    363  *   left to right-1
    364  *   top to bottom-1
    365354 *
    366355 * Well, I started testing this and found out that there are a few things
     
    508497    {
    509498        MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL);
    510         LineTo(hdc, InnerRect.right-1, InnerRect.top);
     499        LineTo(hdc, InnerRect.right, InnerRect.top);
    511500    }
    512501    if(uFlags & BF_LEFT)
    513502    {
    514503        MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL);
    515         LineTo(hdc, InnerRect.left, InnerRect.bottom-1);
     504        LineTo(hdc, InnerRect.left, InnerRect.bottom);
    516505    }
    517506
     
    520509    {
    521510        MoveToEx(hdc, InnerRect.right-1, InnerRect.bottom-1, NULL);
    522         LineTo(hdc, InnerRect.left, InnerRect.bottom-1);
     511        LineTo(hdc, InnerRect.left-1, InnerRect.bottom-1);
    523512    }
    524513    if(uFlags & BF_RIGHT)
    525514    {
    526515        MoveToEx(hdc, InnerRect.right-1, InnerRect.bottom-1, NULL);
    527         LineTo(hdc, InnerRect.right-1, InnerRect.top);
     516        LineTo(hdc, InnerRect.right-1, InnerRect.top-1);
    528517    }
    529518
     
    533522    {
    534523        MoveToEx(hdc, InnerRect.left+LTpenplus, InnerRect.top+1, NULL);
    535         LineTo(hdc, InnerRect.right-RTpenplus-1, InnerRect.top+1);
     524        LineTo(hdc, InnerRect.right-RTpenplus, InnerRect.top+1);
    536525    }
    537526    if(uFlags & BF_LEFT)
    538527    {
    539528        MoveToEx(hdc, InnerRect.left+1, InnerRect.top+LTpenplus, NULL);
    540         LineTo(hdc, InnerRect.left+1, InnerRect.bottom-LBpenplus-1);
     529        LineTo(hdc, InnerRect.left+1, InnerRect.bottom-LBpenplus);
    541530    }
    542531    SelectObject(hdc, RBInnerPen);
     
    544533    {
    545534        MoveToEx(hdc, InnerRect.right-1-RBpenplus, InnerRect.bottom-2, NULL);
    546         LineTo(hdc, InnerRect.left+LBpenplus, InnerRect.bottom-2);
     535        LineTo(hdc, InnerRect.left-1+LBpenplus, InnerRect.bottom-2);
    547536    }
    548537    if(uFlags & BF_RIGHT)
    549538    {
    550539        MoveToEx(hdc, InnerRect.right-2, InnerRect.bottom-1-RBpenplus, NULL);
    551         LineTo(hdc, InnerRect.right-2, InnerRect.top+RTpenplus);
     540        LineTo(hdc, InnerRect.right-2, InnerRect.top-1+RTpenplus);
    552541    }
    553542
Note: See TracChangeset for help on using the changeset viewer.