[COMCTL32][USER32] ComboBox: Don't close listbox on letter type (#6227)

Based on KRosUser's combo_v3.patch.
JIRA issue: CORE-16376
- Set CBF_NOROLLUP flag on (WM_CHAR or
  WM_IME_CHAR) and CBF_DROPPED state.
This commit is contained in:
Katayama Hirofumi MZ 2024-01-03 08:45:24 +09:00 committed by GitHub
parent 006bdfa234
commit b59bf8a3f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -1918,6 +1918,10 @@ static LRESULT CALLBACK COMBO_WindowProc( HWND hwnd, UINT message, WPARAM wParam
{
HWND hwndTarget;
#ifdef __REACTOS__
if (lphc->wState & CBF_DROPPED)
lphc->wState |= CBF_NOROLLUP;
#endif
if ( lphc->wState & CBF_EDIT )
hwndTarget = lphc->hWndEdit;
else

View file

@ -2017,6 +2017,10 @@ LRESULT WINAPI ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPAR
{
HWND hwndTarget;
#ifdef __REACTOS__
if (lphc->wState & CBF_DROPPED)
lphc->wState |= CBF_NOROLLUP;
#endif
if ( lphc->wState & CBF_EDIT )
hwndTarget = lphc->hWndEdit;
else