Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3437
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 Jul 19 12:11:28 CEST 2025

Total time taken to generate the page: 0.03999 seconds