천객만래 [千客萬來] (It has an interminable succession of visitors)

'새창'에 해당되는 글 1건

  1. 2011.07.27 [개발/MFC] IE 새창 띄우기

[개발/MFC] IE 새창 띄우기
인터넷 익스플로러에서 새 창 띄우는 방법을 알아보자.

 if(m_spPopUpWeb == NULL)
  m_spPopUpWeb.CoCreateInstance(CLSID_InternetExplorer);

 if(m_spPopUpWeb)
 {
  USES_CONVERSION;
  VARIANT vtEmpty;
  VariantInit(&vtEmpty);

  CComBSTR bstrURL = lpszURL;

  m_spPopUpWeb->Navigate(bstrURL, &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty);
  //m_spPopUpWeb->put_MenuBar(VARIANT_FALSE);
  //m_spPopUpWeb->put_ToolBar(VARIANT_FALSE);
  //m_spPopUpWeb->put_AddressBar(VARIANT_FALSE);
  //m_spPopUpWeb->put_StatusBar(VARIANT_FALSE);
  //m_spPopUpWeb->put_Resizable(VARIANT_FALSE);
  //m_spPopUpWeb->put_Width(nWidth);
  //m_spPopUpWeb->put_Height(nHeight);
  m_spPopUpWeb->put_Visible(VARIANT_TRUE);
  //m_spPopUpWeb.Release();

 }

Posted by SB패밀리