Ignore:
Timestamp:
Oct 16, 1999, 12:28:31 PM (26 years ago)
Author:
sandervl
Message:

groupbox redraw + setpos fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/button.cpp

    r1258 r1314  
    1 /* $Id: button.cpp,v 1.9 1999-10-12 18:14:53 sandervl Exp $ */
     1/* $Id: button.cpp,v 1.10 1999-10-16 10:28:30 sandervl Exp $ */
    22/* File: button.cpp -- Button type widgets
    33 *
     
    163163static LRESULT BUTTON_EraseBkgnd(HWND hwnd,WPARAM wParam,LPARAM lParam)
    164164{
    165   return 1;
     165  //SvL: Erase background for groupboxes as the paint function only draws
     166  //     a box
     167  DWORD style = GetWindowLongA(hwnd,GWL_STYLE) & 0x0f;
     168//  if(style == BS_GROUPBOX) {
     169        return DefWindowProcA(hwnd, WM_ERASEBKGND, wParam, lParam);
     170//  }
     171//  return 1;
    166172}
    167173
     
    10651071    wndClass.cbWndExtra    = sizeof(BUTTONINFO);
    10661072    wndClass.hCursor       = LoadCursorA(0,IDC_ARROWA);
    1067     wndClass.hbrBackground = (HBRUSH)0;
     1073//    wndClass.hbrBackground = (HBRUSH)0;
     1074    wndClass.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
    10681075    wndClass.lpszClassName = BUTTONCLASSNAME;
    10691076
Note: See TracChangeset for help on using the changeset viewer.