return TRUE;
}
+bool wxTopLevelWindowMGL::Show(bool show)
+{
+ bool ret = wxTopLevelWindowBase::Show(show);
+ if ( ret && show )
+ SetFocus();
+ return ret;
+}
+
void wxTopLevelWindowMGL::Maximize(bool maximize)
{
if ( maximize && !m_isMaximized )
{
int x, y, w, h;
+ m_isMaximized = TRUE;
+
GetPosition(&m_savedFrame.x, &m_savedFrame.y);
GetSize(&m_savedFrame.width, &m_savedFrame.height);
wxClientDisplayRect(&x, &y, &w, &h);
SetSize(x, y, w, h);
- m_isMaximized = TRUE;
}
else if ( !maximize && m_isMaximized )
{
+ m_isMaximized = FALSE;
SetSize(m_savedFrame.x, m_savedFrame.y,
m_savedFrame.width, m_savedFrame.height);
- m_isMaximized = FALSE;
}
}
void wxTopLevelWindowMGL::Restore()
{
- if ( m_isIconized )
+ if ( IsIconized() )
{
Iconize(FALSE);
}
- if ( m_isMaximized )
+ if ( IsMaximized() )
{
Maximize(FALSE);
}