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:
@@ -5631,18 +5631,19 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
|
|||||||
return wxNOT_FOUND;
|
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 :
|
const wxEventType type = nMsg == WM_CUT ? wxEVT_COMMAND_TEXT_CUT
|
||||||
( nMsg == WM_COPY ) ? wxEVT_COMMAND_TEXT_COPY :
|
: nMsg == WM_COPY ? wxEVT_COMMAND_TEXT_COPY
|
||||||
/*( nMsg == WM_PASTE ) ? */ wxEVT_COMMAND_TEXT_PASTE;
|
: /* nMsg == WM_PASTE */ wxEVT_COMMAND_TEXT_PASTE;
|
||||||
wxClipboardTextEvent evt(type, GetId());
|
wxClipboardTextEvent evt(type, GetId());
|
||||||
|
|
||||||
evt.SetEventObject(this);
|
evt.SetEventObject(this);
|
||||||
|
|
||||||
return HandleWindowEvent(evt);
|
return HandleWindowEvent(evt);
|
||||||
}
|
}
|
||||||
#endif // wxUSE_MENUS
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// joystick
|
// joystick
|
||||||
|
Reference in New Issue
Block a user