6 #include "IBrowserMsgListener.h" 7 #define NOTIMPLEMENTED _ASSERT(0); return(E_NOTIMPL) 20 static void RegisterDefaultBrowserWnd(HINSTANCE instance);
23 void UnembedBrowser();
24 void ShowHTMLPage(LPCTSTR url);
25 HWND GetHWND(){
return m_hWnd;}
26 void ChangeWindowSize(
int nWidth,
int nHeight);
36 static WCHAR* g_BrowserClassName;
39 STDMETHODIMP Invoke (DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,
40 DISPPARAMS* pDispParams,VARIANT* pvarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr);
42 virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, LPVOID *ppvObj)
45 if(riid == IID_IUnknown)
46 *ppvObj =
static_cast<IUnknown *
>(
this);
47 else if(riid == IID_IDispatch)
48 *ppvObj =
static_cast<IDispatch *
>(
this);
50 *ppvObj = 0, ret = E_NOINTERFACE;;
54 virtual ULONG STDMETHODCALLTYPE AddRef(
void){
return 1; }
55 virtual ULONG STDMETHODCALLTYPE Release(
void){
return 1; }
56 virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount(
unsigned int FAR* pctinfo){
return E_NOTIMPL; }
57 virtual HRESULT STDMETHODCALLTYPE GetTypeInfo(
unsigned int iTInfo, LCID lcid, ITypeInfo FAR* FAR* ppTInfo){
return E_NOTIMPL; }
58 virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID riid, OLECHAR FAR* FAR* rgszNames,
unsigned int cNames, LCID lcid, DISPID FAR* rgDispId){
return E_NOTIMPL; }
61 bool FindText(
const std::string& sFindText);
69 static LRESULT CALLBACK browserWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
71 IOleObject* m_pBrowserObj;
73 bool m_ignoreDownLoadComplete;
bool FindText(const std::string &sFindText)
find a given text
Definition: WebBrowser.cpp:347
Definition: IBrowserMsgListener.h:9
different physics engine has different winding order.
Definition: EventBinding.h:32
void WriteContent(const std::string &sContent)
write user specified content to web browser
Definition: WebBrowser.cpp:392
Definition: WBClientSite.h:9
std::string get_LocationURL()
get the current location url
Definition: WebBrowser.cpp:291
void GetContent(std::string &sContent)
get the current html.body content
Definition: WebBrowser.cpp:465
Definition: WebBrowser.h:14