mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
[USER32] EDIT_WM_KillFocus(): Restore Wine code, #ifdef'ed out
Use '#ifdef __REACTOS__' for WINESYNC'ed code.
Partially reverts 71ab0b5d4c
.
CORE-10266
This commit is contained in:
parent
37d5522dfb
commit
c2dbc18660
1 changed files with 11 additions and 2 deletions
|
@ -3634,6 +3634,7 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
|
||||||
*/
|
*/
|
||||||
static LRESULT EDIT_WM_KillFocus(EDITSTATE *es)
|
static LRESULT EDIT_WM_KillFocus(EDITSTATE *es)
|
||||||
{
|
{
|
||||||
|
#ifdef __REACTOS__
|
||||||
HWND hCombo;
|
HWND hCombo;
|
||||||
LONG lStyles;
|
LONG lStyles;
|
||||||
|
|
||||||
|
@ -3654,8 +3655,16 @@ static LRESULT EDIT_WM_KillFocus(EDITSTATE *es)
|
||||||
if ((lStyles & CBS_DROPDOWN) || (lStyles & CBS_SIMPLE))
|
if ((lStyles & CBS_DROPDOWN) || (lStyles & CBS_SIMPLE))
|
||||||
SendMessage(hCombo, WM_CBLOSTTEXTFOCUS, 0, 0);
|
SendMessage(hCombo, WM_CBLOSTTEXTFOCUS, 0, 0);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
return 0;
|
es->flags &= ~EF_FOCUSED;
|
||||||
|
DestroyCaret();
|
||||||
|
if(!(es->style & ES_NOHIDESEL))
|
||||||
|
EDIT_InvalidateText(es, es->selection_start, es->selection_end);
|
||||||
|
EDIT_NOTIFY_PARENT(es, EN_KILLFOCUS);
|
||||||
|
/* throw away left over scroll when we lose focus */
|
||||||
|
es->wheelDeltaRemainder = 0;
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue