+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
+ // an object using a no more existing HWND around for longer than necessary
+ delete this;
+}
+
+WXLRESULT wxNativeContainerWindow::MSWWindowProc(WXUINT nMsg,
+ WXWPARAM wParam,
+ WXLPARAM lParam)
+{
+ if ( nMsg == WM_DESTROY )
+ {
+ OnNativeDestroyed();
+
+ return 0;
+ }
+
+ return wxTopLevelWindow::MSWWindowProc(nMsg, wParam, lParam);
+}
+