Question

I have created a program in c++ that doesn't have any GUI. When this program stars windows shown a spinning ball for about 5 seconds.

Is there any way to remove this?

Was it helpful?

Solution

I'm not completely sure, but I think it goes away if you create a top-level window. Most Windows applications intended to run from the GUI, should create a top-level window, even if they aren't intending to make it visible (Don't call ShowWindow ).

Also, you probably want to recieve some types of notifications which Windows sends to top-level windows (at least a close command when the user logs off etc).

And at some point, you'll probably want to install a notification icon, I think it's necessary to have a top-level window for the tray notification area to work (at least it was when I last used this interface in 1996).

I think anything intended to run from the GUI should create a window, even if it's an invisible one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top