ShellExecute(h,'open','http://www.csdn.net',nil,nil,SW_HIDE);
最后一个参数,设成sw_hide为什么不能隐藏打开?
如果用这个api不行,请教,有没有别的解决方法。

解决方案 »

  1.   

    WinExec试试
    看看http://www.pdriver.com/blog/kowmen/archive/2005/01/29/6101.aspx
      

  2.   

    createprocess,WinExec,shellexecute,shellexecuteEx  windows中就这几个能够运行进程,你挨个试试吧,是在不行,你就findwindows找到出现的窗口handle,sendmessage(handle,WM_SHOWWINDOW,0,*)。*可以是下面的值
    SW_OTHERZOOM
    The window is being covered by another window that has been maximized.
    SW_PARENTCLOSING
    The window's owner window is being minimized.
    SW_PARENTOPENING
    The window's owner window is being restored.
    你自己试试吧