Browse CVS Repository
Annotation of /malonnote/mnHtmlWindow.cpp
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( hide annotations)
( download)
( as text)
Thu Sep 29 04:15:30 2005 UTC
(18 years, 5 months ago)
by maloninc
Branch: MAIN
CVS Tags: rel_1_4, dev_1_5-0002, dev_1_5-0001, dev_1_5-0004, dev_1_4-0003, dev_1_4-0002, dev_1_4-0005, dev_1_4-0006
Changes since 1.1: +2 -0 lines
File MIME type: text/x-c++src
use XRC file for mnFrame
| 1 |
maloninc |
1.1 |
#include "mnHtmlWindow.h" |
| 2 |
|
|
|
| 3 |
|
|
DEFINE_EVENT_TYPE(mnEVT_LINK_CLICK) |
| 4 |
|
|
|
| 5 |
maloninc |
1.2 |
IMPLEMENT_DYNAMIC_CLASS(mnHtmlWindow, wxHtmlWindow) |
| 6 |
|
|
|
| 7 |
maloninc |
1.1 |
void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) |
| 8 |
|
|
{ |
| 9 |
|
|
wxCommandEvent event(mnEVT_LINK_CLICK, GetId()); |
| 10 |
|
|
event.SetEventObject(this); |
| 11 |
|
|
event.SetString(link.GetHref()); |
| 12 |
|
|
GetEventHandler()->ProcessEvent(event); |
| 13 |
|
|
} |
|