Run the current application as Single Instance and show the previous instance

前端 未结 3 827
谎友^
谎友^ 2020-12-11 08:58

I just implemented this code that is guarding the Single Instance of the Application, in order to not run the application twice.

Now I am wondering how I can sho

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 09:48

    If you are still looking for an answer. There is a good example here that uses windows messages to restore the previous instance. It work even if the first instance is minimized contrary to FindWindow witch does not work in that case.

提交回复
热议问题