Intercept WM_CLOSE for cleanup operations

前端 未结 4 875
悲哀的现实
悲哀的现实 2021-01-22 06:58

I have an external application that calls my application and is supposed to end it when the job is done. The log from this external application claims it uses WM_CLOSE

4条回答
  •  故里飘歌
    2021-01-22 07:31

    You must create hidden window using winapi, and handle WM_CLOSE message in its message loop. Is your app using any gui elements?

提交回复
热议问题