Changeset 9736 for trunk/src


Ignore:
Timestamp:
Jan 28, 2003, 5:21:18 PM (23 years ago)
Author:
sandervl
Message:

Don't use DrawFocusRect from WGSS anymore

File:
1 edited

Legend:

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

    r7709 r9736  
    1 /* $Id: uitools.cpp,v 1.32 2001-12-30 16:51:17 sandervl Exp $ */
     1/* $Id: uitools.cpp,v 1.33 2003-01-28 16:21:18 sandervl Exp $ */
    22/*
    33 * User Interface Functions
     
    16161616BOOL WIN32API DrawFocusRect( HDC hdc, const RECT *lpRect)
    16171617{
    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)
    16201622
    16211623    HBRUSH hOldBrush;
     
    16231625    INT oldDrawMode, oldBkMode;
    16241626
    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));
    16261628
    16271629    hOldBrush = SelectObject(hdc, GetStockObject(NULL_BRUSH));
    16281630    hNewPen = CreatePen(PS_ALTERNATE, 1, GetSysColor(COLOR_WINDOWTEXT));
    16291631    hOldPen = SelectObject(hdc, hNewPen);
    1630     oldDrawMode = SetROP2(hdc, R2_XORPEN);
     1632////    oldDrawMode = SetROP2(hdc, R2_XORPEN);
    16311633    oldBkMode = SetBkMode(hdc, TRANSPARENT);
    16321634
     
    16341636
    16351637    SetBkMode(hdc, oldBkMode);
    1636     SetROP2(hdc, oldDrawMode);
     1638////    SetROP2(hdc, oldDrawMode);
    16371639    SelectObject(hdc, hOldPen);
    16381640    DeleteObject(hNewPen);
     
    16401642
    16411643    return TRUE;
    1642 #else
    1643  BOOL rc;
    1644 
    1645     rc = O32_DrawFocusRect(hdc, lpRect);
    1646     dprintf(("USER32:  DrawFocusRect %x %x returned %d", hdc, lpRect, rc));
    1647     return rc;
    1648 #endif
    16491644}
    16501645//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.