Home » Community » Newbie corner » check if application is running
Re: check if application is running [message #55679 is a reply to message #55667] |
Mon, 30 November 2020 08:53  |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
BetoValle wrote on Sun, 29 November 2020 04:28I'm sorry to disagree and I'm going to demonstrate that it works using SetForegroundWindow. You are right. The trick was adding "::" at the beginning. This line does it all works for me:
::SetWindowPos(w, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW)
Look at the "SWP_SHOWWINDOW" at the end.
Fixed in SysInfo.cpp.
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Sat Jul 19 12:11:28 CEST 2025
Total time taken to generate the page: 0.03999 seconds
|