]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxUniv/MSW build with wxUSE_MENUS==0 (#9694)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2008 02:36:00 +0000 (02:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jul 2008 02:36:00 +0000 (02:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 2da6ce31ef1174bf4d8b1223eb95e79062ab7656..5b449b2277b4982cc9938dc62e5913233dd27ff1 100644 (file)
@@ -5631,18 +5631,19 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
     return wxNOT_FOUND;
 }
 
-bool wxWindowMSW::HandleClipboardEvent( WXUINT nMsg )
+#endif // wxUSE_MENUS
+
+bool wxWindowMSW::HandleClipboardEvent(WXUINT nMsg)
 {
-    const wxEventType type = ( nMsg == WM_CUT ) ? wxEVT_COMMAND_TEXT_CUT :
-                             ( nMsg == WM_COPY ) ? wxEVT_COMMAND_TEXT_COPY :
-                           /*( nMsg == WM_PASTE ) ? */ wxEVT_COMMAND_TEXT_PASTE;
+    const wxEventType type = nMsg == WM_CUT       ? wxEVT_COMMAND_TEXT_CUT
+                           : nMsg == WM_COPY      ? wxEVT_COMMAND_TEXT_COPY
+                           : /* nMsg == WM_PASTE */ wxEVT_COMMAND_TEXT_PASTE;
     wxClipboardTextEvent evt(type, GetId());
 
     evt.SetEventObject(this);
 
     return HandleWindowEvent(evt);
 }
-#endif // wxUSE_MENUS
 
 // ---------------------------------------------------------------------------
 // joystick