Changeset 3584 for trunk/src/user32/button.cpp
- Timestamp:
- May 22, 2000, 7:21:11 PM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/button.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/button.cpp
r3153 r3584 1 /* $Id: button.cpp,v 1.3 4 2000-03-18 16:13:25cbratschi Exp $ */1 /* $Id: button.cpp,v 1.35 2000-05-22 17:21:06 cbratschi Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 7 7 * Copyright (c) 1999 Christoph Bratschi 8 8 * 9 * Corel version: 20000 3179 * Corel version: 20000513 10 10 * (WINE version: 20000130) 11 11 * … … 924 924 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE); 925 925 RECT rbox, rtext, client; 926 HBRUSH hBrush; 926 HBRUSH hBrush, hOldBrush; 927 HPEN hPen, hOldPen; 928 COLORREF colour; 927 929 int textLen, delta; 928 930 char* text = NULL; … … 960 962 961 963 hBrush = GetSysColorBrush(COLOR_BTNFACE); 964 965 /* In order to make things right, draw the rectangle background! */ 966 if ( !(infoPtr->state & BUTTON_HASFOCUS) && (action == ODA_DRAWENTIRE) ) 967 { 968 colour = GetBkColor(hDC); 969 hPen = CreatePen( PS_SOLID, 1, colour ); 970 if ( hPen ) 971 { 972 hOldBrush = SelectObject( hDC, hBrush ); 973 hOldPen = SelectObject( hDC, hPen ); 974 Rectangle( hDC, client.left, client.top, client.right, client.bottom ); 975 SelectObject( hDC, hOldPen ); 976 SelectObject( hDC, hOldBrush ); 977 DeleteObject( hPen ); 978 } 979 } 962 980 963 981 if (dwStyle & BS_LEFTTEXT)
Note:
See TracChangeset
for help on using the changeset viewer.
