Simpler fix for Borland.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1659,7 +1659,7 @@ void wxWindowMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
// save the pending dimensions or not. This isn't done in DoMoveWindow
|
// save the pending dimensions or not. This isn't done in DoMoveWindow
|
||||||
// (where the hdwp is used) because some controls have thier own
|
// (where the hdwp is used) because some controls have thier own
|
||||||
// DoMoveWindow so it is easier to catch it here.
|
// DoMoveWindow so it is easier to catch it here.
|
||||||
wxWindowMSW *parent = wxDynamicCast(GetParent(), wxWindowMSW);
|
wxWindowMSW *parent = GetParent();
|
||||||
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
|
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
|
||||||
if (hdwp)
|
if (hdwp)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user