- Timestamp:
- Jan 9, 2000, 8:46:27 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmtitlebar.cpp
r2384 r2394 1 /* $Id: pmtitlebar.cpp,v 1. 3 2000-01-09 15:56:03sandervl Exp $ */1 /* $Id: pmtitlebar.cpp,v 1.4 2000-01-09 19:46:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Titlebar Managment Code for OS/2 … … 108 108 109 109 default: 110 if(msg == TBM_SETHILITE || msg == WM_ERASEBACKGROUND) 111 goto RunDefWndProc; 110 112 goto RunDefTitleBarProc; 111 113 } -
trunk/src/user32/syscolor.cpp
r1849 r2394 1 /* $Id: syscolor.cpp,v 1.1 2 1999-11-26 17:06:08 cbratschiExp $ */1 /* $Id: syscolor.cpp,v 1.13 2000-01-09 19:46:26 sandervl Exp $ */ 2 2 3 3 /* … … 273 273 return NUM_SYS_COLORS; 274 274 } 275 //****************************************************************************** 276 //****************************************************************************** 277 BOOL SYSCOLOR_GetUseWinColors(VOID) 278 { 279 return USEWINCOLORS; 280 } -
trunk/src/user32/syscolor.h
r1849 r2394 1 /* $Id: syscolor.h,v 1. 7 1999-11-26 17:06:08 cbratschiExp $ */1 /* $Id: syscolor.h,v 1.8 2000-01-09 19:46:27 sandervl Exp $ */ 2 2 3 3 /* … … 20 20 extern INT SYSCOLOR_GetLastColor(VOID); 21 21 extern INT SYSCOLOR_GetNumColors(VOID); 22 extern BOOL SYSCOLOR_GetUseWinColors(VOID); 22 23 23 24 #endif /* __WINE_SYSCOLOR_H */ -
trunk/src/user32/win32wbasepaint.cpp
r2391 r2394 1 /* $Id: win32wbasepaint.cpp,v 1. 4 2000-01-09 17:57:50sandervl Exp $ */1 /* $Id: win32wbasepaint.cpp,v 1.5 2000-01-09 19:46:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 710 710 r.bottom--; 711 711 712 FillRect( hdc, &r, GetSysColorBrush(active ? COLOR_ACTIVECAPTION : COLOR_INACTIVECAPTION) ); 712 //CB: todo: 713 //COLOR_GRADIENTACTIVECAPTION 714 //COLOR_GRADIENTINACTIVECAPTION 715 //-> end color 716 717 if (SYSCOLOR_GetUseWinColors()) 718 { 719 COLORREF startColor = GetSysColor(active ? COLOR_ACTIVECAPTION:COLOR_INACTIVECAPTION),endColor = GetSysColor(active ? COLOR_GRADIENTACTIVECAPTION:COLOR_GRADIENTINACTIVECAPTION); 720 721 if (startColor == endColor) 722 FillRect(hdc,&r,GetSysColorBrush(startColor)); 723 else 724 { 725 INT rDiff = GetRValue(endColor)-GetRValue(startColor); 726 INT gDiff = GetGValue(endColor)-GetGValue(startColor); 727 INT bDiff = GetBValue(endColor)-GetBValue(startColor); 728 INT steps = MAX(MAX(abs(rDiff),abs(gDiff)),abs(bDiff)); 729 INT w = r.right-r.left; 730 RECT r2; 731 732 if (w < steps) steps = w; 733 r2.left = r2.right = r.left; 734 r2.top = r.top; 735 r2.bottom = r.bottom; 736 for (INT x = 0;x <= steps;x++) 737 { 738 COLORREF color = RGB(GetRValue(startColor)+rDiff*x/steps,GetGValue(startColor)+gDiff*x/steps,GetBValue(startColor)+bDiff*x/steps); 739 HBRUSH brush = CreateSolidBrush(color); 740 741 r2.left = r2.right; 742 r2.right = r.left+w*x/steps; 743 FillRect(hdc,&r2,brush); 744 DeleteObject(brush); 745 } 746 } 747 } 748 else FillRect(hdc,&r,GetSysColorBrush(active ? COLOR_ACTIVECAPTION:COLOR_INACTIVECAPTION)); 713 749 714 750 if (!hbitmapClose)
Note:
See TracChangeset
for help on using the changeset viewer.