Module: wine Branch: master Commit: 8e03cefbfa40500b66582429e174ca8417cf59e2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e03cefbfa40500b66582429e1...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Wed Jul 21 16:34:41 2010 +0200
shdocvw: Add About dialog to IE.
---
dlls/shdocvw/iexplore.c | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c index b473d41..2ca756e 100644 --- a/dlls/shdocvw/iexplore.c +++ b/dlls/shdocvw/iexplore.c @@ -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,