respect minimal wxTLW size in wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-02-10 19:08:54 +00:00
parent 6feddea302
commit e7dda1ffa3
18 changed files with 333 additions and 99 deletions

View File

@@ -3667,28 +3667,33 @@ bool wxWindowMSW::HandleGetMinMaxInfo(void *mmInfo)
MINMAXINFO *info = (MINMAXINFO *)mmInfo;
bool rc = FALSE;
int minWidth = GetMinWidth(),
minHeight = GetMinHeight(),
maxWidth = GetMaxWidth(),
maxHeight = GetMaxHeight();
if ( m_minWidth != -1 )
if ( minWidth != -1 )
{
info->ptMinTrackSize.x = m_minWidth;
info->ptMinTrackSize.x = minWidth;
rc = TRUE;
}
if ( m_minHeight != -1 )
if ( minHeight != -1 )
{
info->ptMinTrackSize.y = m_minHeight;
info->ptMinTrackSize.y = minHeight;
rc = TRUE;
}
if ( m_maxWidth != -1 )
if ( maxWidth != -1 )
{
info->ptMaxTrackSize.x = m_maxWidth;
info->ptMaxTrackSize.x = maxWidth;
rc = TRUE;
}
if ( m_maxHeight != -1 )
if ( maxHeight != -1 )
{
info->ptMaxTrackSize.y = m_maxHeight;
info->ptMaxTrackSize.y = maxHeight;
rc = TRUE;
}