Changeset 3291 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Apr 1, 2000, 1:35:00 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r3153 r3291 1 /* $Id: win32wbasenonclient.cpp,v 1.1 7 2000-03-18 16:13:39cbratschi Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.18 2000-04-01 11:35:00 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 857 857 HDC memDC; 858 858 HBITMAP memBmp,oldBmp; 859 SYSTEMTIME time; //WYSIWYGOFOA 860 861 GetSystemTime(&time); 862 859 863 860 864 memDC = CreateCompatibleDC(hdc); … … 875 879 { 876 880 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 } 877 887 878 888 if (startColor == endColor) … … 955 965 } 956 966 957 if (GetWindowTextA(buffer, sizeof(buffer) ))967 if (GetWindowTextA(buffer, sizeof(buffer)-2 )) //WYSIWYGOFOA: -2 958 968 { 959 969 NONCLIENTMETRICSA nclm; 960 970 HFONT hFont, hOldFont; 971 972 if ((time.wMonth == 4) && (time.wDay == 1)) strcat(buffer,"/2"); //WYSIWYGOFOA 961 973 962 974 nclm.cbSize = sizeof(NONCLIENTMETRICSA); … … 1385 1397 1386 1398 if (!win32wnd) return 0; 1387 1399 1388 1400 DrawIconEx (hdc, pt.x, pt.y, win32wnd->IconForWindow(ICON_SMALL), 1389 1401 GetSystemMetrics(SM_CXSMICON),
Note:
See TracChangeset
for help on using the changeset viewer.