wxHtmlLinkEvent and event object

Franky Braem f.braem at skynet.be
Tue Apr 3 13:59:34 PDT 2007


I see in the wxWidgets code that wxHtmlLinkEvent is created in the 
OnLinkClicked method of wxHtmlWindow as follows:

     wxHtmlLinkEvent event(GetId(), link);

I need the object that generated the event, but the above code doesn't 
set this. Wouldn't it be better to do this:

     wxHtmlLinkEvent event(GetId(), link);
     event.SetEventObject(this);

Franky.






More information about the wx-users mailing list