mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:35:40 +00:00
changed window caption to design proposal from #reactos channel
svn path=/trunk/; revision=21661
This commit is contained in:
parent
990019c419
commit
7850d9f178
1 changed files with 8 additions and 17 deletions
|
@ -1150,7 +1150,7 @@ DrawCaption(HWND hWnd, HDC hDC, LPCRECT lprc, UINT uFlags)
|
|||
if (uFlags & DC_GRADIENT)
|
||||
{
|
||||
static GRADIENT_RECT gcap = {0, 1};
|
||||
TRIVERTEX vert[3];
|
||||
TRIVERTEX vert[2];
|
||||
COLORREF Colors[2];
|
||||
LONG xx;
|
||||
|
||||
|
@ -1178,28 +1178,19 @@ DrawCaption(HWND hWnd, HDC hDC, LPCRECT lprc, UINT uFlags)
|
|||
|
||||
vert[0].x = r.left;
|
||||
vert[0].y = 0;
|
||||
vert[0].Red = GetRValue(Colors[1]) << 8;
|
||||
vert[0].Green = GetGValue(Colors[1]) << 8;
|
||||
vert[0].Blue = GetBValue(Colors[1]) << 8;
|
||||
vert[0].Red = GetRValue(Colors[0]) << 8;
|
||||
vert[0].Green = GetGValue(Colors[0]) << 8;
|
||||
vert[0].Blue = GetBValue(Colors[0]) << 8;
|
||||
vert[0].Alpha = 0;
|
||||
|
||||
vert[1].x = r.right;
|
||||
vert[1].y = (lprc->bottom - lprc->top) / 2;
|
||||
vert[1].Red = GetRValue(Colors[0]) << 8;
|
||||
vert[1].Green = GetGValue(Colors[0]) << 8;
|
||||
vert[1].Blue = GetBValue(Colors[0]) << 8;
|
||||
vert[1].y = lprc->bottom - lprc->top;
|
||||
vert[1].Red = GetRValue(Colors[1]) << 8;
|
||||
vert[1].Green = GetGValue(Colors[1]) << 8;
|
||||
vert[1].Blue = GetBValue(Colors[1]) << 8;
|
||||
vert[1].Alpha = 0;
|
||||
|
||||
vert[2].x = r.right;
|
||||
vert[2].y = lprc->bottom - lprc->top;
|
||||
vert[2].Red = GetRValue(Colors[1]) << 8;
|
||||
vert[2].Green = GetGValue(Colors[1]) << 8;
|
||||
vert[2].Blue = GetBValue(Colors[1]) << 8;
|
||||
vert[2].Alpha = 0;
|
||||
|
||||
GdiGradientFill(MemDC, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_V);
|
||||
vert[1].x = r.left;
|
||||
GdiGradientFill(MemDC, &vert[1], 2, &gcap, 1, GRADIENT_FILL_RECT_V);
|
||||
|
||||
if ((uFlags & DC_ICON) && (Style & WS_SYSMENU) && !(uFlags & DC_SMALLCAP))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue