When the user leaves the edit field of a combo box, I want to set the selection to the entered text (if it matches),
but for some reason CB_FINDSTRINGEXACT always returns CB_ERR (?)
but for some reason CB_FINDSTRINGEXACT always returns CB_ERR (?)
Code:
If CbCtlMsg = %CBN_KillFocus Then Control Get Text hDlg, CbCtl To szStr Control Send CbHndl, CbCtl, %CB_FINDSTRINGEXACT, -1, VarPtr(szStr) To Result If Result <> %CB_ERR Then Control Send CbHndl, CbCtl, %CB_SETCURSEL, Result, 0 End If End If
Comment