Ignore:
Timestamp:
Dec 30, 1999, 10:28:06 PM (26 years ago)
Author:
sandervl
Message:

Fixed combo box focus bug (combo box wouldn't expand if it does not have the focus (AbiWord))

File:
1 edited

Legend:

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

    r2214 r2278  
    1 /* $Id: combo.cpp,v 1.21 1999-12-27 18:43:41 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.22 1999-12-30 21:28:06 sandervl Exp $ */
    22/*
    33 * Combo controls
     
    12211221   LPHEADCOMBO lphc = (LPHEADCOMBO)GetInfoPtr(hwnd);
    12221222
    1223    if(lphc->wState & CBF_EDIT)
    1224      SetFocus(lphc->hWndEdit);
    1225    else
     1223//SvL: This doesn't work. Example:
     1224//     Click on combo box in Abiword (when it doesn't have the focus)
     1225//     COMBO_LButtonDown checks focus, not set -> SetFocus to combo box
     1226//     Next thing it does is check if it has the focus (CBF_FOCUSED flag).
     1227//     This check fails as SetFocus(lphc->hWndEdit) doesn't change this flag.
     1228//     Removing this check doesn't work as the listbox is not removed after it
     1229//     loses the focus.
     1230//   if(lphc->wState & CBF_EDIT)
     1231//     SetFocus(lphc->hWndEdit);
     1232//   else
    12261233     COMBO_EditSetFocus(lphc);
    12271234
Note: See TracChangeset for help on using the changeset viewer.