Fix MSW compilation with wxUSE_DEFERRED_SIZING==0.
Add checks for wxUSE_DEFERRED_SIZING around the code using wxWindow::m_pending{Size,Position}. Closes #11348. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1865,11 +1865,13 @@ void wxWindowMSW::DoGetPosition(int *x, int *y) const
|
||||
wxWindow * const parent = GetParent();
|
||||
|
||||
wxPoint pos;
|
||||
#if wxUSE_DEFERRED_SIZING
|
||||
if ( m_pendingPosition != wxDefaultPosition )
|
||||
{
|
||||
pos = m_pendingPosition;
|
||||
}
|
||||
else // use current position
|
||||
#endif // wxUSE_DEFERRED_SIZING
|
||||
{
|
||||
RECT rect = wxGetWindowRect(GetHwnd());
|
||||
|
||||
|
Reference in New Issue
Block a user