Do not block CBN_EDITCHANGE for WM_PASTE or WM_CUT with the

NOEDITNOTIFY flag, as these msgs can come directly from the app to the
combo wndproc.
This commit is contained in:
Susan Farley 2000-10-24 01:38:49 +00:00 committed by Alexandre Julliard
parent ff59c33d49
commit a4251bbe4c

View file

@ -1873,9 +1873,6 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
case WM_SETTEXT:
case WM_GETTEXTLENGTH:
case WM_CLEAR:
case WM_CUT:
case WM_PASTE:
case WM_COPY:
if ((message == WM_GETTEXTLENGTH) && !ISWIN31 && !(lphc->wState & CBF_EDIT))
{
int j = SendMessageA( lphc->hWndLBox, LB_GETCURSEL, 0, 0 );
@ -1891,6 +1888,12 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
return ret;
}
else return CB_ERR;
case WM_CUT:
case WM_PASTE:
case WM_COPY:
if( lphc->wState & CBF_EDIT )
return SendMessageA( lphc->hWndEdit, message, wParam, lParam );
else return CB_ERR;
case WM_DRAWITEM:
case WM_DELETEITEM: