git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39717
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// current defer window position operation handle (may be NULL)
WXHANDLE m_hDWP;
// current defer window position operation handle (may be NULL)
WXHANDLE m_hDWP;
// When deferred positioning is done these hold the pending changes, and
// are used for the default values if another size/pos changes is done on
// this window before the group of deferred changes is completed.
wxPoint m_pendingPosition;
wxSize m_pendingSize;
// When deferred positioning is done these hold the pending changes, and
// are used for the default values if another size/pos changes is done on
// this window before the group of deferred changes is completed.
wxPoint m_pendingPosition;
wxSize m_pendingSize;
#ifdef __POCKETPC__
bool m_contextMenuEnabled;
#endif
#ifdef __POCKETPC__
bool m_contextMenuEnabled;
#endif
wxControl::DoSetSize(x, y, width, height, sizeFlags);
wxControl::DoSetSize(x, y, width, height, sizeFlags);
+ // If we're storing a pending size, make sure we store
+ // the original size for reporting back to the app.
+ if (m_pendingSize != wxDefaultSize)
+ m_pendingSize = wxSize(width, heightOrig);
+
// This solution works on XP, but causes choice/combobox lists to be
// too short on W2K and earlier.
#if 0
// This solution works on XP, but causes choice/combobox lists to be
// too short on W2K and earlier.
#if 0