X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a053c22d812f7c2c60d9f6fa6a5c8f6162c91a9..da98e15760bfcad41a5579e64955caadc2e535f3:/samples/notebook/notebook.cpp?ds=sidebyside 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"));