Hi,
I want to translate a native (SDL) to a moz event ...
Am I wrong doing such thing :
nsMouseEvent nsevent;
nsevent.eventStructType = NS_MOUSE_EVENT;
nsevent.message = NS_MOUSE_LEFT_BUTTON_DOWN;
nsevent.point.x = event.motion.x ;
nsevent.point.y = event.motion.y ;
nsevent.clickCount = 1;
nsCOMPtr<nsIBaseWindow> browserBaseWindow = do_QueryInterface(_webNav);
if (browserBaseWindow)
{
nsCOMPtr<nsIWidget> mainWidget;
browserBaseWindow->GetMainWidget(getter_AddRefs(mainWidget));
nsEventStatus status;
mainWidget->DispatchEvent(nsevent, status);
}
-> status is set to ignore after the DipatchEvent() call ...
Thanks for any help !
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding