Ignore:
Timestamp:
Sep 16, 2002, 6:17:08 PM (23 years ago)
Author:
sandervl
Message:

PF: Combobox fix to update selected item when the control is rolled up

File:
1 edited

Legend:

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

    r8301 r9254  
    1 /* $Id: combo.cpp,v 1.34 2002-04-24 08:56:16 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.35 2002-09-16 16:17:08 sandervl Exp $ */
    22/*
    33 * Combo controls
     
    12541254       }
    12551255   }
     1256
     1257#ifdef __WIN32OS2__
     1258   //@PF Of course when we rollup box it is time to sync it with listview.
     1259   //Obvious Wine bug and even not fixed in latest versions.
     1260   if( CB_GETTYPE(lphc) == CBS_DROPDOWN )
     1261   {
     1262       lphc->droppedIndex = CBUpdateLBox( lphc,TRUE );
     1263   }
     1264   else
     1265   {
     1266       lphc->droppedIndex = SendMessageA( lphc->hWndLBox, LB_GETCURSEL, 0, 0 );
     1267
     1268       if( lphc->droppedIndex == LB_ERR )
     1269         lphc->droppedIndex = 0;
     1270   }
     1271#endif
     1272
    12561273}
    12571274
Note: See TracChangeset for help on using the changeset viewer.