I try this solution, but it doesn't work. I don't know why. I return a
non-zero value but the control still handle the message. ¿Any clue?
My code is below. Thanks
protected virtual int OnNotifyMessage(ref Message m)
{
HtmlViewMessage hvm;
NmHdr hdr = NmHdr.GetStruct(m.LParam);
switch (hdr.code)
{
case NM_HOTSPOT:
hvm = HtmlViewMessage.GetStruct(m.LParam);
AnchorClickEventArgs args = new AnchorClickEventArgs();
args.Url = hvm.target;
AnchorClickEv(this, args); }*/
//Don't let the default control handles the event
return 4;
default:
break;
}
return 0; //default: let control handle it
}
Alex Yakhnin [MVP] escribió: