隐藏应用程序启动时移除旋转球
我用 C++ 创建了一个没有任何 GUI 的程序。当该程序启动时,窗口会显示一个旋转的球约 5 秒钟。
有什么办法可以去除这个吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全确定,但我认为如果您创建一个顶级窗口,它就会消失。大多数打算从 GUI 运行的 Windows 应用程序都应该创建一个顶级窗口,即使它们不打算使其可见(不要调用 ShowWindow )。
另外,您可能希望接收 Windows 发送到顶级窗口的某些类型的通知(至少是用户注销时的关闭命令等)。
在某些时候,您可能想要安装一个通知图标,我认为有必要有一个顶级窗口才能使托盘通知区域正常工作(至少是在 1996 年我上次使用此界面时)。
我认为任何想要从 GUI 运行的东西都应该创建一个窗口,即使它是一个不可见的窗口。
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.