X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..11a23db53128bf244a089123b7fd27deb577a889:/src/msw/popupwin.cpp diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index a59d329bd2..fbcf9961e6 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 08.05.02 -// RCS-ID: $Id$ // Copyright: (c) 2002 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -90,6 +89,15 @@ WXHWND wxPopupWindow::MSWGetParent() const #endif } +void wxPopupWindow::SetFocus() +{ + // Focusing on a popup window does not work on MSW unless WS_POPUP style is + // set (which is never the case currently, see the note in MSWGetParent()). + // We do not even want to try to set the focus, as it returns an error from + // SetFocus() on recent Windows versions (since Vista) and the resulting + // debug message is annoying. +} + bool wxPopupWindow::Show(bool show) { if ( !wxWindowMSW::Show(show) )