'Send by E-mail' notification

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

'Send by E-mail' notification

Post by anovy »

Hi,
Is there a way how my client application can recognize that the XChange control invoked the 'Send by E-mail' function? I hoped that the control is sending some notification, but it is not. The problem is that during the e-mail send it is not disabled my main application window (and so the user can still acess it, although working with it is unwanted and unsafe in this state). You are probably using MAPISendMail or MAPISendDocuments function with your windows handle, but this disables only your control window and not my top level window. I can disable it myself, but for this I need to be notified that the e-mail send was invoked.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: 'Send by E-mail' notification

Post by Vasyl - PDF-XChange »

Hi, anovy.

No way for this in the current build.

But we can add special event for intercepting/overloading of the UI-command into the next build.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

Re: 'Send by E-mail' notification

Post by anovy »

Please do it as soon as possible. It is really a serious lack if you did not inform the container that it should enter disabled state.

And in this case it may be enough to call MAPISendMail or MAPISendDocuments not with your control window handle, but with the container's frame window handle (obtained from IOleInPlaceFrame::GetWindow). And in either case before and after such operation (or before opening a modal dialog) you should call the container's IOleInPlaceFrame::EnableModeless method, which you do not now.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: 'Send by E-mail' notification

Post by Vasyl - PDF-XChange »

Also, we will try to fix issue with state of the top level window during sending of e-mail.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

Re: 'Send by E-mail' notification

Post by anovy »

Thanks for the e-mail fix (in 2.0.51 version). But will you support (call) also the IOleInPlaceFrame::EnableModeless function?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: 'Send by E-mail' notification

Post by Vasyl - PDF-XChange »

Hi anovy

Will check this feature.

Thanks.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.