Ignore:
Timestamp:
Jun 14, 2001, 2:56:51 PM (24 years ago)
Author:
sandervl
Message:

button setcheck bugfix

File:
1 edited

Legend:

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

    r5648 r6011  
    1 /* $Id: button.cpp,v 1.39 2001-05-03 18:13:10 sandervl Exp $ */
     1/* $Id: button.cpp,v 1.40 2001-06-14 12:56:51 sandervl Exp $ */
    22/* File: button.cpp -- Button type widgets
    33 *
     
    552552
    553553  if (wParam > maxCheckState[style]) wParam = maxCheckState[style];
     554#ifndef __WIN32OS2__
     555  //Must clear WS_TABSTOP of control that is already disabled or else
     556  //multiple control can have this style ((auto)radiobutton) and
     557  //GetNextDlgTabItem will return the wrong one
     558  //Happens in Opera preferences dialog (multimedia) where all autoradio
     559  //buttons have the WS_TABSTOP style.
    554560  if ((infoPtr->state & 3) != wParam)
    555561  {
     562#endif
    556563    if ((style == BS_RADIOBUTTON) || (style == BS_AUTORADIOBUTTON))
    557564    {
     
    565572      if (oldStyle != dwStyle) SetWindowLongA(hwnd,GWL_STYLE,dwStyle);
    566573    }
     574#ifdef __WIN32OS2__
     575    if ((infoPtr->state & 3) != wParam)
     576    {
     577#endif
    567578    infoPtr->state = (infoPtr->state & ~3) | wParam;
    568579    PAINT_BUTTON(hwnd,style,ODA_SELECT);
Note: See TracChangeset for help on using the changeset viewer.