X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa4919edd16047bb9590658f7a9fbe50fc659bc1..d5cc191c9cd48a915ce0dfc6e49511b2fddb6746:/samples/ownerdrw/ownerdrw.cpp diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index 52b6c84518..80a7c2eb74 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -6,7 +6,7 @@ // Created: 13.11.97 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -97,8 +97,6 @@ bool OwnerDrawnApp::OnInit(void) = new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"), 50, 50, 450, 340); - SetTopWindow(pFrame); - return true; } @@ -206,7 +204,7 @@ void OwnerDrawnFrame::InitMenu() drawn_menu->AppendSeparator(); - pItem = new wxMenuItem(drawn_menu, Menu_Drawn2, wxT("&Cheked item"), + pItem = new wxMenuItem(drawn_menu, Menu_Drawn2, wxT("&Checked item"), wxT("check/uncheck me!"), wxITEM_CHECK); drawn_menu->Append(pItem); drawn_menu->Check(Menu_Drawn2, true); @@ -232,7 +230,7 @@ void OwnerDrawnFrame::InitMenu() native_menu->AppendSeparator(); - pItem = new wxMenuItem(native_menu, Menu_Native2, wxT("&Cheked item"), + pItem = new wxMenuItem(native_menu, Menu_Native2, wxT("&Checked item"), wxT("check/uncheck me!"), wxITEM_CHECK); native_menu->Append(pItem); native_menu->Check(Menu_Native2, true); @@ -265,7 +263,7 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, const wxChar *title, : wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h)) { // set the icon - SetIcon(wxIcon(wxT("mondrian"))); + SetIcon(wxICON(sample)); // create the menu InitMenu();