Changeset 2228 for trunk/src/user32/button.cpp
- Timestamp:
- Dec 28, 1999, 6:04:24 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/button.cpp
r2221 r2228 1 /* $Id: button.cpp,v 1.2 6 1999-12-27 22:53:51cbratschi Exp $ */1 /* $Id: button.cpp,v 1.27 1999-12-28 17:04:22 cbratschi Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 125 125 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE); 126 126 127 if ( dwStyle & BS_NOTIFY&& !wParam) BUTTON_SendNotify(hwnd,BN_DISABLE);127 if ((dwStyle & BS_NOTIFY) && !wParam) BUTTON_SendNotify(hwnd,BN_DISABLE); 128 128 129 129 //PAINT_BUTTON(hwnd,dwStyle & 0x0f,ODA_DRAWENTIRE); … … 151 151 } else checkBoxWidth = checkBoxHeight = 0; 152 152 } 153 if ( style < 0L || style >= MAX_BTN_TYPE) return -1; /* abort */153 if ((style < 0L) || (style >= MAX_BTN_TYPE)) return -1; /* abort */ 154 154 155 155 infoPtr = (BUTTONINFO*)malloc(sizeof(BUTTONINFO)); … … 409 409 if (dwStyle & BS_NOTIFY) BUTTON_SendNotify(hwnd,BN_SETFOCUS); 410 410 411 if (( style == BS_AUTORADIOBUTTON || style == BS_RADIOBUTTON) &&411 if (((style == BS_AUTORADIOBUTTON) || (style == BS_RADIOBUTTON)) && 412 412 (GetCapture() != hwnd) && !(SendMessageA(hwnd,BM_GETCHECK,0,0) & BST_CHECKED)) 413 413 { … … 484 484 HANDLE oldHbitmap = infoPtr->hImage; 485 485 486 if ( dwStyle & BS_BITMAP || dwStyle & BS_ICON) infoPtr->hImage = (HANDLE)lParam;486 if ((dwStyle & BS_BITMAP) || (dwStyle & BS_ICON)) infoPtr->hImage = (HANDLE)lParam; 487 487 488 488 return oldHbitmap; … … 529 529 dwStyle &= ~WS_TABSTOP; 530 530 531 //if (oldStyle != dwStyle) SetWindowLongA(hwnd,GWL_STYLE,dwStyle);531 if (oldStyle != dwStyle) SetWindowLongA(hwnd,GWL_STYLE,dwStyle); 532 532 } 533 533 infoPtr->state = (infoPtr->state & ~3) | wParam; … … 775 775 */ 776 776 textLen = GetWindowTextLengthA(hwnd); 777 if ( textLen > 0&& (!(dwStyle & (BS_ICON|BS_BITMAP))))777 if ((textLen > 0) && (!(dwStyle & (BS_ICON|BS_BITMAP)))) 778 778 { 779 779 INT format = BUTTON_GetTextFormat(dwStyle,DT_CENTER,DT_VCENTER); … … 885 885 SelectObject( hDC, hOldBrush ); 886 886 887 if ( infoPtr->state & BUTTON_HASFOCUS&& IsWindowEnabled(hwnd))887 if ((infoPtr->state & BUTTON_HASFOCUS) && IsWindowEnabled(hwnd)) 888 888 { 889 889 InflateRect( &focus_rect, -1, -1 ); … … 980 980 GetWindowTextA(hwnd,text,textLen); 981 981 } 982 if ( action == ODA_DRAWENTIRE || action == ODA_SELECT)982 if ((action == ODA_DRAWENTIRE) || (action == ODA_SELECT)) 983 983 { 984 984 UINT state;
Note:
See TracChangeset
for help on using the changeset viewer.