IViewObject2 TShellWindows void __fastcall TForm1::Button1Click(TObject *Sender) { TShellWindows *Sh = new TShellWindows(NULL); try { for(int i = 0; i Count; i++) { if(Sh->Item(i) == NULL) continue; Draw(Sh->Item(i)); break; } } __finally { delete Sh; } } //--------------------------------------------------------------------------- void __fastcall TForm1::Draw(IDispatch *Idisp) { IWebBrowser2 *IE = (IWebBrowser2 *)N.. 2008. 8. 19. IID_IViewObject::Draw void __fastcall TForm1::Button3Click(TObject *Sender) { HRESULT hr; IViewObject *ViewObject; hr=CppWebBrowser1->Document->QueryInterface(IID_IViewObject,(void **)&ViewObject); // hr=CppWebBrowser1->DefaultDispatch->QueryInterface(IID_IViewObject,(void **)&ViewObject); //Document 나 DefaultDispatch 둘다 됩니다. if (SUCCEEDED(hr)) { TRect rc=Rect(0,0,CppWebBrowser1->Width, CppWebBrowser1->Height); Image.. 2008. 7. 21. 이전 1 다음