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:
Vadim Zeitlin 2005-08-28 16:19:45 +00:00
parent 4884b02b08
commit f7040b5fe6
2 changed files with 15 additions and 1 deletions

View File

@ -166,6 +166,9 @@ public:
void AssociateHandle(WXWidget handle);
void DissociateHandle();
// does this window have deferred position and/or size?
bool IsSizeDeferred() const;
// implementation from now on
// ==========================

View File

@ -1450,6 +1450,17 @@ void wxWindowMSW::DoSetToolTip(wxToolTip *tooltip)
// 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
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;
}
}
#endif
#endif // USE_DEFERRED_SIZING
// update this window size
bool processed = false;