title: Set pdf viewer in IWebBrowser2 when it is displaying pdf file(C++)
body: <p>I create a MFC project with <code>IWebBrowser2</code> to display the pdf file.
  In my MFC project, it has a dialog and the dialog has a web browser activeX control. This activeX control is associate with <code>IWebBrowser2</code>.</p>
  
  <p>By using the <code>Navigate</code> API from <code>IWebBrowser2</code>, it can display the local pdf on my disk, but when it is showing the pdf, it is using my default pdf viewer, Adobe.</p>
  
  <p>Here is the problem, we installed two pdf viewers, one is Adobe and another one is FoxitReader, Adobe is my default pdf viewer app. I hope that when my MFC project displaying pdf in its dialog, it can use FoxitReader in its dialog, it shouldn't affect user's default settings outside of my project.</p>
  
  <p>For example ( pesudo code): </p>
  
  <pre><code>IWebBrowser2Ptr-&gt;Navigate("the url of my local pdf");
  IWebBrowser2Ptr-&gt;SetDocumentSettings("Using FoxitReader");
  </code></pre>