[win] online-installer: fix window focus

This commit is contained in:
SimplestStudio
2024-12-24 11:49:50 +02:00
parent 9e2094ef9a
commit 7462dab95d
2 changed files with 4 additions and 3 deletions

View File

@ -141,7 +141,7 @@ void Widget::setProperty(Properties property, int val)
void Widget::show()
{
ShowWindow(m_hWnd, SW_SHOW);
ShowWindow(m_hWnd, SW_SHOWNORMAL);
UpdateWindow(m_hWnd);
}

View File

@ -14,7 +14,7 @@ using WinVer = Utils::WinVer;
static BOOL CALLBACK EnumChildProc(_In_ HWND hwnd, _In_ LPARAM lParam)
{
ShowWindow(hwnd, SW_SHOW);
ShowWindow(hwnd, SW_SHOWNORMAL);
UpdateWindow(hwnd);
return TRUE;
}
@ -186,9 +186,10 @@ void Window::setResizable(bool isResizable)
void Window::showAll()
{
ShowWindow(m_hWnd, SW_SHOW);
ShowWindow(m_hWnd, SW_SHOWNORMAL);
UpdateWindow(m_hWnd);
EnumChildWindows(m_hWnd, EnumChildProc, 0);
SetForegroundWindow(m_hWnd);
}
void Window::showNormal()