git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31247
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
height = 0;
// if our parent had prepared a defer window handle for us, use it
height = 0;
// if our parent had prepared a defer window handle for us, use it
- HDWP hdwp = m_parent ? (HDWP)m_parent->m_hDWP : NULL;
+ wxWindowMSW *parent =
+#ifdef __WXUNIVERSAL__
+ wxDynamicCast(m_parent, wxWindowMSW)
+#else
+ m_parent
+#endif
+ ;
+ HDWP hdwp = parent ? (HDWP)parent->m_hDWP : NULL;
if ( hdwp )
{
hdwp = ::DeferWindowPos(hdwp, GetHwnd(), NULL,
if ( hdwp )
{
hdwp = ::DeferWindowPos(hdwp, GetHwnd(), NULL,
}
// hdwp must be updated as it may have been changed
}
// hdwp must be updated as it may have been changed
- m_parent->m_hDWP = (WXHANDLE)hdwp;
+ parent->m_hDWP = (WXHANDLE)hdwp;
}
// otherwise (or if deferring failed) move the window in place immediately
}
// otherwise (or if deferring failed) move the window in place immediately