X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27721528c49a1a0d4dc87fe6b8bde2b3b11f6121..41f02b9acc01217e918fa422298840df7cf6de25:/samples/nativdlg/nativdlg.cpp diff --git a/samples/nativdlg/nativdlg.cpp b/samples/nativdlg/nativdlg.cpp index dce90cc97d..ef9b9f06b4 100644 --- a/samples/nativdlg/nativdlg.cpp +++ b/samples/nativdlg/nativdlg.cpp @@ -24,10 +24,17 @@ #error Sorry, this sample is only appropriate under Windows. #endif +#ifndef __WXMSW__ + #include "../sample.xpm" +#endif + #include #include "nativdlg.h" #include "resource.h" + + + IMPLEMENT_APP(MyApp) bool MyApp::OnInit(void) @@ -75,7 +82,9 @@ END_EVENT_TABLE() MyFrame::MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size): wxFrame(parent, id, title, pos, size) { - panel = NULL; + SetIcon(wxICON(sample)); + + panel = NULL; } void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) @@ -104,10 +113,10 @@ END_EVENT_TABLE() void MyDialog::OnOk(wxCommandEvent& WXUNUSED(event)) { - EndModal(wxID_OK); + EndModal(wxID_OK); } void MyDialog::OnCancel(wxCommandEvent& WXUNUSED(event)) { - EndModal(wxID_CANCEL); + EndModal(wxID_CANCEL); }