Implement wxNativeContainerWindow::IsShown() for MSW.
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
This commit is contained in:
@@ -145,6 +145,9 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
virtual bool IsShown() const;
|
||||||
|
#endif // __WXMSW__
|
||||||
|
|
||||||
// this is an implementation detail: called when the native window is
|
// this is an implementation detail: called when the native window is
|
||||||
// destroyed by an outside agency; deletes the C++ object too but can in
|
// destroyed by an outside agency; deletes the C++ object too but can in
|
||||||
|
@@ -54,6 +54,11 @@ bool wxNativeContainerWindow::Create(wxNativeContainerWindowHandle hwnd)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxNativeContainerWindow::IsShown() const
|
||||||
|
{
|
||||||
|
return (IsWindowVisible(static_cast<HWND>(m_hWnd)) != 0);
|
||||||
|
}
|
||||||
|
|
||||||
void wxNativeContainerWindow::OnNativeDestroyed()
|
void wxNativeContainerWindow::OnNativeDestroyed()
|
||||||
{
|
{
|
||||||
// don't use Close() or even Destroy() here, we really don't want to keep
|
// don't use Close() or even Destroy() here, we really don't want to keep
|
||||||
|
Reference in New Issue
Block a user