return the restored window size from GetSize() when window is minimized (for consistency with wxGTK and also for convenience)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-11 00:21:06 +00:00
parent 1e93d59553
commit d43eb2a0d5
4 changed files with 86 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ public:
virtual void SetIcon(const wxIcon& icon);
virtual void SetIcons(const wxIconBundle& icons );
virtual void Restore();
virtual void SetLayoutDirection(wxLayoutDirection dir);
#ifndef __WXWINCE__
@@ -76,7 +76,7 @@ public:
virtual bool SetTransparent(wxByte alpha);
virtual bool CanSetTransparent();
// implementation from now on
// --------------------------
@@ -127,6 +127,12 @@ protected:
// common part of Iconize(), Maximize() and Restore()
void DoShowWindow(int nShowCmd);
// override those to return the normal window coordinates even when the
// window is minimized
virtual void DoGetPosition(int *x, int *y) const;
virtual void DoGetSize(int *width, int *height) const;
// is the window currently iconized?
bool m_iconized;