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:
@@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user