Ignore:
Timestamp:
Feb 22, 2000, 6:07:43 PM (26 years ago)
Author:
cbratschi
Message:

WS_EX_CONTEXTHELP, activated some WINE code

File:
1 edited

Legend:

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

    r2852 r2857  
    1 /* $Id: uitools.cpp,v 1.24 2000-02-21 17:25:29 cbratschi Exp $ */
     1/* $Id: uitools.cpp,v 1.25 2000-02-22 17:07:40 cbratschi Exp $ */
    22/*
    33 * User Interface Functions
     
    1515#include "user32.h"
    1616#include "win32wbase.h"
     17#include "syscolor.h"
    1718
    1819#define DBG_LOCALLOG    DBG_uitools
    1920#include "dbglocal.h"
    20 
    21 static const WORD wPattern_AA55[8] = { 0xaaaa, 0x5555, 0xaaaa, 0x5555,
    22                                        0xaaaa, 0x5555, 0xaaaa, 0x5555 };
    2321
    2422/* These tables are used in:
     
    616614    if(GetSysColor(COLOR_BTNHIGHLIGHT) == RGB(255, 255, 255))
    617615    {
    618       HBITMAP hbm = CreateBitmap(8, 8, 1, 1, wPattern_AA55);
     616      COLORREF bg;
    619617      HBRUSH hbsave;
    620       HBRUSH hb = CreatePatternBrush(hbm);
    621       COLORREF bg;
    622618
    623619      FillRect(dc, rect, GetSysColorBrush(COLOR_BTNFACE));
    624620      bg = SetBkColor(dc, RGB(255, 255, 255));
    625       hbsave = (HBRUSH)SelectObject(dc, hb);
     621      hbsave = (HBRUSH)SelectObject(dc,CACHE_GetPattern55AABrush());
    626622      PatBlt(dc, rect->left, rect->top, rect->right-rect->left, rect->bottom-rect->top, 0x00FA0089);
    627623      SelectObject(dc, hbsave);
    628624      SetBkColor(dc, bg);
    629       DeleteObject(hb);
    630       DeleteObject(hbm);
    631625    }
    632626    else
     
    15291523    if(flags & (DSS_UNION|DSS_DISABLED))
    15301524    {
    1531         WORD wPattern55AA[] = { 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa };
    1532         HBITMAP hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
    1533         HBRUSH hPattern55AABrush = CreatePatternBrush(hPattern55AABitmap);
    1534 
    1535         hbsave = (HBRUSH)SelectObject(memdc, hPattern55AABrush);
     1525        hbsave = (HBRUSH)SelectObject(memdc,CACHE_GetPattern55AABrush());
    15361526        if(!hbsave) goto cleanup;
    15371527        tmp = PatBlt(memdc, 0, 0, cx, cy, 0x00FA0089);
Note: See TracChangeset for help on using the changeset viewer.