Ignore:
Timestamp:
Oct 7, 2001, 1:48:29 PM (24 years ago)
Author:
sandervl
Message:

frame tracking updates + fixes

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:02 sandervl Exp $ */
     1/* $Id: uitools.cpp,v 1.30 2001-10-07 11:48:28 sandervl Exp $ */
    22/*
    33 * User Interface Functions
     
    16161616BOOL WIN32API DrawFocusRect( HDC hdc, const RECT *lpRect)
    16171617{
     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
    16181643 BOOL rc;
    16191644
     
    16211646    dprintf(("USER32:  DrawFocusRect %x %x returned %d", hdc, lpRect, rc));
    16221647    return rc;
     1648#endif
    16231649}
    16241650//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.