02-09-2010, 01:26 AM
Hi Gintaras,
I have a dialog with a webbrowser control in it. It has worked fine for bringing up webpages with the following code:
Function dlg_MultiJournalTabbedBrowserDialog
It also works when the SampleUrlString is a filepathname to a document such as a Word.doc or PDf (.pdf).
The only problem is that when I try to open another file into that same dialog control after opening anything other than a web page (i.e. after I open a pdf into it), it no longer recognizes that there is a web browser available i.e. (named after the hDlg). I don't know how to specify that it is ok to still open in that dialog control. I have tried changing hDlg into child window name but it doesn't work...
I hope I explained this ok.
I am choosing the file to load from a listbox dialog also in the same dialog as below..
Macro Macro9
SearchListArray[SearchListIndex 1] contains the full file path so I don't have to list that in the listbox
Thanks for any advice !!!!
Stuart
I have a dialog with a webbrowser control in it. It has worked fine for bringing up webpages with the following code:
Function dlg_MultiJournalTabbedBrowserDialog
It also works when the SampleUrlString is a filepathname to a document such as a Word.doc or PDf (.pdf).
The only problem is that when I try to open another file into that same dialog control after opening anything other than a web page (i.e. after I open a pdf into it), it no longer recognizes that there is a web browser available i.e. (named after the hDlg). I don't know how to specify that it is ok to still open in that dialog control. I have tried changing hDlg into child window name but it doesn't work...
I hope I explained this ok.
I am choosing the file to load from a listbox dialog also in the same dialog as below..
Macro Macro9
case LBN_SELCHANGE<<16|14
,int SearchListIndex = LB_SelectedItem(id(14 hDlg))
,web SearchListArray[SearchListIndex 1] 0x0 hDlg
SearchListArray[SearchListIndex 1] contains the full file path so I don't have to list that in the listbox
Thanks for any advice !!!!
Stuart