Just a teeny change -- addition of wxFrame::IsMaximized. For wxMDIChildFrame

in wxGTK, is probably always TRUE (always size of client area).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1998-12-17 17:59:50 +00:00
parent c95e68d8c7
commit 6f63ec3f93
8 changed files with 41 additions and 0 deletions

View File

@ -143,6 +143,10 @@ public:
// Compatibility
inline bool Iconized() const { return IsIconized(); }
// Is the frame maximized? Returns FALSE under Motif (but TRUE for
// wxMDIChildFrame due to the tabbed implementation).
virtual bool IsMaximized(void) const ;
virtual void Maximize(bool maximize);
// Responds to colour changes

View File

@ -180,6 +180,10 @@ public:
virtual void Activate();
virtual bool IsIconized() const ;
// Is the frame maximized? Returns TRUE for
// wxMDIChildFrame due to the tabbed implementation.
virtual bool IsMaximized(void) const ;
bool Show(bool show);
inline WXWidget GetMainWidget() const { return m_mainWidget; };

View File

@ -138,6 +138,9 @@ public:
virtual bool IsIconized(void) const ;
// Is it maximized?
virtual bool IsMaximized(void) const ;
// Compatibility
inline bool Iconized(void) const { return IsIconized(); }

View File

@ -128,6 +128,9 @@ public:
// Compatibility
inline bool Iconized() const { return IsIconized(); }
// Is the frame maximized?
virtual bool IsMaximized(void) const ;
virtual void Maximize(bool maximize);
// Responds to colour changes

View File

@ -534,6 +534,13 @@ bool wxFrame::IsIconized() const
return iconic;
}
// Is it maximized?
bool wxFrame::IsMaximized(void) const
{
// No maximizing in Motif (?)
return FALSE;
}
void wxFrame::SetTitle(const wxString& title)
{
if (title == m_title)

View File

@ -572,6 +572,13 @@ bool wxMDIChildFrame::IsIconized() const
return FALSE;
}
// Is it maximized? Always maximized under Motif, using the
// tabbed MDI implementation.
bool wxMDIChildFrame::IsMaximized(void) const
{
return TRUE;
}
void wxMDIChildFrame::Restore()
{
// TODO

View File

@ -331,6 +331,12 @@ bool wxFrame::IsIconized(void) const
return m_iconized;
}
// Is it maximized?
bool wxFrame::IsMaximized(void) const
{
return (::IsZoomed((HWND) GetHWND()) != 0) ;
}
void wxFrame::SetTitle(const wxString& title)
{
SetWindowText((HWND) GetHWND(), (const char *)title);

View File

@ -163,6 +163,13 @@ bool wxFrame::IsIconized() const
return FALSE;
}
// Is the frame maximized?
bool wxFrame::IsMaximized(void) const
{
// TODO
return FALSE;
}
void wxFrame::SetTitle(const wxString& title)
{
// TODO