added IsSizeDeferred() (part of patch 1199639)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -166,6 +166,9 @@ public:
|
|||||||
void AssociateHandle(WXWidget handle);
|
void AssociateHandle(WXWidget handle);
|
||||||
void DissociateHandle();
|
void DissociateHandle();
|
||||||
|
|
||||||
|
// does this window have deferred position and/or size?
|
||||||
|
bool IsSizeDeferred() const;
|
||||||
|
|
||||||
|
|
||||||
// implementation from now on
|
// implementation from now on
|
||||||
// ==========================
|
// ==========================
|
||||||
|
@@ -1450,6 +1450,17 @@ void wxWindowMSW::DoSetToolTip(wxToolTip *tooltip)
|
|||||||
// moving and resizing
|
// moving and resizing
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
bool wxWindowMSW::IsSizeDeferred() const
|
||||||
|
{
|
||||||
|
#if USE_DEFERRED_SIZING
|
||||||
|
if ( m_pendingPosition != wxDefaultPosition ||
|
||||||
|
m_pendingSize != wxDefaultSize )
|
||||||
|
return true;
|
||||||
|
#endif // USE_DEFERRED_SIZING
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Get total size
|
// Get total size
|
||||||
void wxWindowMSW::DoGetSize(int *x, int *y) const
|
void wxWindowMSW::DoGetSize(int *x, int *y) const
|
||||||
{
|
{
|
||||||
@@ -4228,7 +4239,7 @@ bool wxWindowMSW::HandleSize(int WXUNUSED(w), int WXUNUSED(h), WXUINT wParam)
|
|||||||
useDefer = true;
|
useDefer = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif // USE_DEFERRED_SIZING
|
||||||
|
|
||||||
// update this window size
|
// update this window size
|
||||||
bool processed = false;
|
bool processed = false;
|
||||||
|
Reference in New Issue
Block a user