1

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?

Zaheer Ahmed
  • 28,160
  • 11
  • 74
  • 110
thenail
  • 438
  • 1
  • 5
  • 10

1 Answers1

1

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.

MarkR
  • 62,604
  • 14
  • 116
  • 151
  • Thank's for your respond, it worked perfectly! I did a CreateWindowEx, the ball disappeared after a call to GetMessage. – thenail Feb 24 '11 at 12:13