HHCTRL.OCX: fix W to A call

Saulius Krasuckas saulius2 at ar.fi.lt
Thu Jul 21 08:23:33 CDT 2005


ChangeLog:
	Saulius Krasuckas <saulius.krasuckas at ieee.org>
	Fix W to A call.


Index: dlls/hhctrl.ocx/hhctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/hhctrl.ocx/hhctrl.c,v
retrieving revision 1.7
diff -p -u -r1.7 hhctrl.c
--- dlls/hhctrl.ocx/hhctrl.c    16 Apr 2005 10:47:46 -0000      1.7
+++ dlls/hhctrl.ocx/hhctrl.c    21 Jul 2005 13:06:39 -0000
@@ -72,6 +72,18 @@ static const char *command_to_string(UIN
 
 HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD data)
 {
+    static const WCHAR wTitle[] = {'W','i','n','e', 0};
+    static const WCHAR wText[] =  {'H','T','M','L',' ','H','e','l','p',' ',
+                                   'f','u','n','c','t','i','o','n','a','l','i','t','y',' ',
+                                   'i','s',' ','c','u','r','r','e','n','t','l','y',' ',
+                                   'u','n','i','m','p','l','e','m','e','n','t','e','d','.',
+                                   '\n','\n',
+                                   'T','r','y',' ','i','n','s','t','a','l','l','i','n','g',' ',
+                                   'I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r',',',' ',
+                                   'o','r',' ','u','s','i','n','g',' ','a',' ','n','a','t','i','v','e',' ',
+                                   'h','h','c','t','r','l','.','o','c','x',' ','w','i','t','h',' ','t','h','e',' ',
+                                   'M','o','z','i','l','l','a',' ','A','c','t','i','v','e','X',' ',
+                                   'c','o','n','t','r','o','l','.', 0};
     FIXME("(%p, %s, command=%s, data=%ld): stub\n",
           caller, debugstr_w( filename ),
           command_to_string( command ), data);
@@ -82,9 +94,7 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWS
         case HH_DISPLAY_TOC:
         case HH_DISPLAY_SEARCH:
         case HH_HELP_CONTEXT:
-            MessageBoxA( NULL, "HTML Help functionality is currently unimplemented.\n\n"
-                         "Try installing Internet Explorer, or using a native hhctrl.ocx with the Mozilla ActiveX control.",
-                         "Wine", MB_OK | MB_ICONEXCLAMATION );
+            MessageBoxW( NULL, wText, wTitle, MB_OK | MB_ICONEXCLAMATION );
         default:
             return 0;
     }




More information about the wine-patches mailing list