- Timestamp:
- Jan 28, 2003, 5:21:18 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/uitools.cpp
r7709 r9736 1 /* $Id: uitools.cpp,v 1.3 2 2001-12-30 16:51:17sandervl Exp $ */1 /* $Id: uitools.cpp,v 1.33 2003-01-28 16:21:18 sandervl Exp $ */ 2 2 /* 3 3 * User Interface Functions … … 1616 1616 BOOL WIN32API DrawFocusRect( HDC hdc, const RECT *lpRect) 1617 1617 { 1618 #if 0 1619 //TODO: This doesn't work. Find out why (SetBkMode!) 1618 //TODO: This doesn't work. Find out why (SetROP2!) 1619 //NOTE: Executing this code in NT4 shows the same problem. No visible 1620 // rectangle. Commenting out SetROP2 creates a solid rectangle in 1621 // in NT4. (instead of dotted) 1620 1622 1621 1623 HBRUSH hOldBrush; … … 1623 1625 INT oldDrawMode, oldBkMode; 1624 1626 1625 dprintf(("USER32: DrawFocusRect %x %x", hdc, lpRect));1627 dprintf(("USER32: DrawFocusRect %x (%d,%d)(%d,%d)", hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom)); 1626 1628 1627 1629 hOldBrush = SelectObject(hdc, GetStockObject(NULL_BRUSH)); 1628 1630 hNewPen = CreatePen(PS_ALTERNATE, 1, GetSysColor(COLOR_WINDOWTEXT)); 1629 1631 hOldPen = SelectObject(hdc, hNewPen); 1630 oldDrawMode = SetROP2(hdc, R2_XORPEN);1632 //// oldDrawMode = SetROP2(hdc, R2_XORPEN); 1631 1633 oldBkMode = SetBkMode(hdc, TRANSPARENT); 1632 1634 … … 1634 1636 1635 1637 SetBkMode(hdc, oldBkMode); 1636 SetROP2(hdc, oldDrawMode);1638 //// SetROP2(hdc, oldDrawMode); 1637 1639 SelectObject(hdc, hOldPen); 1638 1640 DeleteObject(hNewPen); … … 1640 1642 1641 1643 return TRUE; 1642 #else1643 BOOL rc;1644 1645 rc = O32_DrawFocusRect(hdc, lpRect);1646 dprintf(("USER32: DrawFocusRect %x %x returned %d", hdc, lpRect, rc));1647 return rc;1648 #endif1649 1644 } 1650 1645 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.