Real Name:<br>
     Erich Hoover<br>
Description:<br>
     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 &quot;Printing the Current Page with the WebBrowser Control&quot;.<br>


     In addition to now supporting QueryStatusWB, this patch has been updated to permit passing commands to the container&#39;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.<br>

    Compared to the last submission, this version fixes a problem in the tests where the IWebBrowser2 &quot;wb&quot; 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.<br>


ChangeLog:<br>    shdocvw: Implement IWebBrowser::ExecWB and IWebBrowser::QueryStatusWB.