Commit 9a4c3649 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

shdocvw: Add support for setting the statusbar text in IE.

parent e532b1c3
...@@ -396,8 +396,10 @@ static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR ...@@ -396,8 +396,10 @@ static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR
static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText) static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
{ {
InternetExplorer *This = WEBBROWSER_THIS(iface); InternetExplorer *This = WEBBROWSER_THIS(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(StatusText));
return E_NOTIMPL; TRACE("(%p)->(%s)\n", This, debugstr_w(StatusText));
return update_ie_statustext(This, StatusText);
} }
static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value) static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
......
...@@ -41,12 +41,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); ...@@ -41,12 +41,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
#define IDI_APPICON 1 #define IDI_APPICON 1
#define DOCHOST_THIS(iface) DEFINE_THIS2(InternetExplorer,doc_host,iface)
static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 }; static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 };
/* Windows uses "Microsoft Internet Explorer" */ /* Windows uses "Microsoft Internet Explorer" */
static const WCHAR wszWineInternetExplorer[] = static const WCHAR wszWineInternetExplorer[] =
{'W','i','n','e',' ','I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r',0}; {'W','i','n','e',' ','I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r',0};
HRESULT update_ie_statustext(InternetExplorer* This, LPCWSTR text)
{
if(!SendMessageW(This->status_hwnd, SB_SETTEXTW, MAKEWORD(SB_SIMPLEID, 0), (LPARAM)text))
return E_FAIL;
return S_OK;
}
void adjust_ie_docobj_rect(HWND frame, RECT* rc) void adjust_ie_docobj_rect(HWND frame, RECT* rc)
{ {
HWND hwndRebar = GetDlgItem(frame, IDC_BROWSE_REBAR); HWND hwndRebar = GetDlgItem(frame, IDC_BROWSE_REBAR);
...@@ -378,9 +388,8 @@ static void WINAPI DocHostContainer_GetDocObjRect(DocHost* This, RECT* rc) ...@@ -378,9 +388,8 @@ static void WINAPI DocHostContainer_GetDocObjRect(DocHost* This, RECT* rc)
static HRESULT WINAPI DocHostContainer_SetStatusText(DocHost* This, LPCWSTR text) static HRESULT WINAPI DocHostContainer_SetStatusText(DocHost* This, LPCWSTR text)
{ {
FIXME("(%p)->(%s)\n", This, debugstr_w(text)); InternetExplorer* ie = DOCHOST_THIS(This);
return update_ie_statustext(ie, text);
return E_NOTIMPL;
} }
static void WINAPI DocHostContainer_SetURL(DocHost* This, LPCWSTR url) static void WINAPI DocHostContainer_SetURL(DocHost* This, LPCWSTR url)
......
...@@ -270,7 +270,8 @@ HRESULT InternetShortcut_Create(IUnknown*,REFIID,void**); ...@@ -270,7 +270,8 @@ HRESULT InternetShortcut_Create(IUnknown*,REFIID,void**);
HRESULT TaskbarList_Create(IUnknown*,REFIID,void**); HRESULT TaskbarList_Create(IUnknown*,REFIID,void**);
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl))) #define DEFINE_THIS2(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,ifc)))
#define DEFINE_THIS(cls,ifc,iface) DEFINE_THIS2(cls,lp ## ifc ## Vtbl,iface)
/********************************************************************** /**********************************************************************
* Dll lifetime tracking declaration for shdocvw.dll * Dll lifetime tracking declaration for shdocvw.dll
...@@ -283,6 +284,7 @@ extern HINSTANCE shdocvw_hinstance; ...@@ -283,6 +284,7 @@ extern HINSTANCE shdocvw_hinstance;
extern void register_iewindow_class(void); extern void register_iewindow_class(void);
extern void unregister_iewindow_class(void); extern void unregister_iewindow_class(void);
extern void adjust_ie_docobj_rect(HWND, RECT*); extern void adjust_ie_docobj_rect(HWND, RECT*);
extern HRESULT update_ie_statustext(InternetExplorer*, LPCWSTR);
HRESULT register_class_object(BOOL); HRESULT register_class_object(BOOL);
HRESULT get_typeinfo(ITypeInfo**); HRESULT get_typeinfo(ITypeInfo**);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment