]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialup/nettest.cpp
always call SetIcon() on the main frame of the sample; some small cleanup
[wxWidgets.git] / samples / dialup / nettest.cpp
index 0ad2bd433035546fd17bd696a6d2662dd738c3d9..1221ea470574c74aa83a83461735e98d25da293d 100644 (file)
 
 #include "wx/dialup.h"
 
+#ifndef __WXMSW__
+    #include "../sample.xpm"
+#endif
+
 // ----------------------------------------------------------------------------
 // private classes
 // ----------------------------------------------------------------------------
@@ -220,6 +224,8 @@ void MyApp::OnConnected(wxDialUpEvent& event)
 MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
        : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size)
 {
+    SetIcon(wxICON(sample));
+
     // create a menu bar
     wxMenu *menuFile = new wxMenu;