shdocvw: Implement IWebBrowser::ExecWB and IWebBrowser::QueryStatusWB. (try 2, resend)

Erich Hoover ehoover at mines.edu
Tue Mar 1 14:25:41 CST 2011


Real Name:
    Erich Hoover
Description:
    This patch adds support for IWebBrowser(2)::ExecWB and
IWebBrowser(2)::QueryStatusWB by passing the requested operations through to
the IOleCommandTarget of either the container or the document (where the
container takes precedence over the document). This functionality is
particularly useful for applications that embed the web-browser and provide
printing functionality by calling OLECMDID_PRINT (such as hhctrl.ocx), as
described on MSDN in "Printing the Current Page with the WebBrowser
Control".
    In addition to now supporting QueryStatusWB, this patch has been updated
to permit passing commands to the container's IOleCommandTarget and to
provide several tests that demonstrate the behavior of both ExecWB and
QueryStatusWB.  Many thanks go to Jacek Caban for patiently helping me put
together these improvements.
    Compared to the last submission, this version fixes a problem in the
tests where the IWebBrowser2 "wb" global was initialized too late, resulting
in random test failures.  Additional thanks go to Greg Geldorp for helping
track down the problem by testing on a machine where the problem was
reproducible.  This patch is being resubmitted since it dropped off the
patch tracker while still being marked as new.
ChangeLog:
    shdocvw: Implement IWebBrowser::ExecWB and IWebBrowser::QueryStatusWB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110301/defc9cc5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-shdocvw-Implement-IWebBrowser-ExecWB-and-IWebBrowser.patch
Type: text/x-patch
Size: 16766 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110301/defc9cc5/attachment-0001.bin>


More information about the wine-patches mailing list