]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/nativewin.cpp
Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container...
[wxWidgets.git] / src / msw / nativewin.cpp
index 6b3649b842a3309eb64a5ffe23b04168b55278f4..13b8a77efa8abc204868378980066e27e7112db9 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxNativeWindow implementation
 // Author:      Vadim Zeitlin
 // Created:     2008-03-05
-// RCS-ID:      $Id$
 // Copyright:   (c) 2008 Vadim Zeitlin <vadim@wxwindows.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -54,6 +53,11 @@ bool wxNativeContainerWindow::Create(wxNativeContainerWindowHandle hwnd)
     return true;
 }
 
+bool wxNativeContainerWindow::IsShown() const
+{
+    return (IsWindowVisible(static_cast<HWND>(m_hWnd)) != 0);
+}
+
 void wxNativeContainerWindow::OnNativeDestroyed()
 {
     // don't use Close() or even Destroy() here, we really don't want to keep