createprocess问题 如何将创建的程序不显示(对话框程序)?我设置了STARTF_USESHOWWINDOW和SW_HIDE,可是对对话框程序好像没有用处,只对控制台程序有用. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 you need to use STARTF_USESHOWWINDOW flagIf this value is not specified, the wShowWindow member is ignored. see the sample below, useful :http://www.codeproject.com/dialog/resizabledialog.asp wShowWindow参数只对第一次ShowWindow有效,以后的ShowWindow调用除非设置了SW_SHOWDEFAULT才有效。CDialog的DoModal内部应该多次调用了ShowWindow,所以你可能要重载DoModal及其他函数。你可以在createprocess后用:HWND hw=::FindWindow("#32770","DlgTitle");::ShowWindow(hw,SW_HIDE);来隐藏DLG. sorry.1. you can specify a different desktop in startupinfo structure, the dialog program should be invisible.2.createprocess with CREATE_SUSPENDED flag, inject some thing into the new process to prevent dialog from showing, then resume it. 请问各位,vc如何实现 CRichEditCtrl多线程的同步? 大虾帮我看看这种网络编程是否会出问题 请问std::vector<ConnSocket>vecConnSocket;是什么意思? 如何得到发出trap pdu的时间 关于msdn 请问如何控制打印机不换页啊? 说话者有分,在线等待! 我的IE浏览器彻底坏了,现在什么网站也打不开了,该怎么办 请问如何在对话框中,设定单选的默认值? 请问哪个下载软件速度最快,注意只要速度! 怎么实现打印报表功能? 几个问题:(串口)
If this value is not specified, the wShowWindow member is ignored.
HWND hw=::FindWindow("#32770","DlgTitle");
::ShowWindow(hw,SW_HIDE);来隐藏DLG.
1. you can specify a different desktop in startupinfo structure, the dialog program should be invisible.2.createprocess with CREATE_SUSPENDED flag, inject some thing into the new process to prevent dialog from showing, then resume it.