mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 16:57:26 +00:00
regedit: Move the listview's NM_SETFOCUS handling to listview.c.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a1d3a7f7bf
commit
fe38c9abad
@ -471,14 +471,10 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||
default:
|
||||
return 0; /* goto def; */
|
||||
}
|
||||
} else
|
||||
if (((int)wParam == LIST_WINDOW) && (g_pChildWnd != NULL)) {
|
||||
if (((LPNMHDR)lParam)->code == NM_SETFOCUS) {
|
||||
g_pChildWnd->nFocusPanel = 1;
|
||||
} else if (!SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam)) {
|
||||
goto def;
|
||||
}
|
||||
}
|
||||
} else if ((int)wParam == LIST_WINDOW && g_pChildWnd != NULL) {
|
||||
if (!SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam))
|
||||
goto def;
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
|
@ -420,6 +420,9 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
|
||||
SendMessageW(hFrameWnd, WM_COMMAND, ID_EDIT_MODIFY, 0);
|
||||
}
|
||||
break;
|
||||
case NM_SETFOCUS:
|
||||
g_pChildWnd->nFocusPanel = 1;
|
||||
break;
|
||||
case NM_DBLCLK: {
|
||||
NMITEMACTIVATE* nmitem = (LPNMITEMACTIVATE)lParam;
|
||||
LVHITTESTINFO info;
|
||||
|
Loading…
Reference in New Issue
Block a user