Use WidthDefault and HeightDefault

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-03-05 23:36:20 +00:00
parent 0f21699216
commit 979fdc00c6
2 changed files with 4 additions and 12 deletions

View File

@ -657,12 +657,8 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
if ( m_x < 20 )
m_x = 20 ;
m_width = size.x;
if (m_width == -1)
m_width = 20;
m_height = size.y;
if (m_height == -1)
m_height = 20;
m_width = WidthDefault(size.x);
m_height = HeightDefault(size.y);
::SetRect(&theBoundsRect, m_x, m_y , m_x + m_width, m_y + m_height);

View File

@ -657,12 +657,8 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
if ( m_x < 20 )
m_x = 20 ;
m_width = size.x;
if (m_width == -1)
m_width = 20;
m_height = size.y;
if (m_height == -1)
m_height = 20;
m_width = WidthDefault(size.x);
m_height = HeightDefault(size.y);
::SetRect(&theBoundsRect, m_x, m_y , m_x + m_width, m_y + m_height);