Fix stupid typo that broke both backspace and drag-to-scroll.

This commit is contained in:
ehouse 2009-11-26 02:23:21 +00:00
parent a0fa8f94da
commit 8007e5597b

View file

@ -566,7 +566,8 @@ XP_Bool
ceDoDlgHandle( CeDlgHdr* dlgHdr, UINT message, WPARAM wParam, LPARAM lParam )
{
XP_Bool handled = XP_FALSE;
XP_U16 hiword = HIWORD(wParam);
XP_U16 hiword = HIWORD(lParam);
XP_U16 hwwp;
switch( message ) {
#ifdef OVERRIDE_BACKKEY
@ -603,10 +604,11 @@ ceDoDlgHandle( CeDlgHdr* dlgHdr, UINT message, WPARAM wParam, LPARAM lParam )
break;
case WM_COMMAND:
if ( BN_SETFOCUS == hiword || EN_SETFOCUS == hiword ) {
hwwp = HIWORD(wParam);
if ( BN_SETFOCUS == hwwp || EN_SETFOCUS == hwwp ) {
ceDoDlgFocusScroll( dlgHdr, (HWND)lParam );
/* must let dialog handle EN_SETFOCUS! */
} else if ( BN_KILLFOCUS == hiword/* || EN_KILLFOCUS == hiword*/ ) {
/* don't set handled: dialog must handle EN_SETFOCUS! */
} else if ( BN_KILLFOCUS == hwwp/* || EN_KILLFOCUS == hiword*/ ) {
/* dialogs shouldn't have to handle these */
handled = TRUE;
}