]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/event.cpp
added a period at the end of a sentence (test commit, really)
[wxWidgets.git] / samples / event / event.cpp
index 4461234bb94f5f734b56f1ac9e7047956e42038b..4b07cd06e4da523cb766085d00ba99a2455dd494 100644 (file)
     #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_LOCAL_EVENT in a header)
-wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent)
+// usually you would use a matching wxDECLARE_EVENT in a header)
+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;