Actual when I browse the interface of IAdPageViewer with OLE/COM Object
Viewer, there is a properties called _SourcePath, same with IAdView, but
it is hidden!
so IAdPageViewer can't load DWF file alone.
but I want to handle the event with IAdPageViewer. how should I do?
tioman wrote:
> I have posted the following question to heidi board.
>
> Basically, I want add/update/delete a hyper link into/from DWF file
> (call API with DWFToolkit) after user click somewhere in the AEV control
> (I encompassed AEV into my VC app, and display the DWF file with the AEV
> control).
>
> 1) so far I don't know how to handle the event : OnExecuteURL in VC
> project.
> For AVE, there are two important OLE DLLs:
> AdPageView.dll, which contains the IAdPageViewer/IAdPage/IAdPaper, etc
> and event also.
>
> AdView.dll, which contains the IAdView, and can open a DWF file by set
> the SOURCEPATH properties.
>
> but I found there are many methods or properties are hidden though I can
> view them by OLE VIEWER tool.
>
> I'm sure the the Viewer properties of IAdView contains the IAdPageViewer
> instance, so we can get the instance of IAdPageViewer.
> it means we only can the instance of IAdPageViewer by IAdView instance
> so far.
>
> Anybody can share the sample code that could handle the events?
>
> 2) How can I get the correct coordinate in DWF when click mouse in the
> AVE viewer control?
> if there is not a function in AVE's control that support coordinate
> transformation, hence, no way to locate a new URL to the position what
> user want, right?
>
> Thanks!
>