Window messages in windows application with no window

前端 未结 3 965
走了就别回头了
走了就别回头了 2021-02-06 18:09

I have an application that I want to run in the background with no visible windows or consoles. To accomplish this, I create a windows application but I do not create a window.

3条回答
  •  不要未来只要你来
    2021-02-06 18:43

    A couple of options:

    1. Create a window, but don't set the WS_VISIBLE flag.
    2. Create a message-only window.

    The difference would be that invisible windows receive broadcast messages, while message-only windows do not.

提交回复
热议问题