I create a MFC project with IWebBrowser2 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 IWebBrowser2.
By using the Navigate API from IWebBrowser2, it can display the local pdf on my disk, but when it is showing the pdf, it is using my default pdf viewer, Adobe.
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.
For example ( pesudo code):
IWebBrowser2Ptr->Navigate("the url of my local pdf");
IWebBrowser2Ptr->SetDocumentSettings("Using FoxitReader");