Changeset 1667 for trunk/src/user32/uitools.cpp
- Timestamp:
- Nov 9, 1999, 6:07:23 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/uitools.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/uitools.cpp
r1513 r1667 1 /* $Id: uitools.cpp,v 1.1 5 1999-10-30 09:19:44 sandervlExp $ */1 /* $Id: uitools.cpp,v 1.16 1999-11-09 17:07:23 cbratschi Exp $ */ 2 2 /* 3 3 * User Interface Functions … … 191 191 epy = rc->bottom; 192 192 spy = epy - SmallDiam; 193 epx++;194 epy--;195 193 break; 196 194 … … 202 200 epy = rc->top-1; 203 201 spy = epy + SmallDiam; 204 epx++;205 epy++;206 202 break; 207 203 … … 221 217 spy = rc->bottom-1; 222 218 epy = spy - SmallDiam; 223 epx--;224 epy++;225 219 break; 226 220 } … … 358 352 * 359 353 * 23-Nov-1997: Changed by Bertho Stultiens 360 * 25-June-1999: Changed by Christoph Bratschi361 *362 * Attention: only draw in the rect's range!363 * left to right-1364 * top to bottom-1365 354 * 366 355 * Well, I started testing this and found out that there are a few things … … 508 497 { 509 498 MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL); 510 LineTo(hdc, InnerRect.right -1, InnerRect.top);499 LineTo(hdc, InnerRect.right, InnerRect.top); 511 500 } 512 501 if(uFlags & BF_LEFT) 513 502 { 514 503 MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL); 515 LineTo(hdc, InnerRect.left, InnerRect.bottom -1);504 LineTo(hdc, InnerRect.left, InnerRect.bottom); 516 505 } 517 506 … … 520 509 { 521 510 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); 523 512 } 524 513 if(uFlags & BF_RIGHT) 525 514 { 526 515 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); 528 517 } 529 518 … … 533 522 { 534 523 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); 536 525 } 537 526 if(uFlags & BF_LEFT) 538 527 { 539 528 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); 541 530 } 542 531 SelectObject(hdc, RBInnerPen); … … 544 533 { 545 534 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); 547 536 } 548 537 if(uFlags & BF_RIGHT) 549 538 { 550 539 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); 552 541 } 553 542
Note:
See TracChangeset
for help on using the changeset viewer.
