Changeset 2857 for trunk/src/user32/uitools.cpp
- Timestamp:
- Feb 22, 2000, 6:07:43 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/uitools.cpp
r2852 r2857 1 /* $Id: uitools.cpp,v 1.2 4 2000-02-21 17:25:29cbratschi Exp $ */1 /* $Id: uitools.cpp,v 1.25 2000-02-22 17:07:40 cbratschi Exp $ */ 2 2 /* 3 3 * User Interface Functions … … 15 15 #include "user32.h" 16 16 #include "win32wbase.h" 17 #include "syscolor.h" 17 18 18 19 #define DBG_LOCALLOG DBG_uitools 19 20 #include "dbglocal.h" 20 21 static const WORD wPattern_AA55[8] = { 0xaaaa, 0x5555, 0xaaaa, 0x5555,22 0xaaaa, 0x5555, 0xaaaa, 0x5555 };23 21 24 22 /* These tables are used in: … … 616 614 if(GetSysColor(COLOR_BTNHIGHLIGHT) == RGB(255, 255, 255)) 617 615 { 618 HBITMAP hbm = CreateBitmap(8, 8, 1, 1, wPattern_AA55);616 COLORREF bg; 619 617 HBRUSH hbsave; 620 HBRUSH hb = CreatePatternBrush(hbm);621 COLORREF bg;622 618 623 619 FillRect(dc, rect, GetSysColorBrush(COLOR_BTNFACE)); 624 620 bg = SetBkColor(dc, RGB(255, 255, 255)); 625 hbsave = (HBRUSH)SelectObject(dc, hb);621 hbsave = (HBRUSH)SelectObject(dc,CACHE_GetPattern55AABrush()); 626 622 PatBlt(dc, rect->left, rect->top, rect->right-rect->left, rect->bottom-rect->top, 0x00FA0089); 627 623 SelectObject(dc, hbsave); 628 624 SetBkColor(dc, bg); 629 DeleteObject(hb);630 DeleteObject(hbm);631 625 } 632 626 else … … 1529 1523 if(flags & (DSS_UNION|DSS_DISABLED)) 1530 1524 { 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()); 1536 1526 if(!hbsave) goto cleanup; 1537 1527 tmp = PatBlt(memdc, 0, 0, cx, cy, 0x00FA0089);
Note:
See TracChangeset
for help on using the changeset viewer.