Commit 8e03cefb authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

shdocvw: Add About dialog to IE.

parent 87f4e436
......@@ -33,6 +33,7 @@
#include "shdocvw.h"
#include "mshtmcid.h"
#include "shellapi.h"
#include "wine/debug.h"
......@@ -42,6 +43,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 };
/* Windows uses "Microsoft Internet Explorer" */
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};
static void ie_dialog_about(HWND hwnd)
{
HICON icon = LoadImageW(GetModuleHandleW(0), MAKEINTRESOURCEW(IDI_APPICON), IMAGE_ICON, 48, 48, LR_SHARED);
ShellAboutW(hwnd, wszWineInternetExplorer, NULL, icon);
DestroyIcon(icon);
}
static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs)
{
SetWindowLongPtrW(hwnd, 0, (LONG_PTR) lpcs->lpCreateParams);
......@@ -85,6 +99,10 @@ static LRESULT CALLBACK iewnd_OnCommand(InternetExplorer *This, HWND hwnd, UINT
}
break;
case ID_BROWSE_ABOUT:
ie_dialog_about(hwnd);
break;
default:
return DefWindowProcW(hwnd, msg, wparam, lparam);
}
......@@ -141,10 +159,6 @@ void unregister_iewindow_class(void)
static void create_frame_hwnd(InternetExplorer *This)
{
/* Windows uses "Microsoft Internet Explorer" */
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};
This->frame_hwnd = CreateWindowExW(
WS_EX_WINDOWEDGE,
szIEWinFrame, wszWineInternetExplorer,
......
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