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:
parent
c95e68d8c7
commit
6f63ec3f93
@ -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
|
||||
|
@ -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; };
|
||||
|
@ -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(); }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user