查看完整版本: 如何激活和关闭IE浏览器

ning008 2007-11-21 09:20

如何激活和关闭IE浏览器

  //激活并打开IE
void lounchIE()
{
HWND h=FindWindowEx(NULL, NULL, NULL, "Microsoft Internet Explorer");
ShellExecute(h, "open", "http://www.pcvc.net", NULL,NULL,SW_SHOWNORMAL);
}

//关闭IE及其它应用程序
void CloseIE()
{
int app = BSM_APPLICATIONS;
unsigned long bsm_app = (unsigned long)app;
BroadcastSystemMessage(BSF_POSTMESSAGE,
页: [1]

查看完整版本: 如何激活和关闭IE浏览器