Changeset 11799
- Timestamp:
- Oct 9, 1999, 1:03:23 PM (26 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/button.cpp ¶
r11792 r11799 1 /* $Id: button.cpp,v 1. 5 1999-10-08 21:23:07 cbratschiExp $ */1 /* $Id: button.cpp,v 1.6 1999-10-09 11:03:22 sandervl Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 22 22 #include "controls.h" 23 23 #include "button.h" 24 #include <misc.h> 24 25 25 26 //Prototypes … … 118 119 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE); 119 120 120 PAINT_BUTTON(hwnd,dwStyle & 0x0f,ODA_DRAWENTIRE); 121 // PAINT_BUTTON(hwnd,dwStyle & 0x0f,ODA_DRAWENTIRE); 122 //SvL: 09/10/99 Force it to redraw properly 123 InvalidateRect( hwnd, NULL, FALSE ); 121 124 122 125 return 0; … … 696 699 GetWindowTextA(hwnd,text,textLen); 697 700 GetObjectA( GetSysColorBrush(COLOR_BTNFACE), sizeof(lb), &lb ); 698 if (dwStyle & WS_DISABLED && 699 GetSysColor(COLOR_GRAYTEXT)==lb.lbColor) 701 if (dwStyle & WS_DISABLED && GetSysColor(COLOR_GRAYTEXT)==lb.lbColor) 702 { 703 dprintf(("Disable button")); 700 704 /* don't write gray text on gray background */ 701 705 PaintGrayOnGray( hDC,infoPtr->hFont,&rc,text, 702 706 DT_CENTER | DT_VCENTER ); 707 } 703 708 else 704 709 { 710 dprintf(("Enable button")); 705 711 SetTextColor( hDC, (dwStyle & WS_DISABLED) ? 706 712 GetSysColor(COLOR_GRAYTEXT) : -
TabularUnified tags/trunk/src/user32/pmwindow.cpp ¶
r11775 r11799 1 /* $Id: pmwindow.cpp,v 1.2 2 1999-10-08 14:57:17sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.23 1999-10-09 11:03:23 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 220 220 case WM_ENABLE: 221 221 dprintf(("OS2: WM_ENABLE %x", hwnd)); 222 if(win32wnd->MsgEnable( (ULONG)mp1)) {222 if(win32wnd->MsgEnable(SHORT1FROMMP(mp1))) { 223 223 goto RunDefWndProc; 224 224 } -
TabularUnified tags/trunk/src/user32/syscolor.cpp ¶
r11729 r11799 1 /* $Id: syscolor.cpp,v 1. 8 1999-10-05 16:53:49 cbratschiExp $ */1 /* $Id: syscolor.cpp,v 1.9 1999-10-09 11:03:23 sandervl Exp $ */ 2 2 3 3 /* … … 21 21 #include "user32.h" 22 22 #include "syscolor.h" 23 24 //SvL: Open32 colors are much better than those in the table below 25 #define NUM_OPEN32_SYSCOLORS 21 23 26 24 27 #define NUM_SYS_COLORS (COLOR_GRADIENTINACTIVECAPTION+1) … … 107 110 108 111 SYSCOLOR_Load(); 109 for (x = 0;x < NUM_SYS_COLORS;x++) SYSCOLOR_SetColor(x,SysColors[x]); 112 for (x = 0;x < NUM_SYS_COLORS;x++) { 113 if(x < NUM_OPEN32_SYSCOLORS) 114 SYSCOLOR_SetColor(x,O32_GetSysColor(x)); 115 else SYSCOLOR_SetColor(x,SysColors[x]); 116 } 110 117 } 111 118 //****************************************************************************** … … 119 126 } 120 127 121 if (nIndex >= 0 && nIndex < NUM_SYS_COLORS) return SysColors[nIndex]; 128 if (nIndex >= 0 && nIndex < NUM_SYS_COLORS) 129 { 130 if(nIndex < NUM_OPEN32_SYSCOLORS) 131 return O32_GetSysColor(nIndex); 132 else return SysColors[nIndex]; 133 } 122 134 else return 0; 123 135 } … … 138 150 WriteLog("OS2SetSysColors\n"); 139 151 #endif 152 153 O32_SetSysColors(nChanges, lpSysColor, lpColorValues); 140 154 141 155 for(i=0;i<nChanges;i++) {
Note:
See TracChangeset
for help on using the changeset viewer.