如何以隐藏模式启动文档视图应用程序 [英] How to start a doc view app in hidden mode

查看:67
本文介绍了如何以隐藏模式启动文档视图应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


我正在写这里希望得到一些关于我的问题的提示:如何以完全隐藏模式启动MDI应用程序,CMyApp派生自CWinAppEx。



从互联网上建立的一些解决方案中解脱出来,我已经完成了:

 m_nCmdShow = SW_HIDE; 
//在命令行上指定的调度命令。如果使用/ RegServer,/ Register,/ Unregserver或/ Unregister启动
// app,则返回FALSE。
if(!ProcessShellCommand(cmdInfo))
返回FALSE;

 似乎启动我的应用程序隐藏,但任务栏上有一个闪烁,在Win10 64位:




当我从Windows资源管理器启动我的应用程序时(只需在Test.exe上点击"输入"。


我根本无法解决这个闪烁...有一个解决方案这个问题?如果你现在解决这个问题,请帮助我...好的,谢谢你。



解决方案

请参阅我关于启动隐藏的应用程序的其他关于EnableWindowPlacement的帖子的回复。我没有在使用该帖子中包含的代码段的Win 8.1上遇到任何闪烁。

Hi all of you.

I am writting here hoping to get some hints regarding my issue: how to start an MDI app in completely hidden mode, with CMyApp derived from CWinAppEx.

Reding from some solutions founded on internet, I have done:

	m_nCmdShow = SW_HIDE;
	// Dispatch commands specified on the command line.  Will return FALSE if
	// app was launched with /RegServer, /Register, /Unregserver or /Unregister.
	if(! ProcessShellCommand(cmdInfo))
		return FALSE;

 and seem to start my app as hidden, but there is an flicker on taskbar, in Win10 64bit:

when I start my app from windows explorer (by simply hitting "Enter" on Test.exe.

I cannot solve this flicker, at all ... there is a soluton for this issue ? Please help me if you encouter this problem by now ... kindly thank you.

解决方案

See my response to your other post about EnableWindowPlacement with respect to starting the application hidden.  I have not experienced any flicker on Win 8.1 using the code snippet included in that post.


这篇关于如何以隐藏模式启动文档视图应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆