reset m_hDWP to NULL after calling EndDeferWindowPos()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-12 12:58:59 +00:00
parent 13973396cb
commit e4d03677b9

View File

@@ -2293,8 +2293,11 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
// then change the positions of all child windows at once
if ( m_hDWP )
{
HDWP hDWP = (HDWP)m_hDWP;
m_hDWP = NULL;
// put all child controls in place at once now
if ( !::EndDeferWindowPos((HDWP)m_hDWP) )
if ( !::EndDeferWindowPos(hDWP) )
{
wxLogLastError(_T("EndDeferWindowPos"));
}