How to create a hidden window in C++

后端 未结 5 505
-上瘾入骨i
-上瘾入骨i 2021-02-01 13:57

How to create a hidden window ?

The purpose of this window is to receive some messages.

5条回答
  •  野的像风
    2021-02-01 14:41

    If you don't need to show the window, as some suggest create the window, omit the WS_VISIBLE flag and don't call ShowWindow.

    If not when you call showWindow(), add SW_HIDE parameter.

    ShowWindow(hWnd, SW_HIDE);
    

提交回复
热议问题