X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1afe8c83072c52d957db8a9877ca28011258ecac..9b5e0a6dea33b3a0188965e6ee3b1566f1a53ac0:/samples/event/event.cpp diff --git a/samples/event/event.cpp b/samples/event/event.cpp index 27f0d2e505..4b07cd06e4 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -30,13 +30,17 @@ #include "wx/wx.h" #endif +#ifndef __WXMSW__ + #include "../sample.xpm" +#endif + // ---------------------------------------------------------------------------- // event constants // ---------------------------------------------------------------------------- // define a custom event type (we don't need a separate declaration here but // usually you would use a matching wxDECLARE_EVENT in a header) -wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent) +wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent); // it may also be convenient to define an event table macro for this event type #define EVT_MY_CUSTOM_COMMAND(id, fn) \ @@ -214,6 +218,8 @@ bool MyApp::OnInit() MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size) { + SetIcon(wxICON(sample)); + // init members m_nPush = 0;