]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/resource/resource.cpp
More SC++ fixes; HelpGen starting to compile with VC++; image sample now compiles...
[wxWidgets.git] / samples / resource / resource.cpp
index 9b4db2b651dbf092cdcd63724036104ba521152f..19aab9edca6c2d42b5fb82cb42b188ba15faceec 100644 (file)
@@ -179,19 +179,19 @@ bool MyFrame::OnClose(void)
 }
 
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
 }
 
 BEGIN_EVENT_TABLE(MyDialog, wxDialog)
-       EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
-       EVT_BUTTON(RESOURCE_CANCEL, MyDialog::OnCancel)
+  //   EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
+       EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)
 END_EVENT_TABLE()
 
 
 void MyDialog::OnOk(wxCommandEvent& WXUNUSED(event) )
 {
 END_EVENT_TABLE()
 
 
 void MyDialog::OnOk(wxCommandEvent& WXUNUSED(event) )
 {
-  EndModal(RESOURCE_OK);
+  //  EndModal(RESOURCE_OK);
 }
 
 void MyDialog::OnCancel(wxCommandEvent& WXUNUSED(event) )
 {
 }
 
 void MyDialog::OnCancel(wxCommandEvent& WXUNUSED(event) )
 {
-  EndModal(RESOURCE_CANCEL);
+  EndModal(ID_BUTTON109);
 }
 
 
 }