]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/studio/mainfrm.cpp
Removal of second part of dsw files (as requested by Jamie Gadd).
[wxWidgets.git] / contrib / samples / ogl / studio / mainfrm.cpp
index 4a7e4ac4b3a34418a9977a9f210c17a914f8e0a0..e5f97fc6749499d36dd0291255fcbde6fc661e4e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        mainfrm.cpp
+// Name:        ogl/stufio/mainfrm.cpp
 // Purpose:     Studio main frame
 // Author:      Julian Smart
 // Modified by:
@@ -80,9 +80,11 @@ void csFrame::OnHelp(wxCommandEvent& WXUNUSED(event))
 
 void csFrame::OnSettings(wxCommandEvent& WXUNUSED(event))
 {
+#if wxUSE_WX_RESOURCES
     csSettingsDialog* dialog = new csSettingsDialog(this);
     /* int ret = */ dialog->ShowModal();
     dialog->Destroy();
+#endif // wxUSE_WX_RESOURCES
 }
 
 void csFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
@@ -182,7 +184,7 @@ void csFrame::OnIdle(wxIdleEvent& event)
         wxLayoutAlgorithm layout;
         layout.LayoutMDIFrame(this);
 
-#if defined(__WXMSW__) && defined(__WIN95__)
+#if defined(__WXMSW__)
         // Need to do something else to get it to refresh properly
         // when a client frame is first displayed; moving the client
         // window doesn't cause the proper refresh. Just refreshing the
@@ -200,7 +202,7 @@ void csFrame::OnIdle(wxIdleEvent& event)
 
         }
 #endif
-#endif
+#endif // __WXMSW__
     }
     event.Skip();
 }
@@ -275,4 +277,3 @@ void csMDIChildFrame::OnActivate(wxActivateEvent& event)
     layout.LayoutMDIFrame((wxMDIParentFrame*) GetParent());
 */
 }
-