]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement wxNativeContainerWindow::IsShown() for MSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Dec 2009 17:31:07 +0000 (17:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 Dec 2009 17:31:07 +0000 (17:31 +0000)
Simply use native ::IsWindowVisible() for IsShown() implementation.

Closes #11503.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/nativewin.h
src/msw/nativewin.cpp

index f38d8e978f9a96416edb193840f64b0b9bd5dbd8..60d94037cff1d42d27aa5d52ef46b66b4a9f623d 100644 (file)
@@ -145,6 +145,9 @@ public:
         return false;
     }
 
+#ifdef __WXMSW__
+    virtual bool IsShown() const;
+#endif // __WXMSW__
 
     // this is an implementation detail: called when the native window is
     // destroyed by an outside agency; deletes the C++ object too but can in
index 6b3649b842a3309eb64a5ffe23b04168b55278f4..068185f8a020831d76a8e9e547d04bdf0d21ab46 100644 (file)
@@ -54,6 +54,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