forked from Mirrors/wine-wine
mshtml: Added alert implementation.
parent
fdcd9859b4
commit
62f1ef9d85
|
@ -193,8 +193,18 @@ static HRESULT WINAPI HTMLWindow2_clearTimeout(IHTMLWindow2 *iface, long timerID
|
||||||
static HRESULT WINAPI HTMLWindow2_alert(IHTMLWindow2 *iface, BSTR message)
|
static HRESULT WINAPI HTMLWindow2_alert(IHTMLWindow2 *iface, BSTR message)
|
||||||
{
|
{
|
||||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||||
FIXME("(%p)->(%s)\n", This, debugstr_w(message));
|
WCHAR wszTitle[100];
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p)->(%s)\n", This, debugstr_w(message));
|
||||||
|
|
||||||
|
if(!LoadStringW(get_shdoclc(), IDS_MESSAGE_BOX_TITLE, wszTitle,
|
||||||
|
sizeof(wszTitle)/sizeof(WCHAR))) {
|
||||||
|
WARN("Could not load message box title: %d\n", GetLastError());
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
MessageBoxW(This->doc->hwnd, message, wszTitle, MB_ICONWARNING);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLWindow2_confirm(IHTMLWindow2 *iface, BSTR message,
|
static HRESULT WINAPI HTMLWindow2_confirm(IHTMLWindow2 *iface, BSTR message,
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#define ID_DWL_INSTALL 7602
|
#define ID_DWL_INSTALL 7602
|
||||||
#define ID_DWL_STATUS 7603
|
#define ID_DWL_STATUS 7603
|
||||||
|
|
||||||
|
#define IDS_MESSAGE_BOX_TITLE 2213
|
||||||
|
|
||||||
#define IDR_BROWSE_CONTEXT_MENU 24641
|
#define IDR_BROWSE_CONTEXT_MENU 24641
|
||||||
|
|
||||||
#define IDM_TRACETAGS 6004
|
#define IDM_TRACETAGS 6004
|
||||||
|
|
Loading…
Reference in New Issue