shdocvw: Implement IWebBrowser::ExecWB and IWebBrowser::QueryStatusWB. (try 2)
ehoover at mines.edu
Sat Jan 29 10:28:37 CST 2011
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.
shdocvw: Implement IWebBrowser::ExecWB and IWebBrowser::QueryStatusWB.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16766 bytes
Desc: not available
More information about the wine-patches