Browse Source

action popup: use SW_RESTORE + SetForegroundWindow to bring hidden window to front

chatgui
Evgeny 3 months ago
parent
commit
c893285d71
  1. 3
      tools/etcpmon/etcpmon_gui.c

3
tools/etcpmon/etcpmon_gui.c

@ -1375,7 +1375,8 @@ static void on_action_result(const char* text, void* user_data) {
app->hActionResultEdit = (HWND)GetWindowLongPtrA(app->hActionResultWnd, GWLP_USERDATA);
}
ShowWindow(app->hActionResultWnd, SW_SHOW);
ShowWindow(app->hActionResultWnd, SW_RESTORE);
SetForegroundWindow(app->hActionResultWnd);
UpdateWindow(app->hActionResultWnd);
if (IsWindow(app->hActionResultEdit)) {

Loading…
Cancel
Save