From fff7bb5793ac4fd35906aeef822ef3ab8b13202c Mon Sep 17 00:00:00 2001 From: oddMLan Date: Tue, 15 Jan 2019 01:18:56 -0700 Subject: [PATCH] [RSP] Restore window if minimized when invoked from the context menu Similar fix to 798e19b2a6c3b39cd22db557deb6e2de9a5ff669 --- Source/RSP/RSP Command.c | 3 +++ Source/RSP/RSP Register.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Source/RSP/RSP Command.c b/Source/RSP/RSP Command.c index 5805eb3ac..ab18b430f 100644 --- a/Source/RSP/RSP Command.c +++ b/Source/RSP/RSP Command.c @@ -98,6 +98,9 @@ void Create_RSP_Commands_Window ( int Child ) } else { + if (IsIconic((HWND)RSPCommandshWnd)) { + SendMessage(RSPCommandshWnd, WM_SYSCOMMAND, SC_RESTORE, NULL); + } SetForegroundWindow(RSPCommandshWnd); } } diff --git a/Source/RSP/RSP Register.c b/Source/RSP/RSP Register.c index e4679e7eb..c4fee18dd 100644 --- a/Source/RSP/RSP Register.c +++ b/Source/RSP/RSP Register.c @@ -85,6 +85,9 @@ void Create_RSP_Register_Window ( int Child ) { CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)Create_RSP_Register_Window, (LPVOID)TRUE,0, &ThreadID); } else { + if (IsIconic((HWND)RSP_Registers_hDlg)) { + SendMessage(RSP_Registers_hDlg, WM_SYSCOMMAND, SC_RESTORE, NULL); + } SetForegroundWindow(RSP_Registers_hDlg); } }