]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/resource/resource.cpp
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / resource / resource.cpp
index 89952f18ea226bae2e7ce23396f29514e7a8550f..461cea563b5ed6fba2ee2bab58c2adb7fcfa9d64 100644 (file)
@@ -42,7 +42,7 @@
 // the TEXT resource, for some reason, so either run-time file loading
 // or file inclusion should be used.
 
-#if defined(__WINDOWS__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
 // Under Windows, some compilers can't include
 // a whole .wxr file. So we use a .rc user-defined resource
 // instead. dialog1 will point to the whole .wxr 'file'.
@@ -69,7 +69,7 @@ MyApp::MyApp()
 // main frame
 bool MyApp::OnInit(void)
 {
-#if defined(__WINDOWS__)  && !defined(__BORLANDC__)
+#if defined(__WXMSW__)  && !defined(__BORLANDC__)
   // Load the .wxr 'file' from a .rc resource, under Windows.
   dialog1 = wxLoadUserResource("dialog1");
   menu1 = wxLoadUserResource("menu1");