fix wxUniv/MSW build with wxUSE_MENUS==0 (#9694)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-07-09 02:36:00 +00:00
parent f75e0c15ae
commit 17a043046c

View 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