From d24b4d2d405b89e69d72971077070bbc33986a1e Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 2 Oct 2021 23:13:33 +0300 Subject: [PATCH] Bug fixes in GUI when using keyboard --- ExplorerPatcher/GUI.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index 5e3affa..bbc584e 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -343,6 +343,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) WaitForSingleObject(ShExecInfo.hProcess, INFINITE); DWORD dwExitCode = 0; GetExitCodeProcess(ShExecInfo.hProcess, &dwExitCode); + _this->tabOrder = 0; InvalidateRect(hwnd, NULL, FALSE); CloseHandle(ShExecInfo.hProcess); DeleteFileW(wszPath); @@ -907,6 +908,8 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR pt.x = GET_X_LPARAM(lParam); pt.y = GET_Y_LPARAM(lParam); GUI_Build(0, hWnd, pt); + _this->tabOrder = 0; + InvalidateRect(hWnd, NULL, FALSE); } else if (uMsg == WM_DPICHANGED) {