Commit fe38c9ab authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Move the listview's NM_SETFOCUS handling to listview.c.

parent a1d3a7f7
...@@ -471,14 +471,10 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa ...@@ -471,14 +471,10 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
default: default:
return 0; /* goto def; */ return 0; /* goto def; */
} }
} else } else if ((int)wParam == LIST_WINDOW && g_pChildWnd != NULL) {
if (((int)wParam == LIST_WINDOW) && (g_pChildWnd != NULL)) { if (!SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam))
if (((LPNMHDR)lParam)->code == NM_SETFOCUS) { goto def;
g_pChildWnd->nFocusPanel = 1; }
} else if (!SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam)) {
goto def;
}
}
break; break;
case WM_SIZE: case WM_SIZE:
......
...@@ -420,6 +420,9 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR ...@@ -420,6 +420,9 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
SendMessageW(hFrameWnd, WM_COMMAND, ID_EDIT_MODIFY, 0); SendMessageW(hFrameWnd, WM_COMMAND, ID_EDIT_MODIFY, 0);
} }
break; break;
case NM_SETFOCUS:
g_pChildWnd->nFocusPanel = 1;
break;
case NM_DBLCLK: { case NM_DBLCLK: {
NMITEMACTIVATE* nmitem = (LPNMITEMACTIVATE)lParam; NMITEMACTIVATE* nmitem = (LPNMITEMACTIVATE)lParam;
LVHITTESTINFO info; LVHITTESTINFO info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment