Changeset 6961 for trunk/src/user32/uitools.cpp
- Timestamp:
- Oct 7, 2001, 1:48:29 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/uitools.cpp
r5056 r6961 1 /* $Id: uitools.cpp,v 1. 29 2001-02-02 19:04:02sandervl Exp $ */1 /* $Id: uitools.cpp,v 1.30 2001-10-07 11:48:28 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 doens't work. Find out why 1620 1621 HBRUSH hOldBrush; 1622 HPEN hOldPen, hNewPen; 1623 INT oldDrawMode, oldBkMode; 1624 1625 dprintf(("USER32: DrawFocusRect %x %x", hdc, lpRect)); 1626 1627 hOldBrush = SelectObject(hdc, GetStockObject(NULL_BRUSH)); 1628 hNewPen = CreatePen(PS_ALTERNATE, 1, GetSysColor(COLOR_WINDOWTEXT)); 1629 hOldPen = SelectObject(hdc, hNewPen); 1630 oldDrawMode = SetROP2(hdc, R2_XORPEN); 1631 oldBkMode = SetBkMode(hdc, TRANSPARENT); 1632 1633 Rectangle(hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom); 1634 1635 SetBkMode(hdc, oldBkMode); 1636 SetROP2(hdc, oldDrawMode); 1637 SelectObject(hdc, hOldPen); 1638 DeleteObject(hNewPen); 1639 SelectObject(hdc, hOldBrush); 1640 1641 return TRUE; 1642 #else 1618 1643 BOOL rc; 1619 1644 … … 1621 1646 dprintf(("USER32: DrawFocusRect %x %x returned %d", hdc, lpRect, rc)); 1622 1647 return rc; 1648 #endif 1623 1649 } 1624 1650 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.