#error Sorry, this sample is only appropriate under Windows.
#endif
+#ifndef __WXMSW__
+ #include "../sample.xpm"
+#endif
+
#include <ctype.h>
#include "nativdlg.h"
#include "resource.h"
+
+
+
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit(void)
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))
void MyDialog::OnOk(wxCommandEvent& WXUNUSED(event))
{
- EndModal(wxID_OK);
+ EndModal(wxID_OK);
}
void MyDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
{
- EndModal(wxID_CANCEL);
+ EndModal(wxID_CANCEL);
}