diff --git a/samples/notebook/notebook.bkl b/samples/notebook/notebook.bkl
index 889e35e3b4..d777cc2715 100644
--- a/samples/notebook/notebook.bkl
+++ b/samples/notebook/notebook.bkl
@@ -7,7 +7,6 @@
notebook.cpp
core
base
- notebook.rc
diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp
index 966b441350..ad083b352e 100644
--- a/samples/notebook/notebook.cpp
+++ b/samples/notebook/notebook.cpp
@@ -24,6 +24,10 @@
#include "wx/artprov.h"
#include "notebook.h"
+#if !defined(__WXMSW__) && !defined(__WXPM__)
+ #include "../sample.xpm"
+#endif
+
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
@@ -202,8 +206,9 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
m_chkShowImages = true;
m_multi = false;
- // menu of the sample
+ SetIcon(wxICON(sample));
+ // menu of the sample
wxMenu *menuType = new wxMenu;
#if wxUSE_NOTEBOOK
menuType->AppendRadioItem(ID_BOOK_NOTEBOOK, wxT("&Notebook\tCtrl-1"));
diff --git a/samples/notebook/notebook.dsp b/samples/notebook/notebook.dsp
index 8b7e3c7d22..ed64ac0dc2 100644
--- a/samples/notebook/notebook.dsp
+++ b/samples/notebook/notebook.dsp
@@ -472,7 +472,7 @@ SOURCE=.\notebook.cpp
# End Source File
# Begin Source File
-SOURCE=.\notebook.rc
+SOURCE=.\..\..\samples\sample.rc
# End Source File
# End Group
# End Target
diff --git a/samples/notebook/notebook.rc b/samples/notebook/notebook.rc
deleted file mode 100644
index a05f21065a..0000000000
--- a/samples/notebook/notebook.rc
+++ /dev/null
@@ -1,3 +0,0 @@
-mondrian_icon ICON "mondrian.ico"
-#include "wx/msw/wx.rc"
-