Changeset 1210 for trunk/src/user32/button.cpp
- Timestamp:
- Oct 9, 1999, 1:03:23 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/button.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/button.cpp
r1203 r1210 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) :
Note:
See TracChangeset
for help on using the changeset viewer.
