CppWebBrowser2 WebBrowser-Capture IViewObject2 *vObj ; TRect rect = Rect(0, 0, CppWebBrowser1->Width, CppWebBrowser1->Height); Graphics::TBitmap *bmp = new Graphics::TBitmap(); bmp->Width = CppWebBrowser1->Width; bmp->Height = CppWebBrowser1->Height; if(FAILED(CppWebBrowser1->Document->QueryInterface(IID_IViewObject2, (void **)&vObj))) return; OleCheck(vObj->Draw(DVASPECT_CONTENT, 1, NULL, NULL, this->Handle, bmp->Canvas->Handle.. 2008. 8. 14. 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 다음