Ignore:
Timestamp:
Mar 14, 2000, 4:01:00 PM (25 years ago)
Author:
sandervl
Message:

combobox bug fixes (rp7 infinite loop)

File:
1 edited

Legend:

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

    r2804 r3108  
    1 /* $Id: combo.cpp,v 1.26 2000-02-16 14:34:06 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.27 2000-03-14 15:00:58 sandervl Exp $ */
    22/*
    33 * Combo controls
     
    13851385
    13861386           case (EN_UPDATE >> 8):
    1387                 CB_NOTIFY( lphc, CBN_EDITUPDATE );
     1387                //SvL: Don't send updates either. (Realplayer 7 infinite loops)
     1388               /*
     1389                * In some circumstances (when the selection of the combobox
     1390                * is changed for example) we don't wans the EN_CHANGE notification
     1391                * to be forwarded to the parent of the combobox. This code
     1392                * checks a flag that is set in these occasions and ignores the
     1393                * notification.
     1394                */
     1395                if (lphc->wState & CBF_NOEDITNOTIFY)
     1396                {
     1397                  lphc->wState &= ~CBF_NOEDITNOTIFY;
     1398                }
     1399                else
     1400                {
     1401                        CB_NOTIFY( lphc, CBN_EDITUPDATE );
     1402                }
    13881403                break;
    13891404
     
    21052120  if( lphc->wState & CBF_SELCHANGE )
    21062121  {
     2122    //SvL: Clear the flag here; doing it after calling CBUpdateEdit causes
     2123    //     an infinite loop in RealPlayer 7
     2124    lphc->wState &= ~CBF_SELCHANGE;
     2125
    21072126    /* no LBN_SELCHANGE in this case, update manually */
    21082127    if( lphc->wState & CBF_EDIT )
     
    21102129    else
    21112130        InvalidateRect(CB_HWND(lphc), &lphc->textRect, TRUE);
    2112 
    2113     lphc->wState &= ~CBF_SELCHANGE;
    21142131  }
    21152132
Note: See TracChangeset for help on using the changeset viewer.