Control Mouse Event in Visio 2003 How to?

T

tvntuong

Hi,

I am using the HRESULT VDTC::HandleVisioEvent function (like SINK a
object in addsink.h ) to process the Visio Mouse Up Event as follows:

HRESULT VDTC::HandleVisioEvent(
/* [in] */ IUnknown *ipSink, // ipSink [assert]
/* [in] */ short nEventCode, // code of event that's firing.
/* [in] */ IDispatch *pSourceObj,// object that is firing event.
/* [in] */ long nEventID, // id of event that is firing.
/* [in] */ long nEventSeqNum, // sequence number of event.
/* [in] */ IDispatch *pSubjectObj,// subject of this event.
/* [in] */ VARIANT vMoreInfo, // other info.
/* [retval][out] */ VARIANT *pvResult)
{
.. . .. . .
switch (nEventCode)
{
case visEvtCodeMouseUp:
(???) (How to process here?)
break;
} // end switch
} // end HandleVisioEvent


How could I know where the Mouse Up Event occurs? (that is the coordinate
(x,y), what button was click (LEFT or RIGHT button …).

I have tried to cast pSourceObj to MouseEvent but failed.

Thank you for spending time,
NTuong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top