U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
koldo is currently offline  koldo
Messages: 3458
Registered: August 2008
Senior Veteran
BetoValle wrote on Sun, 29 November 2020 04:28
I'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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The Mysterious checkbox
Next Topic: for(;;)
Goto Forum:
  


Current Time: Sat May 09 19:18:03 GMT+2 2026

Total time taken to generate the page: 0.00702 seconds