Ignore:
Timestamp:
Apr 1, 2000, 1:35:00 PM (25 years ago)
Author:
cbratschi
Message:

today is a good day ;)

File:
1 edited

Legend:

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

    r3153 r3291  
    1 /* $Id: win32wbasenonclient.cpp,v 1.17 2000-03-18 16:13:39 cbratschi Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.18 2000-04-01 11:35:00 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    857857  HDC memDC;
    858858  HBITMAP memBmp,oldBmp;
     859  SYSTEMTIME time; //WYSIWYGOFOA
     860
     861  GetSystemTime(&time);
     862
    859863
    860864  memDC = CreateCompatibleDC(hdc);
     
    875879  {
    876880    COLORREF startColor = GetSysColor(active ? COLOR_ACTIVECAPTION:COLOR_INACTIVECAPTION),endColor = GetSysColor(active ? COLOR_GRADIENTACTIVECAPTION:COLOR_GRADIENTINACTIVECAPTION);
     881
     882    if ((time.wMonth == 4) && (time.wDay == 1))
     883    {
     884      startColor = RGB(rand() & 0xFF,rand() & 0xFF,rand() & 0xFF);
     885      endColor = RGB(rand() & 0xFF,rand() & 0xFF,rand() & 0xFF);
     886    }
    877887
    878888    if (startColor == endColor)
     
    955965  }
    956966
    957   if (GetWindowTextA(buffer, sizeof(buffer) ))
     967  if (GetWindowTextA(buffer, sizeof(buffer)-2 )) //WYSIWYGOFOA: -2
    958968  {
    959969    NONCLIENTMETRICSA nclm;
    960970    HFONT hFont, hOldFont;
     971
     972    if ((time.wMonth == 4) && (time.wDay == 1)) strcat(buffer,"/2"); //WYSIWYGOFOA
    961973
    962974    nclm.cbSize = sizeof(NONCLIENTMETRICSA);
     
    13851397
    13861398      if (!win32wnd) return 0;
    1387        
     1399
    13881400      DrawIconEx (hdc, pt.x, pt.y, win32wnd->IconForWindow(ICON_SMALL),
    13891401                  GetSystemMetrics(SM_CXSMICON),
Note: See TracChangeset for help on using the changeset viewer.